Completed
Pull Request — master (#119)
by Toby
64:16
created
src/Document.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             // and add their resources (and their relationships, and so on) to
287 287
             // the map.
288 288
             foreach ($include as $name => $nested) {
289
-                if (! ($relationship = $resource->getRelationship($name))) {
289
+                if (!($relationship = $resource->getRelationship($name))) {
290 290
                     continue;
291 291
                 }
292 292
 
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
         foreach ($paths as $path) {
384 384
             list($primary, $nested) = array_pad(explode('.', $path, 2), 2, null);
385 385
 
386
-            if (! isset($tree[$primary])) {
386
+            if (!isset($tree[$primary])) {
387 387
                 $tree[$primary] = [];
388 388
             }
389 389
 
Please login to merge, or discard this patch.
src/AbstractResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         if (method_exists($this, $method)) {
54 54
             $relationship = $this->$method();
55 55
 
56
-            if ($relationship !== null && ! ($relationship instanceof Relationship)) {
56
+            if ($relationship !== null && !($relationship instanceof Relationship)) {
57 57
                 throw new LogicException('Relationship method must return null or an instance of Tobscure\JsonApi\Relationship');
58 58
             }
59 59
 
Please login to merge, or discard this patch.
src/LinksTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
      */
105 105
     private function addPaginationLink($name, $url, array $queryParams, $offset, $limit)
106 106
     {
107
-        if (! isset($queryParams['page']) || ! is_array($queryParams['page'])) {
107
+        if (!isset($queryParams['page']) || !is_array($queryParams['page'])) {
108 108
             $queryParams['page'] = [];
109 109
         }
110 110
 
Please login to merge, or discard this patch.