@@ -380,10 +380,10 @@ |
||
380 | 380 | return $this; |
381 | 381 | } |
382 | 382 | |
383 | - /** |
|
384 | - * (non-PHPdoc) |
|
385 | - * @see \Jobs\Entity\JobInterface::getOrganization() |
|
386 | - */ |
|
383 | + /** |
|
384 | + * (non-PHPdoc) |
|
385 | + * @see \Jobs\Entity\JobInterface::getOrganization() |
|
386 | + */ |
|
387 | 387 | public function getOrganization() |
388 | 388 | { |
389 | 389 | return $this->organization; |
@@ -536,7 +536,7 @@ |
||
536 | 536 | |
537 | 537 | /** |
538 | 538 | * Gets the number of unread applications |
539 | - * @return Collection |
|
539 | + * @return integer |
|
540 | 540 | */ |
541 | 541 | public function getUnreadApplications() |
542 | 542 | { |
@@ -460,10 +460,10 @@ discard block |
||
460 | 460 | public function getLocation() |
461 | 461 | { |
462 | 462 | if (null === $this->location) { |
463 | - $array=[]; |
|
464 | - if(null != $this->locations){ |
|
463 | + $array = []; |
|
464 | + if (null != $this->locations) { |
|
465 | 465 | foreach ($this->locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
466 | - $array[]=$location->getCity(); |
|
466 | + $array[] = $location->getCity(); |
|
467 | 467 | } |
468 | 468 | return implode(', ', $array); |
469 | 469 | } |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | if ($removePermissions) { |
519 | 519 | $this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL); |
520 | 520 | } |
521 | - $this->user=null; |
|
521 | + $this->user = null; |
|
522 | 522 | } |
523 | 523 | |
524 | 524 | return $this; |
@@ -768,7 +768,7 @@ discard block |
||
768 | 768 | $organization = $this->organization; |
769 | 769 | if (is_object($organization) && $organization->getImage()) { |
770 | 770 | $organizationImage = $organization->getImage(); |
771 | - return "/file/Organizations.OrganizationImage/" . $organizationImage->getId(); |
|
771 | + return "/file/Organizations.OrganizationImage/".$organizationImage->getId(); |
|
772 | 772 | } |
773 | 773 | return $this->logoRef; |
774 | 774 | } |
@@ -99,8 +99,8 @@ discard block |
||
99 | 99 | $result = $this->forward()->dispatch('Auth\Controller\Password', array('action' => 'index')); |
100 | 100 | $model = new ViewModel( |
101 | 101 | array( |
102 | - 'organization' => $organization->getOrganizationName()->getName() |
|
103 | - ) |
|
102 | + 'organization' => $organization->getOrganizationName()->getName() |
|
103 | + ) |
|
104 | 104 | ); |
105 | 105 | |
106 | 106 | if (!$result->getVariable('valid', false)) { |
@@ -141,8 +141,8 @@ discard block |
||
141 | 141 | |
142 | 142 | return new ViewModel( |
143 | 143 | array( |
144 | - 'organization' => $organization->getOrganizationName()->getName() |
|
145 | - ) |
|
144 | + 'organization' => $organization->getOrganizationName()->getName() |
|
145 | + ) |
|
146 | 146 | ); |
147 | 147 | } |
148 | 148 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'odm_default' => array( |
27 | 27 | 'subscribers' => array( |
28 | 28 | 'Settings/InjectEntityResolverListener', |
29 | - ), |
|
29 | + ), |
|
30 | 30 | ), |
31 | 31 | ), |
32 | 32 | ), |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | 'translation_file_patterns' => array( |
38 | 38 | array( |
39 | 39 | 'type' => 'gettext', |
40 | - 'base_dir' => __DIR__ . '/../language', |
|
40 | + 'base_dir' => __DIR__.'/../language', |
|
41 | 41 | 'pattern' => '%s.mo', |
42 | 42 | ), |
43 | 43 | ), |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | // Where to look for view templates not mapped above |
102 | 102 | 'template_path_stack' => array( |
103 | - __DIR__ . '/../view', |
|
103 | + __DIR__.'/../view', |
|
104 | 104 | ), |
105 | 105 | ), |
106 | 106 |
@@ -60,9 +60,9 @@ |
||
60 | 60 | protected function addButtonsFieldset() |
61 | 61 | { |
62 | 62 | $this->add( |
63 | - array( |
|
64 | - 'type' => 'Jobs/MultipostButtonFieldset' |
|
65 | - ) |
|
63 | + array( |
|
64 | + 'type' => 'Jobs/MultipostButtonFieldset' |
|
65 | + ) |
|
66 | 66 | ); |
67 | 67 | } |
68 | 68 | } |
@@ -111,7 +111,7 @@ |
||
111 | 111 | |
112 | 112 | /** |
113 | 113 | * @param mixed $value |
114 | - * @return mixed|ViewModel |
|
114 | + * @return ViewModel |
|
115 | 115 | * @throws \InvalidArgumentException |
116 | 116 | */ |
117 | 117 | public function filter($value) |
@@ -101,7 +101,7 @@ |
||
101 | 101 | return; |
102 | 102 | } |
103 | 103 | |
104 | - /** |
|
104 | + /** |
|
105 | 105 | * @return mixed |
106 | 106 | */ |
107 | 107 | public function getServerUrlHelper() |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | if (!isset($this->job)) { |
124 | 124 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without an $job'); |
125 | 125 | } |
126 | - $model->setTemplate('templates/' . $this->job->getTemplate() . '/index'); |
|
126 | + $model->setTemplate('templates/'.$this->job->getTemplate().'/index'); |
|
127 | 127 | return $model; |
128 | 128 | } |
129 | 129 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without aa $job'); |
184 | 184 | } |
185 | 185 | $location = $this->job->getLocation(); |
186 | - $this->container['location'] = isset($location)?$location:''; |
|
186 | + $this->container['location'] = isset($location) ? $location : ''; |
|
187 | 187 | return $this; |
188 | 188 | } |
189 | 189 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | } |
205 | 205 | $description = $this->job->getTemplateValues()->getDescription(); |
206 | 206 | |
207 | - $this->container['description'] = isset($description)?$description:''; |
|
207 | + $this->container['description'] = isset($description) ? $description : ''; |
|
208 | 208 | return $this; |
209 | 209 | } |
210 | 210 | |
@@ -268,9 +268,9 @@ discard block |
||
268 | 268 | if (!isset($this->job)) { |
269 | 269 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job'); |
270 | 270 | } |
271 | - $labelQualifications=''; |
|
272 | - $labelBenefits=''; |
|
273 | - $labelRequirements=''; |
|
271 | + $labelQualifications = ''; |
|
272 | + $labelBenefits = ''; |
|
273 | + $labelRequirements = ''; |
|
274 | 274 | |
275 | 275 | $organization = $this->job->getOrganization(); |
276 | 276 | if (isset($organization)) { |
@@ -61,8 +61,8 @@ |
||
61 | 61 | $file = $this->getFileEntity(); |
62 | 62 | |
63 | 63 | $file->setName($value['name']) |
64 | - ->setType($value['type']) |
|
65 | - ->setFile($value['tmp_name']); |
|
64 | + ->setType($value['type']) |
|
65 | + ->setFile($value['tmp_name']); |
|
66 | 66 | |
67 | 67 | return $file; |
68 | 68 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function getConfig() |
27 | 27 | { |
28 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
28 | + return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function getConfig() |
27 | 27 | { |
28 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
28 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | { |
38 | 38 | return array( |
39 | 39 | 'Zend\Loader\ClassMapAutoloader' => [ |
40 | - __DIR__ . '/src/autoload_classmap.php' |
|
40 | + __DIR__.'/src/autoload_classmap.php' |
|
41 | 41 | ], |
42 | 42 | 'Zend\Loader\StandardAutoloader' => array( |
43 | 43 | 'namespaces' => array( |
44 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
45 | - 'OrganizationsTest' => __DIR__ . '/test/' . 'OrganizationsTest' |
|
44 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
45 | + 'OrganizationsTest' => __DIR__.'/test/'.'OrganizationsTest' |
|
46 | 46 | ), |
47 | 47 | ), |
48 | 48 | ); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $createJobListener->attachShared($sharedManager); |
59 | 59 | |
60 | 60 | if ($e->getRequest() instanceof \Zend\Http\Request) { |
61 | - $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $event) { |
|
61 | + $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function(MvcEvent $event) { |
|
62 | 62 | $serviceManager = $event->getApplication() |
63 | 63 | ->getServiceManager(); |
64 | 64 | $options = $serviceManager->get('Organizations/ImageFileCacheOptions'); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * Sets the label of the qualifications form field |
39 | 39 | * |
40 | - * @param string $labelQualification |
|
40 | + * @param string $labelQualifications |
|
41 | 41 | * |
42 | 42 | * @return self |
43 | 43 | */ |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param $options ModuleOptions |
29 | 29 | * @param $config array |
30 | 30 | */ |
31 | - public function __construct($options,$config) |
|
31 | + public function __construct($options, $config) |
|
32 | 32 | { |
33 | 33 | $this->options = $options; |
34 | 34 | $this->config = $config; |
@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function __invoke() |
44 | 44 | { |
45 | - $SocialNetworksEnabled=[]; |
|
46 | - foreach($this->config['hybridauth'] as $key => $val) { |
|
47 | - if ($val['enabled'] and in_array(strtolower($key), $this->options->getEnableLogins())){ |
|
45 | + $SocialNetworksEnabled = []; |
|
46 | + foreach ($this->config['hybridauth'] as $key => $val) { |
|
47 | + if ($val['enabled'] and in_array(strtolower($key), $this->options->getEnableLogins())) { |
|
48 | 48 | $SocialNetworksEnabled[strtolower($key)] = $key; |
49 | 49 | } |
50 | 50 | } |