Completed
Push — master ( ed0b12...1a1617 )
by Ryota
06:22
created
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   +2 added lines patch added patch discarded remove patch
@@ -182,6 +182,8 @@
 block discarded – undo
182 182
 
183 183
     /**
184 184
      * {@inheritdoc}
185
+     * @param string $server
186
+     * @param integer $procId
185 187
      */
186 188
     public function __construct($queue, $server, $procId)
187 189
     {
Please login to merge, or discard this patch.
Queue/QueueName.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
      * JobName constructor.
25 25
      * @param string $name
26 26
      * @param string $prefix
27
-     * @param string $separator
28 27
      */
29 28
     public function __construct($name, $prefix = "")
30 29
     {
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
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 class DummyJob extends Job
30 30
 {
31 31
     /**
32
-     * @param array $args
33
-     * @return booelan
32
+     * @return boolean
34 33
      */
35 34
     protected function run()
36 35
     {
Please login to merge, or discard this patch.
Tests/Queue/QueueTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         Phake::when($job)->getJobName()
26 26
             ->thenReturn($name);
27 27
         Phake::when($job)->getArgs()
28
-            ->thenReturn(array('test','teset2'));
28
+            ->thenReturn(array('test', 'teset2'));
29 29
 
30 30
         Phake::when($this->client)->getQueueUrl(array('QueueName' => $name))
31 31
             ->thenReturn(array(
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $args = array(
53 53
             'Body' => json_encode(array(
54 54
                 'className' => 'Tavii\SQSJobQueue\Queue\DummyJob',
55
-                'args' => array('a' => '1' , 'b' => 2)
55
+                'args' => array('a' => '1', 'b' => 2)
56 56
             ))
57 57
         );
58 58
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 class DummyJob extends Job
30 30
 {
31 31
     /**
32
-     * @param array $args
33
-     * @return booelan
32
+     * @return boolean
34 33
      */
35 34
     protected function run()
36 35
     {
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
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             }
64 64
             $this->storage->set($queueName, $server, $pid);
65 65
         } else {
66
-            while(true) {
66
+            while (true) {
67 67
                 $this->run($queueName);
68 68
                 sleep($sleep);
69 69
             }
Please login to merge, or discard this patch.