@@ -128,6 +128,6 @@ |
||
128 | 128 | |
129 | 129 | $pointer = $this->pointer + 1; |
130 | 130 | |
131 | - return isset($this->ids[$pointer]) ? $this->ids[$pointer] : null; |
|
131 | + return isset($this->ids[$pointer]) ? $this->ids[$pointer] : null; |
|
132 | 132 | } |
133 | 133 | } |
@@ -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 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | protected $identityExtractor; |
27 | 27 | |
28 | - /** |
|
28 | + /** |
|
29 | 29 | * @param Collection $collection |
30 | 30 | */ |
31 | 31 | public function __construct(Collection $collection) |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $element = $this->getElement($key); |
82 | 82 | |
83 | 83 | if ($element !== false && $this->collection->removeElement($element)) { |
84 | - return $element; |
|
84 | + return $element; |
|
85 | 85 | } |
86 | 86 | } |
87 | 87 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | { |
109 | 109 | $element = $this->getElement($key); |
110 | 110 | |
111 | - return $element !== false ? $element : null; |
|
111 | + return $element !== false ? $element : null; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | |
185 | 185 | if ($element !== false) |
186 | 186 | { |
187 | - return $this->getKey($element); |
|
187 | + return $this->getKey($element); |
|
188 | 188 | } |
189 | 189 | } |
190 | 190 | |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | // validate mapped elements |
253 | 253 | array_map($this->getIdentityExtractor(), $mapped->toArray()); |
254 | 254 | |
255 | - return new static($mapped); |
|
255 | + return new static($mapped); |
|
256 | 256 | } |
257 | 257 | |
258 | 258 | /** |
@@ -341,15 +341,15 @@ discard block |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | /** |
344 | - * @param callable $identityExtractor |
|
345 | - * @return IdentityWrapper |
|
346 | - */ |
|
347 | - public function setIdentityExtractor(callable $identityExtractor) |
|
348 | - { |
|
349 | - $this->identityExtractor = $identityExtractor; |
|
344 | + * @param callable $identityExtractor |
|
345 | + * @return IdentityWrapper |
|
346 | + */ |
|
347 | + public function setIdentityExtractor(callable $identityExtractor) |
|
348 | + { |
|
349 | + $this->identityExtractor = $identityExtractor; |
|
350 | 350 | |
351 | - return $this; |
|
352 | - } |
|
351 | + return $this; |
|
352 | + } |
|
353 | 353 | |
354 | 354 | /** |
355 | 355 | * |
@@ -371,23 +371,23 @@ discard block |
||
371 | 371 | return $this->identityExtractor; |
372 | 372 | } |
373 | 373 | |
374 | - /** |
|
375 | - * @param mixed $element |
|
376 | - * @return mixed |
|
377 | - */ |
|
378 | - protected function getKey($element) |
|
379 | - { |
|
380 | - return call_user_func($this->getIdentityExtractor(), $element); |
|
381 | - } |
|
374 | + /** |
|
375 | + * @param mixed $element |
|
376 | + * @return mixed |
|
377 | + */ |
|
378 | + protected function getKey($element) |
|
379 | + { |
|
380 | + return call_user_func($this->getIdentityExtractor(), $element); |
|
381 | + } |
|
382 | 382 | |
383 | - /** |
|
384 | - * @param mixed $element |
|
385 | - * @return mixed |
|
386 | - */ |
|
387 | - protected function getElement($key) |
|
388 | - { |
|
389 | - return $this->collection->filter(function ($element) use ($key) { |
|
390 | - return $this->getKey($element) == $key; |
|
391 | - })->first(); |
|
392 | - } |
|
383 | + /** |
|
384 | + * @param mixed $element |
|
385 | + * @return mixed |
|
386 | + */ |
|
387 | + protected function getElement($key) |
|
388 | + { |
|
389 | + return $this->collection->filter(function ($element) use ($key) { |
|
390 | + return $this->getKey($element) == $key; |
|
391 | + })->first(); |
|
392 | + } |
|
393 | 393 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | public function init() |
13 | 13 | { |
14 | - // $this->setDescription(/*@translate*/' Where do you want to work tomorrow. This heading gives an immediate overview of your desired next job.'); |
|
14 | + // $this->setDescription(/*@translate*/' Where do you want to work tomorrow. This heading gives an immediate overview of your desired next job.'); |
|
15 | 15 | $this->setIsDescriptionsEnabled(true); |
16 | 16 | parent::init(); |
17 | 17 | } |
@@ -124,9 +124,9 @@ |
||
124 | 124 | public function init() |
125 | 125 | { |
126 | 126 | $this->setName('nativeLanguages') |
127 | - ->setHydrator(new EntityHydrator()) |
|
128 | - ->setObject(new NativeLanguageEntity()) |
|
129 | - ->setLabel('Native Language'); |
|
127 | + ->setHydrator(new EntityHydrator()) |
|
128 | + ->setObject(new NativeLanguageEntity()) |
|
129 | + ->setLabel('Native Language'); |
|
130 | 130 | |
131 | 131 | |
132 | 132 | $this->add( |
@@ -60,11 +60,11 @@ |
||
60 | 60 | protected $skills; |
61 | 61 | |
62 | 62 | /** |
63 | - * Skills |
|
64 | - * |
|
65 | - * @var ArrayCollection |
|
66 | - * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
67 | - */ |
|
63 | + * Skills |
|
64 | + * |
|
65 | + * @var ArrayCollection |
|
66 | + * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
67 | + */ |
|
68 | 68 | protected $languageSkills; |
69 | 69 | |
70 | 70 | /** |
@@ -11,9 +11,9 @@ |
||
11 | 11 | public function init() |
12 | 12 | { |
13 | 13 | $this->setName('language') |
14 | - ->setHydrator(new EntityHydrator()) |
|
15 | - ->setObject(new LanguageEntity()) |
|
16 | - ->setLabel('Language'); |
|
14 | + ->setHydrator(new EntityHydrator()) |
|
15 | + ->setObject(new LanguageEntity()) |
|
16 | + ->setLabel('Language'); |
|
17 | 17 | |
18 | 18 | $this->add( |
19 | 19 | array( |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | if ($exception instanceof UnauthorizedImageAccessException) { |
58 | 58 | $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png'; |
59 | 59 | $response->setStatusCode(Response::STATUS_CODE_403) |
60 | - ->setContent(file_get_contents($image)) |
|
61 | - ->getHeaders() |
|
62 | - ->addHeaderLine('Content-Type', 'image/png'); |
|
60 | + ->setContent(file_get_contents($image)) |
|
61 | + ->getHeaders() |
|
62 | + ->addHeaderLine('Content-Type', 'image/png'); |
|
63 | 63 | $e->stopPropagation(); |
64 | 64 | $response->sendHeaders(); |
65 | 65 | //echo file_get_contents($image); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | $application = $e->getApplication(); |
73 | - $auth = $application->getServiceManager()->get('AuthenticationService'); |
|
73 | + $auth = $application->getServiceManager()->get('AuthenticationService'); |
|
74 | 74 | |
75 | 75 | if (!$auth->hasIdentity()) { |
76 | 76 | $routeMatch = $e->getRouteMatch(); |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | $model->setTemplate($this->getExceptionTemplate()); |
103 | 103 | $e->setResult($model); |
104 | 104 | |
105 | - // $statusCode = $response->getStatusCode(); |
|
106 | - // if ($statusCode === 200) { |
|
105 | + // $statusCode = $response->getStatusCode(); |
|
106 | + // if ($statusCode === 200) { |
|
107 | 107 | $response->setStatusCode(Response::STATUS_CODE_403); |
108 | - // } |
|
108 | + // } |
|
109 | 109 | } |
110 | 110 | } |
@@ -10,10 +10,10 @@ |
||
10 | 10 | use Core\Entity\IdentifiableEntityInterface; |
11 | 11 | |
12 | 12 | interface CvInterface extends EntityInterface, |
13 | - IdentifiableEntityInterface, |
|
14 | - DraftableEntityInterface, |
|
15 | - PermissionsAwareInterface, |
|
16 | - ModificationDateAwareEntityInterface |
|
13 | + IdentifiableEntityInterface, |
|
14 | + DraftableEntityInterface, |
|
15 | + PermissionsAwareInterface, |
|
16 | + ModificationDateAwareEntityInterface |
|
17 | 17 | { |
18 | 18 | |
19 | 19 | /** |