@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | class JsonPaginationQueryFactory implements FactoryInterface |
16 | 16 | { |
17 | - public function createService (\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) |
|
17 | + public function createService(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) |
|
18 | 18 | { |
19 | 19 | $services = $serviceLocator->getServiceLocator(); |
20 | 20 | $auth = $services->get('AuthenticationService'); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * for multiple paths. |
17 | 17 | * example https://github.com/doctrine/DoctrineORMModule |
18 | 18 | */ |
19 | - 'paths' => array( __DIR__ . '/../src/Geo/Entity'), |
|
19 | + 'paths' => array(__DIR__ . '/../src/Geo/Entity'), |
|
20 | 20 | ), |
21 | 21 | ), |
22 | 22 | 'eventmanager' => array( |
@@ -27,7 +27,7 @@ |
||
27 | 27 | { |
28 | 28 | $query = $this->params()->fromQuery(); |
29 | 29 | |
30 | - $geoApi = $this->getPluginManager()->get('geo/'.$this->params('plugin')); |
|
30 | + $geoApi = $this->getPluginManager()->get('geo/' . $this->params('plugin')); |
|
31 | 31 | $result = array(); |
32 | 32 | if (!empty($query['q'])) { |
33 | 33 | $result = $geoApi($query['q']); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $client->setMethod('GET'); |
27 | 27 | // more countries 'country' => 'DE,CH,AT' |
28 | 28 | // with countryCode 'zoom' => 2 |
29 | - $plz = 0 < (int) $par?1:0; |
|
29 | + $plz = 0 < (int) $par ? 1 : 0; |
|
30 | 30 | $client->setParameterGet(array('q' => $par, 'country' => 'DE', 'plz' => $plz, 'zoom' => 1)); |
31 | 31 | $response = $client->send(); |
32 | 32 | $result = $response->getBody(); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $client->setMethod('GET'); |
29 | 29 | |
30 | 30 | $osmTags = [ |
31 | - 'tourism','aeroway','railway', 'amenity', 'historic', 'tunnel', 'mountain_pass', |
|
31 | + 'tourism', 'aeroway', 'railway', 'amenity', 'historic', 'tunnel', 'mountain_pass', |
|
32 | 32 | 'leisure', 'natural', 'bridge', 'waterway' |
33 | 33 | ]; |
34 | 34 | |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | $result = json_decode($result); |
51 | 51 | $result = $result->features; |
52 | 52 | foreach ($result as $key => $val) { |
53 | - $row=['name' => (property_exists($val->properties, 'name') ? $val->properties->name:''), |
|
54 | - 'postcode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''), |
|
55 | - 'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''), |
|
53 | + $row = ['name' => (property_exists($val->properties, 'name') ? $val->properties->name : ''), |
|
54 | + 'postcode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode : ''), |
|
55 | + 'city' =>(property_exists($val->properties, 'city') ? $val->properties->city : ''), |
|
56 | 56 | 'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''), |
57 | 57 | 'state' => (property_exists($val->properties, 'state') ? $val->properties->state : ''), |
58 | 58 | 'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''), |
@@ -124,7 +124,7 @@ |
||
124 | 124 | return $this; |
125 | 125 | } |
126 | 126 | |
127 | - public function setValue($value, $type=null) |
|
127 | + public function setValue($value, $type = null) |
|
128 | 128 | { |
129 | 129 | if ($value instanceOf Location) { |
130 | 130 | $value = $this->getConverter()->toValue($value, $type ?: $this->typeElement->getValue()); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | 'role' => 'admin', |
67 | 67 | 'login' => $username, |
68 | 68 | 'credential' => $credential, |
69 | - 'info' => [ 'email' => $email ] |
|
69 | + 'info' => ['email' => $email] |
|
70 | 70 | ); |
71 | 71 | |
72 | 72 | $result = $collection->insert($document); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | class MongoDbConnectionString extends AbstractValidator |
23 | 23 | { |
24 | - const INVALID = 'invalidConnectionString'; |
|
24 | + const INVALID = 'invalidConnectionString'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Options |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * for multiple paths. |
16 | 16 | * example https://github.com/doctrine/DoctrineORMModule |
17 | 17 | */ |
18 | - 'paths' => array( __DIR__ . '/../src/Jobs/Entity'), |
|
18 | + 'paths' => array(__DIR__ . '/../src/Jobs/Entity'), |
|
19 | 19 | ), |
20 | 20 | ), |
21 | 21 | 'eventmanager' => array( |