@@ -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() |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function setImageFileCacheHelper($imageFileCacheHelper) |
122 | 122 | { |
123 | - $this->imageFileCacheHelper=$imageFileCacheHelper; |
|
123 | + $this->imageFileCacheHelper = $imageFileCacheHelper; |
|
124 | 124 | return; |
125 | 125 | } |
126 | 126 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | if (!isset($this->job)) { |
147 | 147 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without an $job'); |
148 | 148 | } |
149 | - $model->setTemplate('templates/' . $this->job->getTemplate() . '/index'); |
|
149 | + $model->setTemplate('templates/'.$this->job->getTemplate().'/index'); |
|
150 | 150 | return $model; |
151 | 151 | } |
152 | 152 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without aa $job'); |
207 | 207 | } |
208 | 208 | $location = $this->job->getLocation(); |
209 | - $this->container['location'] = isset($location)?$location:''; |
|
209 | + $this->container['location'] = isset($location) ? $location : ''; |
|
210 | 210 | return $this; |
211 | 211 | } |
212 | 212 | |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | } |
228 | 228 | $description = $this->job->getTemplateValues()->getDescription(); |
229 | 229 | |
230 | - $this->container['description'] = isset($description)?$description:''; |
|
230 | + $this->container['description'] = isset($description) ? $description : ''; |
|
231 | 231 | return $this; |
232 | 232 | } |
233 | 233 | |
@@ -291,9 +291,9 @@ discard block |
||
291 | 291 | if (!isset($this->job)) { |
292 | 292 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job'); |
293 | 293 | } |
294 | - $labelQualifications=''; |
|
295 | - $labelBenefits=''; |
|
296 | - $labelRequirements=''; |
|
294 | + $labelQualifications = ''; |
|
295 | + $labelBenefits = ''; |
|
296 | + $labelRequirements = ''; |
|
297 | 297 | |
298 | 298 | $organization = $this->job->getOrganization(); |
299 | 299 | 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 | } |
@@ -194,7 +194,7 @@ |
||
194 | 194 | $qb->addOr($qb->expr()->field('info.email')->equals($regex)); |
195 | 195 | } |
196 | 196 | $qb->sort(array('info.lastName' => 1)) |
197 | - ->sort(array('info.email' => 1)); |
|
197 | + ->sort(array('info.email' => 1)); |
|
198 | 198 | |
199 | 199 | return $qb->getQuery()->execute(); |
200 | 200 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | public function findByProfileIdentifier($identifier, $provider, array $options = []) |
118 | 118 | { |
119 | - return $this->findOneBy(array('profiles.' . $provider . '.auth.identifier' => $identifier), $options) ?: $this->findOneBy(array('profile.identifier' => $identifier), $options); |
|
119 | + return $this->findOneBy(array('profiles.'.$provider.'.auth.identifier' => $identifier), $options) ?: $this->findOneBy(array('profile.identifier' => $identifier), $options); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | $qb->field('_id')->notEqual($curentUserId) |
134 | 134 | ->addAnd( |
135 | 135 | $qb->expr() |
136 | - ->addOr($qb->expr()->field('profiles.' . $provider . '.auth.identifier' )->equals($identifier)) |
|
136 | + ->addOr($qb->expr()->field('profiles.'.$provider.'.auth.identifier')->equals($identifier)) |
|
137 | 137 | ->addOr($qb->expr()->field('profile.identifier')->equals($identifier)) |
138 | 138 | ); |
139 | 139 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | return $this->findOneBy( |
190 | 190 | array( |
191 | 191 | '$or' => array( |
192 | - array('login' => $identity . $suffix), |
|
192 | + array('login' => $identity.$suffix), |
|
193 | 193 | array('info.email' => $identity) |
194 | 194 | ) |
195 | 195 | ) |
@@ -238,10 +238,10 @@ discard block |
||
238 | 238 | public function findByQuery($query) |
239 | 239 | { |
240 | 240 | $qb = $this->createQueryBuilder(); |
241 | - $parts = explode(' ', trim($query)); |
|
241 | + $parts = explode(' ', trim($query)); |
|
242 | 242 | |
243 | 243 | foreach ($parts as $q) { |
244 | - $regex = new \MongoRegex('/^' . $query . '/i'); |
|
244 | + $regex = new \MongoRegex('/^'.$query.'/i'); |
|
245 | 245 | $qb->addOr($qb->expr()->field('info.firstName')->equals($regex)); |
246 | 246 | $qb->addOr($qb->expr()->field('info.lastName')->equals($regex)); |
247 | 247 | $qb->addOr($qb->expr()->field('info.email')->equals($regex)); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @throws Mapping\MappingException |
53 | 53 | * @throws LockException |
54 | 54 | * @throws UserDeactivatedException |
55 | - * @return null | UserInterface |
|
55 | + * @return null|UserInterface | UserInterface |
|
56 | 56 | */ |
57 | 57 | public function find($id, $lockMode = \Doctrine\ODM\MongoDB\LockMode::NONE, $lockVersion = null, array $options = []) |
58 | 58 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * @param array $criteria |
64 | 64 | * @param array $options |
65 | 65 | * @throws UserDeactivatedException |
66 | - * @return null | UserInterface |
|
66 | + * @return null|UserInterface | UserInterface |
|
67 | 67 | */ |
68 | 68 | public function findOneBy(array $criteria, array $options = []) |
69 | 69 | { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * Creates a User |
93 | 93 | * |
94 | 94 | * @see \Core\Repository\AbstractRepository::create() |
95 | - * @return UserInterface |
|
95 | + * @return \Core\Entity\EntityInterface |
|
96 | 96 | */ |
97 | 97 | public function create(array $data = null) |
98 | 98 | { |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | * @param UserInterface $user |
268 | 268 | * @param array $options |
269 | 269 | * @throws UserDeactivatedException |
270 | - * @return null | UserInterface |
|
270 | + * @return null|UserInterface | UserInterface |
|
271 | 271 | */ |
272 | 272 | protected function assertEntity(UserInterface $user = null, array $options) |
273 | 273 | { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @return bool |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | public function getMode() |
76 | 76 | { |
@@ -40,9 +40,9 @@ |
||
40 | 40 | * @var array |
41 | 41 | */ |
42 | 42 | protected $reCaptcha = [ |
43 | - 'site_key' => 'Your Recapture Public Key', // "site_key" |
|
44 | - 'secret_key' => 'Your Recapture Private Key', // "secret_key" |
|
45 | - 'ssl' => true, // include google api via http(s) |
|
43 | + 'site_key' => 'Your Recapture Public Key', // "site_key" |
|
44 | + 'secret_key' => 'Your Recapture Private Key', // "secret_key" |
|
45 | + 'ssl' => true, // include google api via http(s) |
|
46 | 46 | ]; |
47 | 47 | |
48 | 48 | /** |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $response->setStatusCode(Response::STATUS_CODE_404); |
42 | 42 | return $response; |
43 | 43 | } |
44 | - $jsonModel=new JsonModel(); |
|
44 | + $jsonModel = new JsonModel(); |
|
45 | 45 | $jsonModel->setVariables($this->apiJobDehydrator->dehydrateList($jobs)); |
46 | 46 | $jsonModel->setJsonpCallback('yawikParseJobs'); |
47 | 47 |
@@ -62,6 +62,6 @@ |
||
62 | 62 | ) |
63 | 63 | ) |
64 | 64 | ) |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | } |