@@ -18,8 +18,8 @@ |
||
| 18 | 18 | private static $processPrefix = 'resque'; |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * @var Psr\Log\LoggerInterface Logging object that impliments the PSR-3 LoggerInterface |
|
| 22 | - */ |
|
| 21 | + * @var Psr\Log\LoggerInterface Logging object that impliments the PSR-3 LoggerInterface |
|
| 22 | + */ |
|
| 23 | 23 | public $logger; |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -532,7 +532,7 @@ |
||
| 532 | 532 | exec('WMIC path win32_process get Processid,Commandline | findstr resque | findstr /V findstr', $cmdOutput); |
| 533 | 533 | foreach ($cmdOutput as $line) { |
| 534 | 534 | $line = preg_replace('/\s+/m', ' ', $line); |
| 535 | - list(,,$pids[]) = explode(' ', trim($line), 3); |
|
| 535 | + list(,, $pids[]) = explode(' ', trim($line), 3); |
|
| 536 | 536 | } |
| 537 | 537 | } else { |
| 538 | 538 | exec('ps -A -o pid,args | grep [r]esque', $cmdOutput); |
@@ -195,11 +195,11 @@ |
||
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | /** |
| 198 | - * Fetch a value from the status packet for the job being monitored. |
|
| 199 | - * |
|
| 200 | - * @return mixed False if the status is not being monitored, otherwise the |
|
| 201 | - * requested value from the status packet. |
|
| 202 | - */ |
|
| 198 | + * Fetch a value from the status packet for the job being monitored. |
|
| 199 | + * |
|
| 200 | + * @return mixed False if the status is not being monitored, otherwise the |
|
| 201 | + * requested value from the status packet. |
|
| 202 | + */ |
|
| 203 | 203 | protected function fetch($value = null) |
| 204 | 204 | { |
| 205 | 205 | if (!$this->isTracking()) { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | 'started' => time(), |
| 65 | 65 | 'result' => null, |
| 66 | 66 | ); |
| 67 | - Resque::redis()->set((string) $status, json_encode($statusPacket)); |
|
| 67 | + Resque::redis()->set((string)$status, json_encode($statusPacket)); |
|
| 68 | 68 | |
| 69 | 69 | return $status; |
| 70 | 70 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | public function update($status, $result = null) |
| 99 | 99 | { |
| 100 | - $status = (int) $status; |
|
| 100 | + $status = (int)$status; |
|
| 101 | 101 | |
| 102 | 102 | if (!$this->isTracking()) { |
| 103 | 103 | return; |
@@ -190,12 +190,12 @@ |
||
| 190 | 190 | |
| 191 | 191 | // Check the URI scheme |
| 192 | 192 | $validSchemes = array('redis', 'tcp'); |
| 193 | - if (isset($parts['scheme']) && ! in_array($parts['scheme'], $validSchemes)) { |
|
| 193 | + if (isset($parts['scheme']) && !in_array($parts['scheme'], $validSchemes)) { |
|
| 194 | 194 | throw new \InvalidArgumentException("Invalid DSN. Supported schemes are " . implode(', ', $validSchemes)); |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | // Allow simple 'hostname' format, which `parse_url` treats as a path, not host. |
| 198 | - if (! isset($parts['host']) && isset($parts['path'])) { |
|
| 198 | + if (!isset($parts['host']) && isset($parts['path'])) { |
|
| 199 | 199 | $parts['host'] = $parts['path']; |
| 200 | 200 | unset($parts['path']); |
| 201 | 201 | } |