Test Failed
Pull Request — master (#56)
by
unknown
02:50
created
lib/Redis.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -198,12 +198,12 @@
 block discarded – undo
198 198
 
199 199
 		// Check the URI scheme
200 200
 		$validSchemes = array('redis', 'tcp');
201
-		if (isset($parts['scheme']) && ! in_array($parts['scheme'], $validSchemes)) {
201
+		if (isset($parts['scheme']) && !in_array($parts['scheme'], $validSchemes)) {
202 202
 			throw new InvalidArgumentException("Invalid DSN. Supported schemes are " . implode(', ', $validSchemes));
203 203
 		}
204 204
 
205 205
 		// Allow simple 'hostname' format, which `parse_url` treats as a path, not host.
206
-		if (! isset($parts['host']) && isset($parts['path'])) {
206
+		if (!isset($parts['host']) && isset($parts['path'])) {
207 207
 			$parts['host'] = $parts['path'];
208 208
 			unset($parts['path']);
209 209
 		}
Please login to merge, or discard this patch.
lib/Worker/ResqueWorker.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
 	private static $processPrefix = 'resque';
35 35
 
36 36
 	/**
37
-	* @var \Psr\Log\LoggerInterface Logging object that impliments the PSR-3 LoggerInterface
38
-	*/
37
+	 * @var \Psr\Log\LoggerInterface Logging object that impliments the PSR-3 LoggerInterface
38
+	 */
39 39
 	public $logger;
40 40
 
41 41
 	/**
Please login to merge, or discard this patch.
demo/queue.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 if (empty($argv[2])) {
21 21
 	$jobId = \Resque\Resque::enqueue('default', $argv[1], $args, true);
22 22
 } else {
23
-        $jobId = \Resque\Resque::enqueue($argv[1], $argv[2], $args, true);
23
+		$jobId = \Resque\Resque::enqueue($argv[1], $argv[2], $args, true);
24 24
 }
25 25
 
26 26
 echo "Queued job ".$jobId."\n\n";
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(empty($argv[1])) {
2
+if (empty($argv[1])) {
3 3
 	die('Specify the name of a job to add. e.g, php queue.php PHP_Job');
4 4
 }
5 5
 
@@ -23,4 +23,4 @@  discard block
 block discarded – undo
23 23
         $jobId = \Resque\Resque::enqueue($argv[1], $argv[2], $args, true);
24 24
 }
25 25
 
26
-echo "Queued job ".$jobId."\n\n";
26
+echo "Queued job " . $jobId . "\n\n";
Please login to merge, or discard this patch.
demo/check_status.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(empty($argv[1])) {
2
+if (empty($argv[1])) {
3 3
 	die('Specify the ID of a job to monitor the status of.');
4 4
 }
5 5
 
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
 //\Resque\Resque::setBackend('redis://user:[email protected]:3432/2');
13 13
 
14 14
 $status = new \Resque\Job\Status($argv[1]);
15
-if(!$status->isTracking()) {
15
+if (!$status->isTracking()) {
16 16
 	die("Resque is not tracking the status of this job.\n");
17 17
 }
18 18
 
19
-echo "Tracking status of ".$argv[1].". Press [break] to stop.\n\n";
20
-while(true) {
21
-	fwrite(STDOUT, "Status of ".$argv[1]." is: ".$status->get()."\n");
19
+echo "Tracking status of " . $argv[1] . ". Press [break] to stop.\n\n";
20
+while (true) {
21
+	fwrite(STDOUT, "Status of " . $argv[1] . " is: " . $status->get() . "\n");
22 22
 	sleep(1);
23 23
 }
Please login to merge, or discard this patch.