@@ -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( |
@@ -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(); |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | $routeMatch->setParam('action', $p); |
43 | 43 | $response = $this->getResponse(); |
44 | 44 | $response->getHeaders() |
45 | - ->addHeaderLine('Content-Type', 'application/json') |
|
46 | - ->addHeaderLine('Content-Encoding', 'utf8'); |
|
45 | + ->addHeaderLine('Content-Type', 'application/json') |
|
46 | + ->addHeaderLine('Content-Encoding', 'utf8'); |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 | |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | |
61 | 61 | return $this->createViewModel( |
62 | 62 | array( |
63 | - 'prerequisites' => $prereqs, |
|
64 | - 'form' => $form, |
|
65 | - ) |
|
63 | + 'prerequisites' => $prereqs, |
|
64 | + 'form' => $form, |
|
65 | + ) |
|
66 | 66 | ); |
67 | 67 | } |
68 | 68 | |
@@ -94,9 +94,9 @@ discard block |
||
94 | 94 | if (!$form->isValid()) { |
95 | 95 | return $this->createJsonResponse( |
96 | 96 | array( |
97 | - 'ok' => false, |
|
98 | - 'errors' => $form->getMessages(), |
|
99 | - ) |
|
97 | + 'ok' => false, |
|
98 | + 'errors' => $form->getMessages(), |
|
99 | + ) |
|
100 | 100 | ); |
101 | 101 | } |
102 | 102 |