@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function getConfig() |
39 | 39 | { |
40 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
40 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return array( |
51 | 51 | 'Zend\Loader\StandardAutoloader' => array( |
52 | 52 | 'namespaces' => array( |
53 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
53 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
54 | 54 | ), |
55 | 55 | ), |
56 | 56 | ); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * @var String |
36 | 36 | * @ODM\Field(type="string") |
37 | 37 | */ |
38 | - protected $qualifications=''; |
|
38 | + protected $qualifications = ''; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Requirements field of the job template |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @var String |
44 | 44 | * @ODM\Field(type="string") |
45 | 45 | */ |
46 | - protected $requirements=''; |
|
46 | + protected $requirements = ''; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Benefits field of the job template |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @var String |
52 | 52 | * @ODM\Field(type="string") |
53 | 53 | */ |
54 | - protected $benefits=''; |
|
54 | + protected $benefits = ''; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Job title field of the job template |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @var String |
60 | 60 | * @ODM\Field(type="string") |
61 | 61 | */ |
62 | - protected $title=''; |
|
62 | + protected $title = ''; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * Company description field of the job template |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * @var String |
68 | 68 | * @ODM\Field(type="string") |
69 | 69 | */ |
70 | - protected $description=''; |
|
70 | + protected $description = ''; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * language of the job template values. Must be a valid ISO 639-1 code |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * @var String |
76 | 76 | * @ODM\Field(type="string") |
77 | 77 | */ |
78 | - protected $language='en'; |
|
78 | + protected $language = 'en'; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * free values (currently not in use) |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function setQualifications($qualifications) |
94 | 94 | { |
95 | - $this->qualifications= (string) $qualifications; |
|
95 | + $this->qualifications = (string) $qualifications; |
|
96 | 96 | return $this; |
97 | 97 | } |
98 | 98 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public function setRequirements($requirements) |
116 | 116 | { |
117 | - $this->requirements=(string) $requirements; |
|
117 | + $this->requirements = (string) $requirements; |
|
118 | 118 | return $this; |
119 | 119 | } |
120 | 120 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | public function setBenefits($benefits) |
138 | 138 | { |
139 | - $this->benefits=(string) $benefits; |
|
139 | + $this->benefits = (string) $benefits; |
|
140 | 140 | return $this; |
141 | 141 | } |
142 | 142 | |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function setTitle($title) |
160 | 160 | { |
161 | - $this->title=(string) $title; |
|
161 | + $this->title = (string) $title; |
|
162 | 162 | return $this; |
163 | 163 | } |
164 | 164 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | */ |
181 | 181 | public function setDescription($description) |
182 | 182 | { |
183 | - $this->description=(string) $description; |
|
183 | + $this->description = (string) $description; |
|
184 | 184 | return $this; |
185 | 185 | } |
186 | 186 | |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function setLanguage($language) |
204 | 204 | { |
205 | - $this->language=(string) $language; |
|
205 | + $this->language = (string) $language; |
|
206 | 206 | return $this; |
207 | 207 | } |
208 | 208 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | |
248 | 248 | public function __get($property) |
249 | 249 | { |
250 | - $getter = "get" . ucfirst($property); |
|
250 | + $getter = "get".ucfirst($property); |
|
251 | 251 | if (method_exists($this, $getter)) { |
252 | 252 | return $this->$getter(); |
253 | 253 | } |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | public function __set($property, $value) |
263 | 263 | { |
264 | 264 | //$this->checkWriteAccess(); |
265 | - $setter = 'set' . ucfirst($property); |
|
265 | + $setter = 'set'.ucfirst($property); |
|
266 | 266 | if (method_exists($this, $setter)) { |
267 | 267 | $this->$setter($value); |
268 | 268 | return; |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | if ($removePermissions) { |
481 | 481 | $this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL); |
482 | 482 | } |
483 | - $this->user=null; |
|
483 | + $this->user = null; |
|
484 | 484 | } |
485 | 485 | |
486 | 486 | return $this; |
@@ -705,7 +705,7 @@ discard block |
||
705 | 705 | $organization = $this->organization; |
706 | 706 | if (isset($organization) && isset($organization->image)) { |
707 | 707 | $organizationImage = $organization->image; |
708 | - return "/file/Organizations.OrganizationImage/" . $organizationImage->id; |
|
708 | + return "/file/Organizations.OrganizationImage/".$organizationImage->id; |
|
709 | 709 | } |
710 | 710 | return $this->logoRef; |
711 | 711 | } |
@@ -52,12 +52,12 @@ discard block |
||
52 | 52 | |
53 | 53 | public function __construct($status = self::CREATED) |
54 | 54 | { |
55 | - $constant = 'self::' . strtoupper($status); |
|
55 | + $constant = 'self::'.strtoupper($status); |
|
56 | 56 | if (!defined($constant)) { |
57 | - throw new \DomainException('Unknown status: ' . $status); |
|
57 | + throw new \DomainException('Unknown status: '.$status); |
|
58 | 58 | } |
59 | - $this->name=constant($constant); |
|
60 | - $this->order=$this->getOrder(); |
|
59 | + $this->name = constant($constant); |
|
60 | + $this->order = $this->getOrder(); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function getName() |
68 | 68 | { |
69 | - return isset($this->name)?$this->name:''; |
|
69 | + return isset($this->name) ? $this->name : ''; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -286,14 +286,14 @@ discard block |
||
286 | 286 | { |
287 | 287 | $methods = array_filter( |
288 | 288 | get_class_methods($source), |
289 | - function ($v) { |
|
289 | + function($v) { |
|
290 | 290 | return 3 < strlen($v) && strpos($v, 'get') === 0; |
291 | 291 | } |
292 | 292 | ); |
293 | 293 | // these attributes don't need to get copied |
294 | 294 | $methods = array_diff($methods, array('getId', 'getHydrator', 'getHiringOrganizations')); |
295 | 295 | $methods = array_map( |
296 | - function ($v) { |
|
296 | + function($v) { |
|
297 | 297 | return lcfirst(substr($v, 3)); |
298 | 298 | }, |
299 | 299 | $methods |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | $element = $source->$attribute; |
303 | 303 | if (isset($element)) { |
304 | 304 | // when the parameter is rigid you can't assign an non-existing elements |
305 | - if (method_exists($target, 'set' . lcfirst($attribute))) { |
|
305 | + if (method_exists($target, 'set'.lcfirst($attribute))) { |
|
306 | 306 | $target->$attribute = $element; |
307 | 307 | } |
308 | 308 | } |
@@ -63,10 +63,10 @@ |
||
63 | 63 | $image = $org->getImage(); |
64 | 64 | $imageUrl = $image ? $image->getUri() : ''; |
65 | 65 | |
66 | - $options[$org->getId()] = $name . '|' |
|
67 | - . $contact->getCity() . '|' |
|
68 | - . $contact->getStreet() . '|' |
|
69 | - . $contact->getHouseNumber() . '|' |
|
66 | + $options[$org->getId()] = $name.'|' |
|
67 | + . $contact->getCity().'|' |
|
68 | + . $contact->getStreet().'|' |
|
69 | + . $contact->getHouseNumber().'|' |
|
70 | 70 | . $imageUrl; |
71 | 71 | } |
72 | 72 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | public function render(ElementInterface $element, $options = null) |
37 | 37 | { |
38 | - $content = '<iframe src="' . $element->getValue() . '" name="preview" style="width:100%; height:800px;"></iframe>'; |
|
38 | + $content = '<iframe src="'.$element->getValue().'" name="preview" style="width:100%; height:800px;"></iframe>'; |
|
39 | 39 | return $content; |
40 | 40 | } |
41 | 41 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | return $this->findBy( |
58 | 58 | array( |
59 | - 'permissions.assigned.' . $resourceId => array( |
|
59 | + 'permissions.assigned.'.$resourceId => array( |
|
60 | 60 | '$exists' => true |
61 | 61 | ) |
62 | 62 | ) |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $qb->hydrate(false) |
78 | 78 | ->select('title', 'applyId') |
79 | 79 | ->field('permissions.view')->equals($userId) |
80 | - ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
80 | + ->field('title')->equals(new \MongoRegex('/'.$query.'/i')) |
|
81 | 81 | ->sort('title') |
82 | 82 | ->limit(5); |
83 | 83 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $qb = $this->createQueryBuilder(); |
145 | 145 | $qb->distinct('organization') |
146 | 146 | ->hydrate(true) |
147 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
147 | + ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]); |
|
148 | 148 | $q = $qb->getQuery(); |
149 | 149 | $r = $q->execute(); |
150 | 150 | $r = $r->toArray(); |
@@ -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 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without aa $job'); |
172 | 172 | } |
173 | 173 | $location = $this->job->getLocation(); |
174 | - $this->container['location'] = isset($location)?$location:''; |
|
174 | + $this->container['location'] = isset($location) ? $location : ''; |
|
175 | 175 | return $this; |
176 | 176 | } |
177 | 177 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | } |
193 | 193 | $description = $this->job->templateValues->description; |
194 | 194 | |
195 | - $this->container['description'] = isset($description)?$description:''; |
|
195 | + $this->container['description'] = isset($description) ? $description : ''; |
|
196 | 196 | return $this; |
197 | 197 | } |
198 | 198 | |
@@ -256,9 +256,9 @@ discard block |
||
256 | 256 | if (!isset($this->job)) { |
257 | 257 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job'); |
258 | 258 | } |
259 | - $labelQualifications=''; |
|
260 | - $labelBenefits=''; |
|
261 | - $labelRequirements=''; |
|
259 | + $labelQualifications = ''; |
|
260 | + $labelBenefits = ''; |
|
261 | + $labelRequirements = ''; |
|
262 | 262 | |
263 | 263 | $organization = $this->job->organization; |
264 | 264 | if (isset($organization)) { |