@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $this->add([ |
28 | 28 | 'name' => 'endDate', |
29 | - 'required' => ! $data['currentIndicator'] |
|
29 | + 'required' => !$data['currentIndicator'] |
|
30 | 30 | ]); |
31 | 31 | |
32 | 32 | return parent::setData($data); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | public function setDesiredJob($desiredJob) |
88 | 88 | { |
89 | - $this->desiredJob=$desiredJob; |
|
89 | + $this->desiredJob = $desiredJob; |
|
90 | 90 | return $this; |
91 | 91 | } |
92 | 92 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function setDesiredLocation($desiredLocation) |
107 | 107 | { |
108 | - $this->desiredLocation=$desiredLocation; |
|
108 | + $this->desiredLocation = $desiredLocation; |
|
109 | 109 | return $this; |
110 | 110 | } |
111 | 111 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | public function setWillingnessToTravel($willingnessToTravel) |
145 | 145 | { |
146 | - $this->willingnessToTravel=$willingnessToTravel; |
|
146 | + $this->willingnessToTravel = $willingnessToTravel; |
|
147 | 147 | return $this; |
148 | 148 | } |
149 | 149 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function setExpectedSalary($expectedSalary) |
164 | 164 | { |
165 | - $this->expectedSalary=$expectedSalary; |
|
165 | + $this->expectedSalary = $expectedSalary; |
|
166 | 166 | return $this; |
167 | 167 | } |
168 | 168 |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $application->changeStatus( |
146 | 146 | $application->getStatus(), |
147 | 147 | sprintf(/*@translate*/ 'Application was read by %s', |
148 | - $this->auth()->getUser()->getInfo()->getDisplayName())); |
|
148 | + $this->auth()->getUser()->getInfo()->getDisplayName())); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | |
@@ -172,9 +172,9 @@ discard block |
||
172 | 172 | $viewModel->setVariables( |
173 | 173 | /*array( |
174 | 174 | 'application' => */$this->serviceLocator |
175 | - ->get('builders') |
|
176 | - ->get('JsonApplication') |
|
177 | - ->unbuild($application) |
|
175 | + ->get('builders') |
|
176 | + ->get('JsonApplication') |
|
177 | + ->unbuild($application) |
|
178 | 178 | ); |
179 | 179 | $viewModel->setVariable('isUnread', $applicationIsUnread); |
180 | 180 | $return = $viewModel; |
@@ -337,12 +337,12 @@ discard block |
||
337 | 337 | |
338 | 338 | /* @var ApplicationEvent $event */ |
339 | 339 | $event = $events->getEvent(ApplicationEvent::EVENT_APPLICATION_STATUS_CHANGE, |
340 | - $this, |
|
341 | - [ |
|
342 | - 'application' => $application, |
|
343 | - 'status' => $status, |
|
344 | - 'user' => $this->auth()->getUser(), |
|
345 | - ] |
|
340 | + $this, |
|
341 | + [ |
|
342 | + 'application' => $application, |
|
343 | + 'status' => $status, |
|
344 | + 'user' => $this->auth()->getUser(), |
|
345 | + ] |
|
346 | 346 | ); |
347 | 347 | |
348 | 348 | $event->setIsPostRequest($request->isPost()); |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | $emailAddress = $this->params()->fromQuery('email'); |
394 | 394 | /* @var \Applications\Entity\Application $application */ |
395 | 395 | $application = $services->get('repositories')->get('Applications/Application') |
396 | - ->find($this->params('id')); |
|
396 | + ->find($this->params('id')); |
|
397 | 397 | |
398 | 398 | $this->acl($application, 'forward'); |
399 | 399 |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | |
121 | 121 | |
122 | - $format=$this->params()->fromQuery('format'); |
|
122 | + $format = $this->params()->fromQuery('format'); |
|
123 | 123 | |
124 | 124 | if ($application->isDraft()) { |
125 | 125 | $list = false; |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | && ($network = $this->params()->fromQuery('network')) |
248 | 248 | && ($data = $this->params()->fromPost('data')) |
249 | 249 | ) { |
250 | - $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network; |
|
250 | + $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network; |
|
251 | 251 | $profile = new $profileClass(); |
252 | 252 | $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY)); |
253 | 253 | } else { |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | |
367 | 367 | $this->acl($application, 'forward'); |
368 | 368 | |
369 | - $translator = $services->get('translator'); |
|
369 | + $translator = $services->get('translator'); |
|
370 | 370 | |
371 | 371 | if (!$emailAddress) { |
372 | 372 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | { |
408 | 408 | $id = $this->params('id'); |
409 | 409 | $services = $this->serviceLocator; |
410 | - $repositories= $services->get('repositories'); |
|
410 | + $repositories = $services->get('repositories'); |
|
411 | 411 | $repository = $repositories->get('Applications/Application'); |
412 | 412 | $application = $repository->find($id); |
413 | 413 | |
@@ -417,8 +417,8 @@ discard block |
||
417 | 417 | |
418 | 418 | $this->acl($application, 'delete'); |
419 | 419 | |
420 | - $events = $services->get('Applications/Events'); |
|
421 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]); |
|
420 | + $events = $services->get('Applications/Events'); |
|
421 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]); |
|
422 | 422 | |
423 | 423 | $repositories->remove($application); |
424 | 424 |
@@ -121,7 +121,7 @@ |
||
121 | 121 | */ |
122 | 122 | public function setUser($user) |
123 | 123 | { |
124 | - $this->user=$user; |
|
124 | + $this->user = $user; |
|
125 | 125 | return $this; |
126 | 126 | } |
127 | 127 | } |
@@ -100,7 +100,7 @@ |
||
100 | 100 | 'link' => $this->router->assemble( |
101 | 101 | ['id' => $this->application->getId()], |
102 | 102 | ['name'=>'lang/applications/detail', 'force_canonical'=>true] |
103 | - ), |
|
103 | + ), |
|
104 | 104 | ]; |
105 | 105 | |
106 | 106 | $this->setTo($this->user->getInfo()->getEmail(), $this->user->getInfo()->getDisplayName(false)); |
@@ -135,7 +135,7 @@ |
||
135 | 135 | return array( |
136 | 136 | 'year' => strval($xml->year), |
137 | 137 | 'month'=> isset($xml->month) ? strval($xml->month) : '01', |
138 | - 'day' => isset($xml->day) ? strval($xml->day) : '01', |
|
138 | + 'day' => isset($xml->day) ? strval($xml->day) : '01', |
|
139 | 139 | ); |
140 | 140 | } |
141 | 141 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function getConfig() |
38 | 38 | { |
39 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
39 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -52,19 +52,19 @@ discard block |
||
52 | 52 | // This ensures the class from "addtional-providers" is loaded. |
53 | 53 | array( |
54 | 54 | 'Hybrid_Providers_XING' |
55 | - => __DIR__ . '/../../vendor/hybridauth/hybridauth/additional-providers/hybridauth-xing/Providers/XING.php', |
|
55 | + => __DIR__.'/../../vendor/hybridauth/hybridauth/additional-providers/hybridauth-xing/Providers/XING.php', |
|
56 | 56 | ), |
57 | 57 | array( |
58 | 58 | 'Hybrid_Providers_Github' |
59 | - => __DIR__ . '/../../vendor/hybridauth/hybridauth/additional-providers/hybridauth-github/Providers/GitHub.php', |
|
59 | + => __DIR__.'/../../vendor/hybridauth/hybridauth/additional-providers/hybridauth-github/Providers/GitHub.php', |
|
60 | 60 | ), |
61 | 61 | ), |
62 | 62 | 'Zend\Loader\StandardAutoloader' => array( |
63 | 63 | 'namespaces' => array( |
64 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
65 | - 'AuthTest' => __DIR__ . '/test/AuthTest', |
|
66 | - 'Acl' => __DIR__ . '/src/Acl', |
|
67 | - 'AclTest' => __DIR__ . '/test/AclTest', |
|
64 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
65 | + 'AuthTest' => __DIR__.'/test/AuthTest', |
|
66 | + 'Acl' => __DIR__.'/src/Acl', |
|
67 | + 'AclTest' => __DIR__.'/test/AclTest', |
|
68 | 68 | ), |
69 | 69 | ), |
70 | 70 | ); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | $eventManager->attach( |
82 | 82 | MvcEvent::EVENT_ROUTE, |
83 | - function (MvcEvent $e) use ($services) { |
|
83 | + function(MvcEvent $e) use ($services) { |
|
84 | 84 | /* @var $checkPermissionsListener \Acl\Listener\CheckPermissionsListener */ |
85 | 85 | $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener'); |
86 | 86 | $checkPermissionsListener->onRoute($e); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | $eventManager->attach( |
92 | 92 | MvcEvent::EVENT_DISPATCH, |
93 | - function (MvcEvent $e) use ($services) { |
|
93 | + function(MvcEvent $e) use ($services) { |
|
94 | 94 | /** @var CheckPermissionsListener $checkPermissionsListener */ |
95 | 95 | $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener'); |
96 | 96 | $checkPermissionsListener->onDispatch($e); |
@@ -142,7 +142,7 @@ |
||
142 | 142 | * |
143 | 143 | * @return array |
144 | 144 | */ |
145 | - protected function createValueOptions(NodeInterface $node, $allowSelectNodes = false, $isRoot=true) |
|
145 | + protected function createValueOptions(NodeInterface $node, $allowSelectNodes = false, $isRoot = true) |
|
146 | 146 | { |
147 | 147 | $key = $isRoot ? $node->getValue() : $node->getValueWithParents(); |
148 | 148 | $name = $node->getName(); |
@@ -144,7 +144,7 @@ |
||
144 | 144 | |
145 | 145 | public function getValueWithParents($withRoot = false) |
146 | 146 | { |
147 | - $parts = [ $this->getValue() ]; |
|
147 | + $parts = [$this->getValue()]; |
|
148 | 148 | $item = $this; |
149 | 149 | |
150 | 150 | while ($item = $item->getParent()) { |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | { |
29 | 29 | |
30 | 30 | /** |
31 | - * @var string |
|
32 | - */ |
|
31 | + * @var string |
|
32 | + */ |
|
33 | 33 | protected $partial = 'partial/language-switcher'; |
34 | 34 | |
35 | 35 | /** |
@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | { |
42 | 42 | |
43 | 43 | $options = array_merge([ |
44 | - 'partial' => $this->partial, |
|
45 | - ], $options); |
|
44 | + 'partial' => $this->partial, |
|
45 | + ], $options); |
|
46 | 46 | |
47 | 47 | $view = $this->view; |
48 | 48 | $partial = $options['partial']; |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $partial = $options['partial']; |
49 | 49 | |
50 | 50 | |
51 | - $variables=[]; |
|
51 | + $variables = []; |
|
52 | 52 | |
53 | 53 | return $view->partial($partial, $variables); |
54 | 54 | } |