Completed
Pull Request — master (#273)
by Gonçalo
03:51
created
src/Pagination/Cursor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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.
test/Serializer/JsonApiSerializerTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 use League\Fractal\Resource\Item;
6 6
 use League\Fractal\Scope;
7 7
 use League\Fractal\Serializer\JsonApiSerializer;
8
-use League\Fractal\Test\Stub\Transformer\JsonApiBookTransformer;
9 8
 use League\Fractal\Test\Stub\Transformer\JsonApiAuthorTransformer;
9
+use League\Fractal\Test\Stub\Transformer\JsonApiBookTransformer;
10 10
 
11 11
 class JsonApiSerializerTest extends PHPUnit_Framework_TestCase
12 12
 {
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
@@ -459,7 +459,7 @@
 block discarded – undo
459 459
      *
460 460
      * @internal
461 461
      *
462
-     * @return \League\Fractal\ParamBag|null
462
+     * @return ParamBag
463 463
      */
464 464
     protected function getFilterFieldset()
465 465
     {
Please login to merge, or discard this patch.
src/Serializer/JsonApiSerializer.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@  discard block
 block discarded – undo
20 20
     protected $baseUrl;
21 21
     protected $rootObjects;
22 22
 
23
+    /**
24
+     * @param string $baseUrl
25
+     */
23 26
     public function __construct($baseUrl = null)
24 27
     {
25 28
         $this->baseUrl = $baseUrl;
@@ -251,7 +254,7 @@  discard block
 block discarded – undo
251 254
     /**
252 255
      * Get the mandatory fields for the serializer
253 256
      *
254
-     * @return array
257
+     * @return string[]
255 258
      */
256 259
     public function getMandatoryFields()
257 260
     {
Please login to merge, or discard this patch.