@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function __construct($basePath = '') |
51 | 51 | { |
52 | - $this->basePath = rtrim($basePath, '/') . '/'; |
|
52 | + $this->basePath = rtrim($basePath, '/').'/'; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | public function __invoke($name, array $params = []) |
65 | 65 | { |
66 | 66 | if (is_array($name)) { |
67 | - if (!isset($name[ 'ajax' ])) { |
|
67 | + if (!isset($name['ajax'])) { |
|
68 | 68 | throw new \InvalidArgumentException('Key "ajax" is required when passing array as first argument.'); |
69 | 69 | } |
70 | 70 | $params = $name; |
@@ -58,7 +58,7 @@ |
||
58 | 58 | $states = static::getStates(); |
59 | 59 | |
60 | 60 | if (!in_array($state, $states)) { |
61 | - throw new \InvalidArgumentException('Invalid state name: ' . $state); |
|
61 | + throw new \InvalidArgumentException('Invalid state name: '.$state); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | $this->state = $state; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $imageSpecs = $this->options->getImages(); |
87 | 87 | |
88 | 88 | |
89 | - $images = [ ImageSetInterface::ORIGINAL => $this->createEntity($file, $data) ]; |
|
89 | + $images = [ImageSetInterface::ORIGINAL => $this->createEntity($file, $data)]; |
|
90 | 90 | |
91 | 91 | foreach ($imageSpecs as $key => $size) { |
92 | 92 | $newImage = ImageSetInterface::THUMBNAIL == $key |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | : $this->createImage($image, $size); |
95 | 95 | |
96 | 96 | if ($newImage) { |
97 | - $entity = $this->createEntity($newImage, $data, $key); |
|
97 | + $entity = $this->createEntity($newImage, $data, $key); |
|
98 | 98 | $images[$key] = $entity; |
99 | 99 | } |
100 | 100 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | |
143 | 143 | $entity |
144 | 144 | ->setFile($file) |
145 | - ->setName(($prefix ? "$prefix-" : '') . $data['name']) |
|
145 | + ->setName(($prefix ? "$prefix-" : '').$data['name']) |
|
146 | 146 | ->setType($data['type']) |
147 | 147 | ; |
148 | 148 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @var array |
44 | 44 | */ |
45 | 45 | protected $images = [ |
46 | - ImageSetInterface::THUMBNAIL => [100,100], |
|
46 | + ImageSetInterface::THUMBNAIL => [100, 100], |
|
47 | 47 | ]; |
48 | 48 | |
49 | 49 | /** |
@@ -46,7 +46,7 @@ |
||
46 | 46 | case ImagineOptions::LIB_GD: |
47 | 47 | case ImagineOptions::LIB_IMAGICK: |
48 | 48 | case ImagineOptions::LIB_GMAGICK: |
49 | - $imagineClass = '\Imagine\\' . $lib . '\Imagine'; |
|
49 | + $imagineClass = '\Imagine\\'.$lib.'\Imagine'; |
|
50 | 50 | $imagine = new $imagineClass; |
51 | 51 | break; |
52 | 52 | } |
@@ -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)) { |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | return $this->proxy('__isset', $property); |
196 | 196 | } |
197 | 197 | |
198 | - public function notEmpty($property, array $args=[]) |
|
198 | + public function notEmpty($property, array $args = []) |
|
199 | 199 | { |
200 | 200 | return $this->proxy('notEmpty', $args); |
201 | 201 | } |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | |
293 | 293 | public function setImages(\Core\Entity\ImageSet $images) |
294 | 294 | { |
295 | - return $this->proxy('setImages',$images); |
|
295 | + return $this->proxy('setImages', $images); |
|
296 | 296 | } |
297 | 297 | |
298 | 298 | public function setOrganizationName(OrganizationName $organizationNames) |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @var array |
35 | 35 | */ |
36 | - protected $headscripts = [ 'Jobs/js/forms.manager-select.js' ]; |
|
36 | + protected $headscripts = ['Jobs/js/forms.manager-select.js']; |
|
37 | 37 | |
38 | 38 | public function setHeadscripts(array $scripts) |
39 | 39 | { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | [ |
89 | 89 | 'application' => $this->application, |
90 | 90 | 'user' => $employee->getUser(), |
91 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
91 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
92 | 92 | ] |
93 | 93 | ); |
94 | 94 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | [ |
107 | 107 | 'job' => $this->application->getJob(), |
108 | 108 | 'user' => $recruiter, |
109 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
109 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
110 | 110 | ] |
111 | 111 | ); |
112 | 112 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | [ |
124 | 124 | 'application' => $this->application, |
125 | 125 | 'body' => $ackBody, |
126 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
126 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
127 | 127 | ] |
128 | 128 | ); |
129 | 129 |