Completed
Push — master ( 971488...9b53e1 )
by Pavel
01:39
created
src/JsonApiHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     protected function mapRelationshipsArray(array $data)
68 68
     {
69 69
         return array_map(
70
-            function ($relation) {
70
+            function($relation) {
71 71
                 return $this->getResourceId($relation) ?: ['attributes' => $relation];
72 72
             },
73 73
             $data
Please login to merge, or discard this patch.
src/Doctrine/Rest/RestRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         if ($this->rootAlias === null) {
30 30
             $reflectionClass = $this->getClassMetadata()->getReflectionClass();
31 31
             if ($reflectionClass->implementsInterface(JsonApiResource::class)) {
32
-                $this->rootAlias = call_user_func($reflectionClass->getName(). '::getResourceKey');
32
+                $this->rootAlias = call_user_func($reflectionClass->getName().'::getResourceKey');
33 33
             } else {
34 34
                 // Camel case to underscore-case
35 35
                 $this->rootAlias = strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $reflectionClass->getShortName()));
Please login to merge, or discard this patch.
src/Doctrine/Rest/RestRequest.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,9 @@
 block discarded – undo
76 76
             $orderBy = [];
77 77
 
78 78
             foreach ($fields as $field) {
79
-                if (empty($field)) continue;
79
+                if (empty($field)) {
80
+                 continue;
81
+                }
80 82
 
81 83
                 $direction = 'ASC';
82 84
                 if ($field[0] === '-') {
Please login to merge, or discard this patch.
src/Doctrine/Rest/Response/FractalResponseFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         if ($request->getLimit() !== null) {
76 76
             $resource->setPaginator(new DoctrinePaginatorAdapter($paginator,
77 77
                 function(int $page) use ($resourceKey, $request) {
78
-                    return "{$this->baseUrl}/$resourceKey?" . http_build_query([
78
+                    return "{$this->baseUrl}/$resourceKey?".http_build_query([
79 79
                         'page' => [
80 80
                             'number'    => $page,
81 81
                             'size'      => $request->getLimit()
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     {
284 284
         $class = $qb->getRootEntities()[0];
285 285
         if (isset(class_implements($class)[JsonApiResource::class])) {
286
-            return call_user_func($class . '::getResourceKey');
286
+            return call_user_func($class.'::getResourceKey');
287 287
         }
288 288
 
289 289
         return $qb->getRootAliases()[0];
Please login to merge, or discard this patch.