Completed
Pull Request — 1.0.x (#487)
by Korvin
03:38 queued 02:14
created
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/Scope.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     /**
113 113
      * Getter for parentScopes.
114 114
      *
115
-     * @return mixed
115
+     * @return string[]
116 116
      */
117 117
     public function getParentScopes()
118 118
     {
Please login to merge, or discard this patch.
test/ScopeTest.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -712,11 +712,22 @@
 block discarded – undo
712 712
         ];
713 713
     }
714 714
 
715
+    /**
716
+     * @param string $resourceName
717
+     *
718
+     * @return callable|null
719
+     */
715 720
     protected function createTransformerWithIncludedResource($resourceName, $transformResult)
716 721
     {
717 722
         $transformer = Mockery::mock('League\Fractal\TransformerAbstract')->makePartial();
718 723
         $transformer->shouldReceive('getAvailableIncludes')->twice()->andReturn([$resourceName]);
719 724
         $transformer->shouldReceive('transform')->once()->andReturnUsing(
725
+
726
+            /**
727
+             * @param string $data
728
+             *
729
+             * @return callable|null
730
+             */
720 731
             function (array $data) {
721 732
                 return $data;
722 733
             }
Please login to merge, or discard this patch.