@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | $view |
211 | 211 | ->expects($this->once()) |
212 | 212 | ->method('render') |
213 | - ->with($this->callback(function (ViewModel $subject) { |
|
213 | + ->with($this->callback(function(ViewModel $subject) { |
|
214 | 214 | return $subject->getTemplate() === 'template.en'; |
215 | 215 | })); |
216 | 216 | $target->getBodyText(); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $view |
232 | 232 | ->expects($this->once()) |
233 | 233 | ->method('render') |
234 | - ->with($this->callback(function (ViewModel $subject) { |
|
234 | + ->with($this->callback(function(ViewModel $subject) { |
|
235 | 235 | return $subject->getTemplate() === 'template'; |
236 | 236 | })); |
237 | 237 | $target->getBodyText(); |
@@ -58,9 +58,9 @@ discard block |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | $date = new \DateTime('today'); |
61 | - $date->sub(new \DateInterval('P' . $days . 'D')); |
|
61 | + $date->sub(new \DateInterval('P'.$days.'D')); |
|
62 | 62 | |
63 | - $query = [ |
|
63 | + $query = [ |
|
64 | 64 | '$and' => [ |
65 | 65 | ['status.name' => StatusInterface::ACTIVE], |
66 | 66 | ['$or' => [ |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | if ($info) { |
90 | 90 | $output = count($jobs).' Jobs'; |
91 | 91 | if ($offset) { |
92 | - $output .= ' starting from ' . $offset; |
|
92 | + $output .= ' starting from '.$offset; |
|
93 | 93 | } |
94 | 94 | $console->writeLine($output, ConsoleColor::YELLOW); |
95 | 95 | $this->listExpiredJobs($jobs); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | // |
103 | 103 | $console->writeLine("$count jobs found, which have to expire ...\n", ConsoleColor::GREEN); |
104 | 104 | |
105 | - $progress = new ProgressBar( |
|
105 | + $progress = new ProgressBar( |
|
106 | 106 | new ConsoleAdapter( |
107 | 107 | array( |
108 | 108 | 'elements' => array( |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | /* @var \Jobs\Entity\Job $job */ |
127 | 127 | foreach ($jobs as $job) { |
128 | - $progress->update($i++, 'Job ' . $i . ' / ' . $count); |
|
128 | + $progress->update($i++, 'Job '.$i.' / '.$count); |
|
129 | 129 | |
130 | 130 | $job->changeStatus('expired'); |
131 | 131 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $i = 0; |
154 | 154 | /* @var Job $job */ |
155 | 155 | foreach ($jobs as $job) { |
156 | - $progress->update($i++, 'Job ' . $i . ' / ' . $count); |
|
156 | + $progress->update($i++, 'Job '.$i.' / '.$count); |
|
157 | 157 | |
158 | 158 | $permissions = $job->getPermissions(); |
159 | 159 | $user = $job->getUser(); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | continue; |
162 | 162 | } |
163 | 163 | try { |
164 | - $group = $user->getGroup($job->getCompany()); |
|
164 | + $group = $user->getGroup($job->getCompany()); |
|
165 | 165 | } catch (\Exception $e) { |
166 | 166 | continue; |
167 | 167 | } |
@@ -201,10 +201,10 @@ discard block |
||
201 | 201 | $org = $job->getCompany(); |
202 | 202 | } |
203 | 203 | |
204 | - $publishStart = is_null($job->getDatePublishStart()) ? 'N/A':$job->getDatePublishStart()->format('Y-m-d'); |
|
205 | - $publishEnd = is_null($job->getDatePublishEnd()) ? 'N/A':$job->getDatePublishEnd()->format('Y-m-d'); |
|
204 | + $publishStart = is_null($job->getDatePublishStart()) ? 'N/A' : $job->getDatePublishStart()->format('Y-m-d'); |
|
205 | + $publishEnd = is_null($job->getDatePublishEnd()) ? 'N/A' : $job->getDatePublishEnd()->format('Y-m-d'); |
|
206 | 206 | $output = sprintf( |
207 | - '%s %s %s %-30s %-20s' . PHP_EOL, |
|
207 | + '%s %s %s %-30s %-20s'.PHP_EOL, |
|
208 | 208 | $id, |
209 | 209 | $publishStart, |
210 | 210 | $publishEnd, |
@@ -64,9 +64,9 @@ discard block |
||
64 | 64 | $controller = $this->target; |
65 | 65 | $controller->method('params') |
66 | 66 | ->willReturnMap([ |
67 | - ['days',30], |
|
68 | - ['limit',10], |
|
69 | - ['info',true] |
|
67 | + ['days', 30], |
|
68 | + ['limit', 10], |
|
69 | + ['info', true] |
|
70 | 70 | ]); |
71 | 71 | |
72 | 72 | $job = new Job(); |
@@ -76,14 +76,14 @@ discard block |
||
76 | 76 | |
77 | 77 | $jobRepo->expects($this->once()) |
78 | 78 | ->method('findBy') |
79 | - ->with($this->isType('array'),null,10,0) |
|
79 | + ->with($this->isType('array'), null, 10, 0) |
|
80 | 80 | ->willReturn([$job]); |
81 | 81 | |
82 | 82 | $console->expects($this->exactly(2)) |
83 | 83 | ->method('writeLine') |
84 | 84 | ->withConsecutive( |
85 | - ['1 Jobs',4,null], |
|
86 | - [$this->stringContains('some-id'),3,null] |
|
85 | + ['1 Jobs', 4, null], |
|
86 | + [$this->stringContains('some-id'), 3, null] |
|
87 | 87 | ); |
88 | 88 | |
89 | 89 | $controller->expireJobsAction(); |
@@ -21,14 +21,14 @@ discard block |
||
21 | 21 | */ |
22 | 22 | class FormDatePicker extends FormText |
23 | 23 | { |
24 | - const DEFAULT_DATE_FORMAT = 'yyyy-mm-dd'; |
|
24 | + const DEFAULT_DATE_FORMAT = 'yyyy-mm-dd'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Language of the datepicker |
28 | 28 | * |
29 | 29 | * @var string |
30 | 30 | */ |
31 | - protected $language="de"; |
|
31 | + protected $language = "de"; |
|
32 | 32 | |
33 | 33 | public function __invoke(ElementInterface $element = null) |
34 | 34 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /* |
64 | 64 | * |
65 | 65 | */ |
66 | - $markup = '<div class="input-group date">%s<div data-toggle="description" data-target="%s" class="input-group-addon" onClick="$(this).parent().find(\':input\').datepicker(\'show\')">' . |
|
66 | + $markup = '<div class="input-group date">%s<div data-toggle="description" data-target="%s" class="input-group-addon" onClick="$(this).parent().find(\':input\').datepicker(\'show\')">'. |
|
67 | 67 | '<i class="fa fa-calendar"></i></div></div><div class="checkbox"></div>'; |
68 | 68 | |
69 | 69 | $markup = sprintf( |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | ['force_canonical' => true], |
94 | 94 | true |
95 | 95 | ) |
96 | - . '?token=' . $user->getToken() |
|
96 | + . '?token='.$user->getToken() |
|
97 | 97 | ; |
98 | 98 | } |
99 | 99 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | |
122 | 122 | return new JsonModel([ |
123 | 123 | 'status' => 'error', |
124 | - 'message' => 'Invalid json data: ' . $e->getMessage() |
|
124 | + 'message' => 'Invalid json data: '.$e->getMessage() |
|
125 | 125 | ]); |
126 | 126 | } |
127 | 127 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | return new JsonModel([ |
135 | 135 | 'status' => 'error', |
136 | - 'message' => 'No job found with apply id "' . $applyId . '"', |
|
136 | + 'message' => 'No job found with apply id "'.$applyId.'"', |
|
137 | 137 | ]); |
138 | 138 | } |
139 | 139 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | ?string $requestedName = null, |
27 | 27 | ?array $options = null |
28 | 28 | ): ApiApplicationHydrator { |
29 | - $hydrator = new ApiApplicationHydrator(); |
|
29 | + $hydrator = new ApiApplicationHydrator(); |
|
30 | 30 | |
31 | 31 | $hydrator->setServerURl( |
32 | 32 | $container->get('ViewHelperManager')->get('serverurl')->__invoke() |
@@ -89,7 +89,7 @@ |
||
89 | 89 | ; |
90 | 90 | $data['attachments'] = []; |
91 | 91 | foreach ($object->getAttachments() as $file) { |
92 | - $data['attachments'][] = $this->serverUrl . $file->getUri(); |
|
92 | + $data['attachments'][] = $this->serverUrl . $file->getUri(); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | unset( |
@@ -84,12 +84,12 @@ |
||
84 | 84 | $data['contact'] = parent::extract($object->getContact()); |
85 | 85 | $data['contact']['image'] = |
86 | 86 | $object->getContact()->getImage() |
87 | - ? $this->serverUrl . $object->getContact()->getImage()->getUri() |
|
87 | + ? $this->serverUrl.$object->getContact()->getImage()->getUri() |
|
88 | 88 | : null |
89 | 89 | ; |
90 | 90 | $data['attachments'] = []; |
91 | 91 | foreach ($object->getAttachments() as $file) { |
92 | - $data['attachments'][] = $this->serverUrl . $file->getUri(); |
|
92 | + $data['attachments'][] = $this->serverUrl.$file->getUri(); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | unset( |