@@ -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 |
@@ -84,11 +84,11 @@ discard block |
||
84 | 84 | } |
85 | 85 | $statusElement->setValueOptions($statesForSelections); |
86 | 86 | |
87 | - $job = $params->job ? $jobRepository->find($params->job) : null; |
|
87 | + $job = $params->job ? $jobRepository->find($params->job) : null; |
|
88 | 88 | $paginator = $this->paginator('Applications'); |
89 | 89 | |
90 | 90 | if ($job) { |
91 | - $params['job_title'] = '[' . $job->getApplyId() . '] ' . $job->getTitle(); |
|
91 | + $params['job_title'] = '['.$job->getApplyId().'] '.$job->getTitle(); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | $form->bind($params); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | |
151 | 151 | |
152 | 152 | |
153 | - $format=$this->params()->fromQuery('format'); |
|
153 | + $format = $this->params()->fromQuery('format'); |
|
154 | 154 | |
155 | 155 | if ($application->isDraft()) { |
156 | 156 | $list = false; |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | && ($network = $this->params()->fromQuery('network')) |
279 | 279 | && ($data = $this->params()->fromPost('data')) |
280 | 280 | ) { |
281 | - $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network; |
|
281 | + $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network; |
|
282 | 282 | $profile = new $profileClass(); |
283 | 283 | $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY)); |
284 | 284 | } else { |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | |
398 | 398 | $this->acl($application, 'forward'); |
399 | 399 | |
400 | - $translator = $services->get('translator'); |
|
400 | + $translator = $services->get('translator'); |
|
401 | 401 | |
402 | 402 | if (!$emailAddress) { |
403 | 403 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | { |
439 | 439 | $id = $this->params('id'); |
440 | 440 | $services = $this->serviceLocator; |
441 | - $repositories= $services->get('repositories'); |
|
441 | + $repositories = $services->get('repositories'); |
|
442 | 442 | $repository = $repositories->get('Applications/Application'); |
443 | 443 | $application = $repository->find($id); |
444 | 444 | |
@@ -448,8 +448,8 @@ discard block |
||
448 | 448 | |
449 | 449 | $this->acl($application, 'delete'); |
450 | 450 | |
451 | - $events = $services->get('Applications/Events'); |
|
452 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]); |
|
451 | + $events = $services->get('Applications/Events'); |
|
452 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]); |
|
453 | 453 | |
454 | 454 | $repositories->remove($application); |
455 | 455 |
@@ -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 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | if ($this->hasIdentity() && ($id = $this->getIdentity())) { |
62 | 62 | $user = $this->getRepository()->find($id, \Doctrine\ODM\MongoDB\LockMode::NONE, null, ['allowDeactivated' => true]); |
63 | 63 | if (!$user) { |
64 | - throw new \OutOfBoundsException('Unknown user id: ' . $id); |
|
64 | + throw new \OutOfBoundsException('Unknown user id: '.$id); |
|
65 | 65 | } |
66 | 66 | $this->user = $user; |
67 | 67 | } else { |
@@ -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 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @var string |
39 | 39 | */ |
40 | - const CLASS_NAME = ''; |
|
40 | + const CLASS_NAME = ''; |
|
41 | 41 | |
42 | 42 | /** |
43 | 43 | * Creation options. |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $instance = $this->createFormInstance($container, $requestedName, $options); |
76 | 76 | |
77 | 77 | if (!$instance instanceOf CustomizableFieldsetInterface) { |
78 | - throw new \RuntimeException('Form or Fieldset instance must implement ' . CustomizableFieldsetInterface::class); |
|
78 | + throw new \RuntimeException('Form or Fieldset instance must implement '.CustomizableFieldsetInterface::class); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | $customizeOptions = $this->getCustomizationOptions($container, $requestedName, $options); |