Completed
Push — master ( 3bc011...0fdb9c )
by Ryota
02:07
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   +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.
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.
Storage/StorageInterface.php 1 patch
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
      * @param JobName $jobName
27 27
      * @param string $server
28 28
      * @param int $procId
29
-     * @param string $prefix
30 29
      * @return void
31 30
      */
32 31
     public function set(JobName $jobName, $server, $procId);
@@ -35,7 +34,6 @@  discard block
 block discarded – undo
35 34
      * @param JobName $jobName
36 35
      * @param string $server
37 36
      * @param int $procId
38
-     * @param string $prefix
39 37
      * @return array
40 38
      */
41 39
     public function get(JobName $jobName, $server, $procId);
@@ -44,7 +42,6 @@  discard block
 block discarded – undo
44 42
      * @param JobName $jobName
45 43
      * @param string $server
46 44
      * @param string $procId
47
-     * @param string $prefix
48 45
      * @return mixed
49 46
      */
50 47
     public function remove(JobName $jobName, $server, $procId);
@@ -52,7 +49,7 @@  discard block
 block discarded – undo
52 49
 
53 50
     /**
54 51
      * @param JobName $jobName
55
-     * @param $server
52
+     * @param string $server
56 53
      * @return void
57 54
      */
58 55
     public function removeForce(JobName $jobName, $server);
Please login to merge, or discard this patch.
Job/Job.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     abstract protected function run();
36 36
 
37 37
     /**
38
-     * @return string
38
+     * @return QueueName
39 39
      */
40 40
     public function getJobName()
41 41
     {
Please login to merge, or discard this patch.
Queue/QueueName.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
         if (empty($this->prefix)) {
41 41
             return $this->name;
42 42
         }
43
-        return $this->prefix . "_" . $this->name;
43
+        return $this->prefix."_".$this->name;
44 44
     }
45 45
 }
46 46
\ No newline at end of file
Please login to merge, or discard this patch.