Completed
Branch master (502f99)
by Neomerx
01:54
created
src/Validation/Rules/ToManyRelationshipTypeChecker.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,7 @@
 block discarded – undo
86 86
         }
87 87
 
88 88
         $reply = $foundInvalidType === null ?
89
-            BlockReplies::createSuccessReply($indexes) :
90
-            BlockReplies::createErrorReply($context, $foundInvalidType, ErrorCodes::INVALID_RELATIONSHIP_TYPE);
89
+            BlockReplies::createSuccessReply($indexes) : BlockReplies::createErrorReply($context, $foundInvalidType, ErrorCodes::INVALID_RELATIONSHIP_TYPE);
91 90
 
92 91
         return $reply;
93 92
     }
Please login to merge, or discard this patch.
src/Validation/Rules/ExistInDbTableSingleWithDoctrine.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
         }
102 102
 
103 103
         $reply = $count > 0 ?
104
-            BlockReplies::createSuccessReply($value) :
105
-            BlockReplies::createErrorReply($context, $value, ErrorCodes::EXIST_IN_DATABASE_SINGLE);
104
+            BlockReplies::createSuccessReply($value) : BlockReplies::createErrorReply($context, $value, ErrorCodes::EXIST_IN_DATABASE_SINGLE);
106 105
 
107 106
         return $reply;
108 107
     }
Please login to merge, or discard this patch.
src/Contracts/Schema/JsonSchemesInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@
 block discarded – undo
27 27
     /**
28 28
      * @return RelationshipStorageInterface|null
29 29
      */
30
-    public function getRelationshipStorage(): ?RelationshipStorageInterface;
30
+    public function getRelationshipStorage(): ? RelationshipStorageInterface;
31 31
 
32 32
     /**
33 33
      * @param RelationshipStorageInterface|null $storage
34 34
      *
35 35
      * @return self
36 36
      */
37
-    public function setRelationshipStorage(?RelationshipStorageInterface $storage): self;
37
+    public function setRelationshipStorage(? RelationshipStorageInterface $storage) : self;
38 38
 
39 39
     /**
40 40
      * @param string $schemaClass
Please login to merge, or discard this patch.
src/Contracts/Api/CrudInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,12 +124,12 @@
 block discarded – undo
124 124
      *
125 125
      * @return array|null
126 126
      */
127
-    public function readRow($index): ?array;
127
+    public function readRow($index): ? array;
128 128
 
129 129
     /**
130 130
      * @param FilterParameterCollection|null $filterParams
131 131
      *
132 132
      * @return int|null
133 133
      */
134
-    public function count(FilterParameterCollection $filterParams = null): ?int;
134
+    public function count(FilterParameterCollection $filterParams = null): ? int;
135 135
 }
Please login to merge, or discard this patch.
src/Contracts/Api/ModelsDataInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,5 +32,5 @@
 block discarded – undo
32 32
     /**
33 33
      * @return RelationshipStorageInterface|null
34 34
      */
35
-    public function getRelationshipStorage(): ?RelationshipStorageInterface;
35
+    public function getRelationshipStorage(): ? RelationshipStorageInterface;
36 36
 }
Please login to merge, or discard this patch.
src/Contracts/Http/Query/SortParameterInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * @return int|null
41 41
      */
42
-    public function getRelationshipType(): ?int;
42
+    public function getRelationshipType(): ? int;
43 43
 
44 44
     /**
45 45
      * @return bool
Please login to merge, or discard this patch.
src/Contracts/Http/Query/FilterParameterInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @return string|null
26 26
      */
27
-    public function getRelationshipName(): ?string;
27
+    public function getRelationshipName(): ? string;
28 28
 
29 29
     /**
30 30
      * @return string|null
31 31
      */
32
-    public function getAttributeName(): ?string;
32
+    public function getAttributeName(): ? string;
33 33
 
34 34
     /**
35 35
      * @return string
@@ -59,5 +59,5 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * @return int|null
61 61
      */
62
-    public function getRelationshipType(): ?int;
62
+    public function getRelationshipType(): ? int;
63 63
 }
Please login to merge, or discard this patch.
src/Adapters/PaginationStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     /**
60 60
      * @inheritdoc
61 61
      */
62
-    public function parseParameters(?array $parameters): array
62
+    public function parseParameters(? array $parameters) : array
63 63
     {
64 64
         if ($parameters === null) {
65 65
             return [0, $this->defaultPageLimit + 1];
Please login to merge, or discard this patch.
src/Adapters/Repository.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         $pkColumn = $this->buildColumnName($table, $pkName);
222 222
         $type     = Type::getType($types[$pkName]);
223 223
         $pdoValue = $type->convertToDatabaseValue($index, $dbPlatform);
224
-        $builder->where($pkColumn . '=' . $builder->createNamedParameter($pdoValue, $type->getBindingType()));
224
+        $builder->where($pkColumn.'='.$builder->createNamedParameter($pdoValue, $type->getBindingType()));
225 225
 
226 226
         return $builder;
227 227
     }
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
             foreach ($filterValue as $operation => $params) {
352 352
                 $filterTable  = null;
353 353
                 $filterColumn = null;
354
-                $lcOp         = strtolower((string)$operation);
354
+                $lcOp         = strtolower((string) $operation);
355 355
 
356 356
                 if ($filterParam->isForRelationship() === true) {
357 357
                     switch ($filterParam->getRelationshipType()) {
@@ -366,8 +366,8 @@  discard block
 block discarded – undo
366 366
                                 $reversePk     = $modelSchemes->getPrimaryKey($reverseClass);
367 367
                                 $filterTable   = $modelSchemes->getTable($reverseClass);
368 368
                                 $filterColumn  = $filterParam->getAttributeName();
369
-                                $aliased       = $filterTable . $this->getNewAliasId();
370
-                                $joinCondition = $this->buildColumnName($table, $foreignKey) . '=' .
369
+                                $aliased       = $filterTable.$this->getNewAliasId();
370
+                                $joinCondition = $this->buildColumnName($table, $foreignKey).'='.
371 371
                                     $this->buildColumnName($aliased, $reversePk);
372 372
                                 $builder->innerJoin(
373 373
                                     $quotedTable,
@@ -397,8 +397,8 @@  discard block
 block discarded – undo
397 397
                             $reverseFk     = $modelSchemes->getForeignKey($reverseClass, $reverseName);
398 398
                             $filterColumn  = $filterParam->isForAttributeInRelationship() === true ?
399 399
                                 $filterParam->getAttributeName() : $modelSchemes->getPrimaryKey($reverseClass);
400
-                            $aliased       = $filterTable . $this->getNewAliasId();
401
-                            $joinCondition = $this->buildColumnName($table, $primaryKey) . '=' .
400
+                            $aliased       = $filterTable.$this->getNewAliasId();
401
+                            $joinCondition = $this->buildColumnName($table, $primaryKey).'='.
402 402
                                 $this->buildColumnName($aliased, $reverseFk);
403 403
                             $builder->innerJoin(
404 404
                                 $quotedTable,
@@ -417,8 +417,8 @@  discard block
 block discarded – undo
417 417
                             list ($intermediateTable, $intermediatePk, $intermediateFk) = $modelSchemes
418 418
                                 ->getBelongsToManyRelationship($modelClass, $filterParam->getRelationshipName());
419 419
                             $primaryKey    = $modelSchemes->getPrimaryKey($modelClass);
420
-                            $aliased       = $intermediateTable . $this->getNewAliasId();
421
-                            $joinCondition = $this->buildColumnName($table, $primaryKey) . '=' .
420
+                            $aliased       = $intermediateTable.$this->getNewAliasId();
421
+                            $joinCondition = $this->buildColumnName($table, $primaryKey).'='.
422 422
                                 $this->buildColumnName($aliased, $intermediatePk);
423 423
                             $builder->innerJoin(
424 424
                                 $quotedTable,
@@ -441,9 +441,9 @@  discard block
 block discarded – undo
441 441
                                 $reverseTable = $modelSchemes->getTable($reverseClass);
442 442
                                 $reversePk    = $modelSchemes->getPrimaryKey($reverseClass);
443 443
                                 // now join the table with intermediate
444
-                                $aliased2      = $reverseTable . $this->getNewAliasId();
445
-                                $joinCondition = $this->buildColumnName($aliased, $intermediateFk) .
446
-                                    '=' . $this->buildColumnName($aliased2, $reversePk);
444
+                                $aliased2      = $reverseTable.$this->getNewAliasId();
445
+                                $joinCondition = $this->buildColumnName($aliased, $intermediateFk).
446
+                                    '='.$this->buildColumnName($aliased2, $reversePk);
447 447
                                 $builder->innerJoin(
448 448
                                     $aliased,
449 449
                                     $this->buildTableName($reverseTable),
@@ -668,11 +668,11 @@  discard block
 block discarded – undo
668 668
                 break;
669 669
             case 'in':
670 670
                 $this->getFilterOperations()
671
-                    ->applyIn($builder, $link, $errors, $table, $field, (array)$params);
671
+                    ->applyIn($builder, $link, $errors, $table, $field, (array) $params);
672 672
                 break;
673 673
             case 'not-in':
674 674
                 $this->getFilterOperations()
675
-                    ->applyNotIn($builder, $link, $errors, $table, $field, (array)$params);
675
+                    ->applyNotIn($builder, $link, $errors, $table, $field, (array) $params);
676 676
                 break;
677 677
             case self::FILTER_OP_IS_NULL:
678 678
                 $this->getFilterOperations()->applyIsNull($builder, $link, $table, $field);
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
     private function addWhereBind(QueryBuilder $builder, string $table, string $column, string $bindName): void
715 715
     {
716 716
         $builder
717
-            ->andWhere($this->buildColumnName($table, $column) . '=' . $bindName);
717
+            ->andWhere($this->buildColumnName($table, $column).'='.$bindName);
718 718
     }
719 719
 
720 720
     /**
@@ -734,8 +734,8 @@  discard block
 block discarded – undo
734 734
 
735 735
         $builder = $this->getConnection()->createQueryBuilder();
736 736
 
737
-        $aliased       = $table . $this->getNewAliasId();
738
-        $joinCondition = $this->buildColumnName($oneTable, $onePrimaryKey) . '=' .
737
+        $aliased       = $table.$this->getNewAliasId();
738
+        $joinCondition = $this->buildColumnName($oneTable, $onePrimaryKey).'='.
739 739
             $this->buildColumnName($aliased, $foreignKey);
740 740
         $builder
741 741
             ->select($this->getColumns($oneClass))
@@ -780,8 +780,8 @@  discard block
 block discarded – undo
780 780
         $reverseTableQuoted = $this->buildTableName($reverseTable);
781 781
         $reversePk          = $this->getModelSchemes()->getPrimaryKey($reverseClass);
782 782
 
783
-        $aliased       = $intermediateTable . $this->getNewAliasId();
784
-        $joinCondition = $this->buildColumnName($reverseTable, $reversePk) . '=' .
783
+        $aliased       = $intermediateTable.$this->getNewAliasId();
784
+        $joinCondition = $this->buildColumnName($reverseTable, $reversePk).'='.
785 785
             $this->buildColumnName($aliased, $reverseForeignKey);
786 786
         $builder       = $this->getConnection()->createQueryBuilder();
787 787
         $builder
Please login to merge, or discard this patch.