Completed
Push — master ( 4abd22...3f500d )
by Matthew
14:32 queued 09:32
created
Command/RunCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         set_time_limit($processTimeout); // Set an hour timeout
69 69
 
70 70
         if ($jobId = $input->getOption('job_id')) {
71
-            return $this->runJobById($jobId);   // Run a single job
71
+            return $this->runJobById($jobId); // Run a single job
72 72
         }
73 73
 
74 74
         try {
Please login to merge, or discard this patch.
DependencyInjection/DtcQueueExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $container->setParameter('dtc_queue.job_class', $documentName);
24 24
 
25 25
         // Load Grid if Dtc\GridBundle Bundle is registered
26
-        $yamlLoader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
26
+        $yamlLoader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
27 27
 
28 28
         $yamlLoader->load('queue.yml');
29 29
         $yamlLoader->load('grid.yml');
Please login to merge, or discard this patch.
EventDispatcher/EventDispatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     public function hasListeners($eventName)
17 17
     {
18
-        if ( ! isset($this->listeners[$eventName])) {
18
+        if (!isset($this->listeners[$eventName])) {
19 19
             return false;
20 20
         }
21 21
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function dispatch($eventName, Event $event)
26 26
     {
27
-        if ( ! isset($this->listeners[$eventName])) {
27
+        if (!isset($this->listeners[$eventName])) {
28 28
             return;
29 29
         }
30 30
 
Please login to merge, or discard this patch.
Model/WorkerManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 				$this->logger->debug("No job to run");
52 52
 			}
53 53
 
54
-			return;        // no job to run
54
+			return; // no job to run
55 55
 		}
56 56
 
57 57
 		return $this->runJob($job);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 			}
81 81
 
82 82
 			$job->setStatus(Job::STATUS_ERROR);
83
-			$job->setMessage($e->getMessage() . "\n" .$e->getTraceAsString());
83
+			$job->setMessage($e->getMessage() . "\n" . $e->getTraceAsString());
84 84
 		}
85 85
 
86 86
 		// save Job history
Please login to merge, or discard this patch.
RabbitMQ/JobManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 
16 16
     public function __construct(AMQPConnection $connection) {
17 17
         $this->connection = $connection;
18
-        $this->channel = $connection->channel();;
18
+        $this->channel = $connection->channel(); ;
19 19
     }
20 20
 
21 21
     public function save($job) {
22 22
         $queue = $job->getWorkerName();
23
-        $exchange = null; 	// User default exchange
23
+        $exchange = null; // User default exchange
24 24
 
25 25
         $this->channel->queue_declare($queue, false, true, false, false);
26 26
         $this->channel->exchange_declare($exchange, 'direct', false, true, false);
Please login to merge, or discard this patch.
Tests/Documents/JobManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         $documentName = 'Dtc\QueueBundle\Documents\Job';
50 50
         $sm = self::$dm->getSchemaManager();
51
-        $timeout  = 1000;
51
+        $timeout = 1000;
52 52
 
53 53
         $sm->dropDocumentCollection($documentName);
54 54
         $sm->createDocumentCollection($documentName);
Please login to merge, or discard this patch.
Tests/FibonacciWorker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function fibonacci($n)
22 22
     {
23
-        if($n == 0)
23
+        if ($n == 0)
24 24
             return 0; //F0
25 25
         elseif ($n == 1)
26 26
             return 1; //F1
Please login to merge, or discard this patch.
Tests/Model/BaseJobManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
     public function testPerformance() {
84 84
         $start = microtime(true);
85 85
         $jobsTotal = 1000;
86
-        self::$jobManager->enableSorting = false;	// Ignore priority
86
+        self::$jobManager->enableSorting = false; // Ignore priority
87 87
 
88 88
         for ($i = 0; $i < $jobsTotal; $i++) {
89 89
             self::$worker->later()->fibonacci(1);
Please login to merge, or discard this patch.
Tests/Model/JobTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         $worker = new FibonacciWorker();
14 14
         $job = new Job($worker, false, null);
15 15
         $job->setArgs(array(1));
16
-        $job->setArgs(array(1, array(1,2)));
16
+        $job->setArgs(array(1, array(1, 2)));
17 17
 
18 18
         try {
19 19
             $job->setArgs(array($job));
Please login to merge, or discard this patch.