@@ -319,8 +319,8 @@ |
||
319 | 319 | * |
320 | 320 | * @param string $path The path (relative to the application root) of the file |
321 | 321 | */ |
322 | - final protected function addJs($path){ |
|
323 | - if(in_array($path, $this->extraJs)){ |
|
322 | + final protected function addJs($path) { |
|
323 | + if (in_array($path, $this->extraJs)) { |
|
324 | 324 | // nothing to do |
325 | 325 | return; |
326 | 326 | } |
@@ -85,7 +85,7 @@ |
||
85 | 85 | // Create a task. |
86 | 86 | $taskName = $job->getTask(); |
87 | 87 | |
88 | - if(!class_exists($taskName)) { |
|
88 | + if (!class_exists($taskName)) { |
|
89 | 89 | throw new ApplicationLogicException('Job task does not exist'); |
90 | 90 | } |
91 | 91 |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $requestLogs[] = array( |
178 | 178 | 'type' => 'comment', |
179 | 179 | 'security' => $entry->getVisibility(), |
180 | - 'user' => $entry->getVisibility() == 'requester' ? $request->getName() :$nameCache[$entry->getUser()]->getUsername(), |
|
180 | + 'user' => $entry->getVisibility() == 'requester' ? $request->getName() : $nameCache[$entry->getUser()]->getUsername(), |
|
181 | 181 | 'userid' => $entry->getUser() == -1 ? null : $entry->getUser(), |
182 | 182 | 'entry' => null, |
183 | 183 | 'time' => $entry->getTime(), |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | |
194 | 194 | $entryComment = $entry->getComment(); |
195 | 195 | |
196 | - if($entry->getAction() === 'JobIssueRequest' || $entry->getAction() === 'JobCompletedRequest'){ |
|
196 | + if ($entry->getAction() === 'JobIssueRequest' || $entry->getAction() === 'JobCompletedRequest') { |
|
197 | 197 | $data = unserialize($entry->getComment()); |
198 | 198 | /** @var JobQueue $job */ |
199 | 199 | $job = JobQueue::getById($data['job'], $database); |