Skip to content

Commit c923d85

Browse files
committed
Fix CS
1 parent fb6f392 commit c923d85

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/Geocoder/Dumper/GeoJsonDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GeoJsonDumper implements DumperInterface
2424
*/
2525
public function dump(ResultInterface $result)
2626
{
27-
$properties = array_filter($result->toArray(), function($val) {
27+
$properties = array_filter($result->toArray(), function ($val) {
2828
return $val !== null;
2929
});
3030

src/Geocoder/Provider/AbstractProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected function getLocalhostDefaults()
159159
*/
160160
protected function fixEncoding(array $results)
161161
{
162-
return array_map(function($value) {
162+
return array_map(function ($value) {
163163
return is_string($value) ? utf8_encode($value) : $value;
164164
}, $results);
165165
}

src/Geocoder/Provider/MaxMindProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected function executeQuery($query)
133133
}
134134

135135
$data = array_combine($fields, $data);
136-
$data = array_map(function($value) { return '' === $value ? null : $value; }, $data);
136+
$data = array_map(function ($value) { return '' === $value ? null : $value; }, $data);
137137

138138
if (empty($data['country']) && !empty($data['countryCode'])) {
139139
$data['country'] = $this->countryCodeToCountryName($data['countryCode']);

src/Geocoder/Provider/YandexProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ protected function executeQuery($query)
113113

114114
array_walk_recursive(
115115
$item['GeoObject'],
116-
function($value, $key) use (&$details) {$details[$key] = $value;}
116+
function ($value, $key) use (&$details) {$details[$key] = $value;}
117117
);
118118

119119
if (! empty($details['lowerCorner'])) {

src/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Code inspired from the SplClassLoader RFC
88
* @see https://wiki.php.net/rfc/splclassloader#example_implementation
99
*/
10-
spl_autoload_register(function($className) {
10+
spl_autoload_register(function ($className) {
1111
$className = ltrim($className, '\\');
1212
if (0 != strpos($className, 'Geocoder')) {
1313
return false;

tests/Geocoder/Tests/Provider/ChainProviderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testGetReversedData()
3030
$mockOne = $this->getMock('Geocoder\\Provider\\ProviderInterface');
3131
$mockOne->expects($this->once())
3232
->method('getReversedData')
33-
->will($this->returnCallback(function() { throw new \Exception; }));
33+
->will($this->returnCallback(function () { throw new \Exception; }));
3434

3535
$mockTwo = $this->getMock('Geocoder\\Provider\\ProviderInterface');
3636
$mockTwo->expects($this->once())
@@ -48,7 +48,7 @@ public function testChainProviderReverseThrowsChainNoResultException()
4848
$mockOne = $this->getMock('Geocoder\\Provider\\ProviderInterface');
4949
$mockOne->expects($this->exactly(2))
5050
->method('getReversedData')
51-
->will($this->returnCallback(function() { throw new \Exception; }));
51+
->will($this->returnCallback(function () { throw new \Exception; }));
5252

5353
$chain = new ChainProvider(array($mockOne, $mockOne));
5454

@@ -64,7 +64,7 @@ public function testGetGeocodedData()
6464
$mockOne = $this->getMock('Geocoder\\Provider\\ProviderInterface');
6565
$mockOne->expects($this->once())
6666
->method('getGeocodedData')
67-
->will($this->returnCallback(function() { throw new \Exception; }));
67+
->will($this->returnCallback(function () { throw new \Exception; }));
6868

6969
$mockTwo = $this->getMock('Geocoder\\Provider\\ProviderInterface');
7070
$mockTwo->expects($this->once())
@@ -82,7 +82,7 @@ public function testChainProviderGeocodeThrowsChainNoResultException()
8282
$mockOne = $this->getMock('Geocoder\\Provider\\ProviderInterface');
8383
$mockOne->expects($this->exactly(2))
8484
->method('getGeocodedData')
85-
->will($this->returnCallback(function() { throw new \Exception; }));
85+
->will($this->returnCallback(function () { throw new \Exception; }));
8686

8787
$chain = new ChainProvider(array($mockOne, $mockOne));
8888

0 commit comments

Comments
 (0)