Completed
Push — master ( 1cb9cd...ecf884 )
by Korvin
05:21 queued 01:49
created
src/Serializer/JsonApiSerializer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
     /**
248 248
      * Get the mandatory fields for the serializer
249 249
      *
250
-     * @return array
250
+     * @return string[]
251 251
      */
252 252
     public function getMandatoryFields()
253 253
     {
Please login to merge, or discard this patch.
test/ScopeTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -600,11 +600,18 @@
 block discarded – undo
600 600
         Mockery::close();
601 601
     }
602 602
 
603
+    /**
604
+     * @param string $resourceName
605
+     */
603 606
     protected function createTransformerWithIncludedResource($resourceName, $transformResult)
604 607
     {
605 608
         $transformer = Mockery::mock('League\Fractal\TransformerAbstract')->makePartial();
606 609
         $transformer->shouldReceive('getAvailableIncludes')->twice()->andReturn([$resourceName]);
607 610
         $transformer->shouldReceive('transform')->once()->andReturnUsing(
611
+
612
+            /**
613
+             * @param string $data
614
+             */
608 615
             function (array $data) {
609 616
                 return $data;
610 617
             }
Please login to merge, or discard this patch.
src/Pagination/Cursor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
     /**
51 51
      * Create a new Cursor instance.
52 52
      *
53
-     * @param mixed $current
53
+     * @param integer $current
54 54
      * @param mixed $prev
55 55
      * @param mixed $next
56 56
      * @param int   $count
57 57
      *
58
-     * @return void
58
+     * @return CursorInterface
59 59
      */
60 60
     public function __construct($current = null, $prev = null, $next = null, $count = null)
61 61
     {
Please login to merge, or discard this patch.
src/Pagination/DoctrinePaginatorAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     /**
48 48
      * Get the current page.
49 49
      *
50
-     * @return int
50
+     * @return double
51 51
      */
52 52
     public function getCurrentPage()
53 53
     {
Please login to merge, or discard this patch.
src/Pagination/PhalconFrameworkPaginatorAdapter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * PhalconFrameworkPaginatorAdapter constructor.
32 32
      *
33
-     * @param stdClass $paginator
33
+     * @param \stdClass $paginator
34 34
      */
35 35
     public function __construct($paginator)
36 36
     {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      *
105 105
      * @param int $page
106 106
      *
107
-     * @return string
107
+     * @return integer
108 108
      */
109 109
     public function getUrl($page)
110 110
     {
Please login to merge, or discard this patch.
src/Scope.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 use InvalidArgumentException;
15 15
 use League\Fractal\Resource\Collection;
16 16
 use League\Fractal\Resource\Item;
17
-use League\Fractal\Resource\Primitive;
18 17
 use League\Fractal\Resource\NullResource;
18
+use League\Fractal\Resource\Primitive;
19 19
 use League\Fractal\Resource\ResourceInterface;
20 20
 use League\Fractal\Serializer\SerializerAbstract;
21 21
 
Please login to merge, or discard this patch.
test/Pagination/DoctrinePaginatorAdapterTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace League\Fractal\Test\Pagination;
3 3
 
4
-use Doctrine\ORM\Query;
5 4
 use League\Fractal\Pagination\DoctrinePaginatorAdapter;
6 5
 use Mockery;
7 6
 use PHPUnit\Framework\TestCase;
Please login to merge, or discard this patch.
test/ScopeFactoryTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-     * @return Manager
68
+     * @return \PHPUnit\Framework\MockObject\MockObject
69 69
      */
70 70
     private function createManager()
71 71
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return ResourceInterface
76
+     * @return \PHPUnit\Framework\MockObject\MockObject
77 77
      */
78 78
     private function createResource()
79 79
     {
Please login to merge, or discard this patch.