Completed
Push — develop ( 27d944...c3a093 )
by Neomerx
04:42 queued 02:41
created
src/Http/BaseController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         ContainerInterface $container,
184 184
         ServerRequestInterface $request
185 185
     ): ResponseInterface {
186
-        $apiHandler = function (CrudInterface $crud) use ($index, $relationshipName) {
186
+        $apiHandler = function(CrudInterface $crud) use ($index, $relationshipName) {
187 187
             return $crud->readRelationship($index, $relationshipName);
188 188
         };
189 189
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         ContainerInterface $container,
208 208
         ServerRequestInterface $request
209 209
     ): ResponseInterface {
210
-        $apiHandler = function (CrudInterface $crud) use ($index, $relationshipName) {
210
+        $apiHandler = function(CrudInterface $crud) use ($index, $relationshipName) {
211 211
             return $crud->readRelationship($index, $relationshipName);
212 212
         };
213 213
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     protected static function readJsonFromRequest(ContainerInterface $container, ServerRequestInterface $request): array
313 313
     {
314
-        $body = (string)$request->getBody();
314
+        $body = (string) $request->getBody();
315 315
         if (empty($body) === true || ($json = json_decode($body, true)) === null) {
316 316
             /** @var FactoryInterface $factory */
317 317
             $factory = $container->get(FactoryInterface::class);
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
     {
465 465
         assert(
466 466
             empty(static::ON_CREATE_VALIDATION_RULES_SET_CLASS) === false,
467
-            'Validation rules set should be defined for class ' . static::class . '.'
467
+            'Validation rules set should be defined for class '.static::class.'.'
468 468
         );
469 469
 
470 470
         return static::createJsonApiValidator($container, static::ON_CREATE_VALIDATION_RULES_SET_CLASS);
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
     {
483 483
         assert(
484 484
             empty(static::ON_UPDATE_VALIDATION_RULES_SET_CLASS) === false,
485
-            'Validation rules set should be defined for class ' . static::class . '.'
485
+            'Validation rules set should be defined for class '.static::class.'.'
486 486
         );
487 487
 
488 488
         return static::createJsonApiValidator($container, static::ON_UPDATE_VALIDATION_RULES_SET_CLASS);
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
         ContainerInterface $container,
684 684
         ServerRequestInterface $request
685 685
     ): array {
686
-        $jsonData  = static::normalizeIndexValueOnUpdate(
686
+        $jsonData = static::normalizeIndexValueOnUpdate(
687 687
             $routeParams,
688 688
             $container,
689 689
             static::readJsonFromRequest($container, $request)
Please login to merge, or discard this patch.