@@ -60,7 +60,7 @@ |
||
| 60 | 60 | foreach ($this->fileNames as $obj) { |
| 61 | 61 | if (is_string($obj)) { |
| 62 | 62 | if (array_key_exists($obj, $this->fileObjects)) { |
| 63 | - $erg[] = $this->fileObjects[$obj]; |
|
| 63 | + $erg[] = $this->fileObjects[$obj]; |
|
| 64 | 64 | } |
| 65 | 65 | } else { |
| 66 | 66 | $erg[] = $obj; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function __invoke($gender) |
| 24 | 24 | { |
| 25 | - $return=""; |
|
| 25 | + $return = ""; |
|
| 26 | 26 | switch ($gender) { |
| 27 | 27 | case "male": |
| 28 | 28 | $return = "Mr."; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function setName($name) |
| 35 | 35 | { |
| 36 | - $this->name=$name; |
|
| 36 | + $this->name = $name; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function setLevel($level) |
| 53 | 53 | { |
| 54 | - $this->level=$level; |
|
| 54 | + $this->level = $level; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | public function setCurrentIndicator($currentIndicator) |
| 80 | 80 | { |
| 81 | - $this->currentIndicator=$currentIndicator; |
|
| 81 | + $this->currentIndicator = $currentIndicator; |
|
| 82 | 82 | return $this; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -156,41 +156,41 @@ |
||
| 156 | 156 | return $this->description; |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - /** |
|
| 160 | - * @return string |
|
| 161 | - */ |
|
| 162 | - public function getCountry() |
|
| 163 | - { |
|
| 164 | - return $this->country; |
|
| 165 | - } |
|
| 166 | - |
|
| 167 | - /** |
|
| 168 | - * @param string $country |
|
| 169 | - * @return Education |
|
| 170 | - */ |
|
| 171 | - public function setCountry($country) |
|
| 172 | - { |
|
| 173 | - $this->country = $country; |
|
| 159 | + /** |
|
| 160 | + * @return string |
|
| 161 | + */ |
|
| 162 | + public function getCountry() |
|
| 163 | + { |
|
| 164 | + return $this->country; |
|
| 165 | + } |
|
| 166 | + |
|
| 167 | + /** |
|
| 168 | + * @param string $country |
|
| 169 | + * @return Education |
|
| 170 | + */ |
|
| 171 | + public function setCountry($country) |
|
| 172 | + { |
|
| 173 | + $this->country = $country; |
|
| 174 | 174 | |
| 175 | - return $this; |
|
| 176 | - } |
|
| 177 | - |
|
| 178 | - /** |
|
| 179 | - * @return string |
|
| 180 | - */ |
|
| 181 | - public function getCity() |
|
| 182 | - { |
|
| 183 | - return $this->city; |
|
| 184 | - } |
|
| 185 | - |
|
| 186 | - /** |
|
| 187 | - * @param string $city |
|
| 188 | - * @return Education |
|
| 189 | - */ |
|
| 190 | - public function setCity($city) |
|
| 191 | - { |
|
| 192 | - $this->city = $city; |
|
| 175 | + return $this; |
|
| 176 | + } |
|
| 177 | + |
|
| 178 | + /** |
|
| 179 | + * @return string |
|
| 180 | + */ |
|
| 181 | + public function getCity() |
|
| 182 | + { |
|
| 183 | + return $this->city; |
|
| 184 | + } |
|
| 185 | + |
|
| 186 | + /** |
|
| 187 | + * @param string $city |
|
| 188 | + * @return Education |
|
| 189 | + */ |
|
| 190 | + public function setCity($city) |
|
| 191 | + { |
|
| 192 | + $this->city = $city; |
|
| 193 | 193 | |
| 194 | - return $this; |
|
| 195 | - } |
|
| 194 | + return $this; |
|
| 195 | + } |
|
| 196 | 196 | } |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | public function init() |
| 14 | 14 | { |
| 15 | 15 | $this->setName('education') |
| 16 | - ->setHydrator(new EntityHydrator()) |
|
| 17 | - ->setObject(new EducationEntity()) |
|
| 18 | - ->setLabel('Education'); |
|
| 16 | + ->setHydrator(new EntityHydrator()) |
|
| 17 | + ->setObject(new EducationEntity()) |
|
| 18 | + ->setLabel('Education'); |
|
| 19 | 19 | |
| 20 | 20 | $this->add( |
| 21 | 21 | array( |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | public function init() |
| 12 | 12 | { |
| 13 | 13 | $this->setName('employment') |
| 14 | - ->setHydrator(new EntityHydrator()) |
|
| 15 | - ->setObject(new EmploymentEntity()) |
|
| 16 | - ->setLabel('Employment'); |
|
| 14 | + ->setHydrator(new EntityHydrator()) |
|
| 15 | + ->setObject(new EmploymentEntity()) |
|
| 16 | + ->setLabel('Employment'); |
|
| 17 | 17 | |
| 18 | 18 | $this->add( |
| 19 | 19 | array( |
@@ -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'); |
@@ -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'); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | 'form_elements' => array( |
| 72 | 72 | 'invokables' => array( |
| 73 | 73 | 'Location' => 'Geo\Form\GeoText', |
| 74 | - ), |
|
| 74 | + ), |
|
| 75 | 75 | ), |
| 76 | 76 | |
| 77 | 77 | 'view_manager' => array( |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * for multiple paths. |
| 23 | 23 | * example https://github.com/doctrine/DoctrineORMModule |
| 24 | 24 | */ |
| 25 | - 'paths' => array( __DIR__ . '/../src/Geo/Entity'), |
|
| 25 | + 'paths' => array(__DIR__.'/../src/Geo/Entity'), |
|
| 26 | 26 | ), |
| 27 | 27 | ), |
| 28 | 28 | 'eventmanager' => array( |
@@ -84,13 +84,13 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | // Map template to files. Speeds up the lookup through the template stack. |
| 86 | 86 | 'template_map' => array( |
| 87 | - 'geo/form/GeoText' => __DIR__ . '/../view/form/geotext.phtml', |
|
| 88 | - 'geo/form/GeoHorizontal' => __DIR__ . '/../view/form/geo-horizontal.phtml', |
|
| 87 | + 'geo/form/GeoText' => __DIR__.'/../view/form/geotext.phtml', |
|
| 88 | + 'geo/form/GeoHorizontal' => __DIR__.'/../view/form/geo-horizontal.phtml', |
|
| 89 | 89 | ), |
| 90 | 90 | |
| 91 | 91 | // Where to look for view templates not mapped above |
| 92 | 92 | 'template_path_stack' => array( |
| 93 | - __DIR__ . '/../view', |
|
| 93 | + __DIR__.'/../view', |
|
| 94 | 94 | ), |
| 95 | 95 | ), |
| 96 | 96 | |
@@ -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(); |