Completed
Branch master (3a5665)
by
unknown
06:52
created
src/Encoder/Parameters/SortParameter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         $prefix = $this->isAscending() ? '' : '-';
56 56
 
57
-        return $prefix . $this->getField();
57
+        return $prefix.$this->getField();
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.
src/Encoder/Encoder.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,8 +248,7 @@
 block discarded – undo
248 248
     protected function encodeToJson(array $document)
249 249
     {
250 250
         return $this->getEncoderOptions() === null ?
251
-            json_encode($document) :
252
-            json_encode($document, $this->getEncoderOptions()->getOptions(), $this->getEncoderOptions()->getDepth());
251
+            json_encode($document) : json_encode($document, $this->getEncoderOptions()->getOptions(), $this->getEncoderOptions()->getDepth());
253 252
     }
254 253
 
255 254
     /**
Please login to merge, or discard this patch.
src/Contracts/Encoder/Parameters/EncodingParametersInterface.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php namespace Neomerx\JsonApi\Contracts\Encoder\Parameters;
2 2
 
3 3
     /**
4
- * Copyright 2015-2017 [email protected]
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
4
+     * Copyright 2015-2017 [email protected]
5
+     *
6
+     * Licensed under the Apache License, Version 2.0 (the "License");
7
+     * you may not use this file except in compliance with the License.
8
+     * You may obtain a copy of the License at
9
+     *
10
+     * http://www.apache.org/licenses/LICENSE-2.0
11
+     *
12
+     * Unless required by applicable law or agreed to in writing, software
13
+     * distributed under the License is distributed on an "AS IS" BASIS,
14
+     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+     * See the License for the specific language governing permissions and
16
+     * limitations under the License.
17
+     */
18 18
 
19 19
 /**
20 20
  * @package Neomerx\JsonApi
Please login to merge, or discard this patch.
src/Document/Document.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $foundInData     = isset($this->bufferForData[$type][$idx]);
269 269
         $foundInIncluded = isset($this->bufferForIncluded[$type][$idx]);
270 270
 
271
-        $addMeta = function (array $representation, Closure $getMetaClosure) {
271
+        $addMeta = function(array $representation, Closure $getMetaClosure) {
272 272
             if (empty($representation[self::KEYWORD_RELATIONSHIPS]) === true) {
273 273
                 // if no relationships have been added remove empty placeholder
274 274
                 unset($representation[self::KEYWORD_RELATIONSHIPS]);
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
             $representation = $this->bufferForData[$type][$idx];
288 288
             unset($this->bufferForData[$type][$idx]);
289 289
 
290
-            $this->data[] = $addMeta($representation, function () use ($resource) {
290
+            $this->data[] = $addMeta($representation, function() use ($resource) {
291 291
                 return $resource->getRelationshipsPrimaryMeta();
292 292
             });
293 293
         }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             $representation = $this->bufferForIncluded[$type][$idx];
297 297
             unset($this->bufferForIncluded[$type][$idx]);
298 298
 
299
-            $this->included[] = $addMeta($representation, function () use ($resource) {
299
+            $this->included[] = $addMeta($representation, function() use ($resource) {
300 300
                 return $resource->getRelationshipsInclusionMeta();
301 301
             });
302 302
             // remember we added (type, id) at index
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
                 self::KEYWORD_JSON_API => $this->version,
316 316
                 self::KEYWORD_META     => $this->meta,
317 317
                 self::KEYWORD_ERRORS   => $this->errors,
318
-            ], function ($value) {
318
+            ], function($value) {
319 319
                 return $value !== null;
320 320
             });
321 321
         }
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
             self::KEYWORD_LINKS    => $this->links,
327 327
             self::KEYWORD_DATA     => true, // this field wont be filtered
328 328
             self::KEYWORD_INCLUDED => empty($this->included) === true ? null : array_values($this->included),
329
-        ], function ($value) {
329
+        ], function($value) {
330 330
             return $value !== null;
331 331
         });
332 332
 
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
             self::KEYWORD_ERRORS_DETAIL => $error->getDetail(),
375 375
             self::KEYWORD_ERRORS_SOURCE => $error->getSource(),
376 376
             self::KEYWORD_ERRORS_META   => $error->getMeta(),
377
-        ], function ($value) {
377
+        ], function($value) {
378 378
             return $value !== null;
379 379
         });
380 380
 
Please login to merge, or discard this patch.