Passed
Pull Request — master (#264)
by
unknown
07:59
created
src/Utils/ManyToManyRelationshipPathDescriptor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function __construct(string $targetTable, string $pivotTable, array $joinForeignKeys, array $joinLocalKeys, array $whereKeys, string $resultIteratorClass)
47 47
     {
48
-        assert(is_a($resultIteratorClass, ResultIterator::class, true), new TDBMInvalidArgumentException('$resultIteratorClass should be a `'. ResultIterator::class. '`. `' . $resultIteratorClass . '` provided.'));
48
+        assert(is_a($resultIteratorClass, ResultIterator::class, true), new TDBMInvalidArgumentException('$resultIteratorClass should be a `'.ResultIterator::class.'`. `'.$resultIteratorClass.'` provided.'));
49 49
         $this->targetTable = $targetTable;
50 50
         $this->pivotTable = $pivotTable;
51 51
         $this->joinForeignKeys = $joinForeignKeys;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     public static function generateModelKey(ForeignKeyConstraint $remoteFk, ForeignKeyConstraint $localFk): string
58 58
     {
59
-        return $remoteFk->getLocalTableName() . "." . implode("__", $localFk->getUnquotedLocalColumns());
59
+        return $remoteFk->getLocalTableName().".".implode("__", $localFk->getUnquotedLocalColumns());
60 60
     }
61 61
 
62 62
     public function getPivotName(): string
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             );
86 86
         }
87 87
 
88
-        return $connection->quoteIdentifier($mainTable) . ' JOIN ' . $connection->quoteIdentifier($pivotTable) . ' ON ' . implode(' AND ', $join);
88
+        return $connection->quoteIdentifier($mainTable).' JOIN '.$connection->quoteIdentifier($pivotTable).' ON '.implode(' AND ', $join);
89 89
     }
90 90
 
91 91
     public function getPivotWhere(Connection $connection): string
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $params = [];
107 107
         foreach ($primaryKeys as $key => $primaryKeyValue) {
108
-            $params['param' . $key] = $primaryKeyValue;
108
+            $params['param'.$key] = $primaryKeyValue;
109 109
         }
110 110
         return $params;
111 111
     }
Please login to merge, or discard this patch.