Completed
Push — master ( 830250...ec1ffe )
by Ryota
02:16
created
Tests/Queue/QueueTest.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@
 block discarded – undo
103 103
 class DummyJob extends Job
104 104
 {
105 105
     /**
106
-     * @param array $args
107
-     * @return booelan
106
+     * @return boolean
108 107
      */
109 108
     public function run()
110 109
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         Phake::when($job)->getName()
25 25
             ->thenReturn($name);
26 26
         Phake::when($job)->getArgs()
27
-            ->thenReturn(array('test','teset2'));
27
+            ->thenReturn(array('test', 'teset2'));
28 28
 
29 29
         Phake::when($this->client)->getQueueUrl(array('QueueName' => $name))
30 30
             ->thenReturn(array(
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $args = array(
52 52
             'Body' => json_encode(array(
53 53
                 'className' => 'Tavii\SQSJobQueue\Queue\DummyJob',
54
-                'args' => array('a' => '1' , 'b' => 2)
54
+                'args' => array('a' => '1', 'b' => 2)
55 55
             ))
56 56
         );
57 57
 
Please login to merge, or discard this patch.
Tests/Job/JobTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     {
12 12
         $args = array('1' => 'a', 'b' => '3');
13 13
         $job = new TestJob($args);
14
-        $this->assertEquals("Tavii\\SQSJobQueue\\Job\\TestJob",$job->getClassName());
14
+        $this->assertEquals("Tavii\\SQSJobQueue\\Job\\TestJob", $job->getClassName());
15 15
         $this->assertEquals("test_job", $job->getName());
16 16
         $this->assertInternalType('array', $job->getArgs());
17 17
         $this->assertEquals($args, $job->getArgs());
Please login to merge, or discard this patch.
Tests/Worker/WorkerTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $worker = new Worker($queue, $storage);
33 33
         $actual = $worker->run($name);
34 34
 
35
-        Phake::verify($queue)->receive ($name);
35
+        Phake::verify($queue)->receive($name);
36 36
         Phake::verify($message)->getJob();
37 37
         Phake::verify($job)->execute();
38 38
         Phake::verify($queue)->delete($message);
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@
 block discarded – undo
180 180
 
181 181
     /**
182 182
      * {@inheritdoc}
183
+     * @param string $queue
184
+     * @param string $server
185
+     * @param integer $procId
183 186
      */
184 187
     public function __construct($queue, $server, $procId)
185 188
     {
Please login to merge, or discard this patch.
Worker/Worker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             }
63 63
             $this->storage->set($name, $server, $pid);
64 64
         } else {
65
-            while(true) {
65
+            while (true) {
66 66
                 $this->run($name);
67 67
                 sleep($sleep);
68 68
             }
Please login to merge, or discard this patch.
Tests/Message/MessageTest.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@
 block discarded – undo
103 103
 class DummyJob extends Job
104 104
 {
105 105
     /**
106
-     * @param array $args
107
-     * @return booelan
106
+     * @return boolean
108 107
      */
109 108
     public function run()
110 109
     {
Please login to merge, or discard this patch.
Job/Job.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function getQueueName()
40 40
     {
41
-        return $this->getPrefix() . '_' . $this->getName();
41
+        return $this->getPrefix().'_'.$this->getName();
42 42
     }
43 43
 
44 44
 
Please login to merge, or discard this patch.