Completed
Push — master ( 343ee8...030e4f )
by Ivan
15:21 queued 14s
created
src/schema/Table.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
      * @param  array|string        $column either a single column name or an array of column names
80 80
      * @return  static
81 81
      */
82
-    public function setPrimaryKey(array|string $column): static
82
+    public function setPrimaryKey(array | string $column): static
83 83
     {
84 84
         if (!is_array($column)) {
85
-            $column = [ $column ];
85
+            $column = [$column];
86 86
         }
87 87
         $this->data['primary'] = array_values($column);
88 88
         return $this;
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function getFullName(): string
111 111
     {
112
-        return ($this->data['schema'] ? $this->data['schema'] . '.' : '') . $this->data['name'];
112
+        return ($this->data['schema'] ? $this->data['schema'].'.' : '').$this->data['name'];
113 113
     }
114 114
     /**
115 115
      * Get a column definition
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     public function hasOne(
157 157
         Table $toTable,
158 158
         string $name = null,
159
-        string|array|null $toTableColumn = null,
159
+        string | array | null $toTableColumn = null,
160 160
         string $sql = null,
161 161
         array $par = []
162 162
     ) : static {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         }
185 185
 
186 186
         if (!isset($name)) {
187
-            $name = $toTable->getName() . '_' . implode('_', array_keys($keymap));
187
+            $name = $toTable->getName().'_'.implode('_', array_keys($keymap));
188 188
         }
189 189
         $this->addRelation(new TableRelation(
190 190
             $this,
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     public function hasMany(
212 212
         Table $toTable,
213 213
         string $name = null,
214
-        string|array|null $toTableColumn = null,
214
+        string | array | null $toTableColumn = null,
215 215
         ?string $sql = null,
216 216
         array $par = []
217 217
     ): static {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     public function belongsTo(
267 267
         Table $toTable,
268 268
         string $name = null,
269
-        string|array|null $localColumn = null,
269
+        string | array | null $localColumn = null,
270 270
         ?string $sql = null,
271 271
         array $par = []
272 272
     ): static {
@@ -322,8 +322,8 @@  discard block
 block discarded – undo
322 322
         Table $toTable,
323 323
         Table $pivot,
324 324
         ?string $name = null,
325
-        string|array|null $toTableColumn = null,
326
-        string|array|null $localColumn = null
325
+        string | array | null $toTableColumn = null,
326
+        string | array | null $localColumn = null
327 327
     ): static {
328 328
         $pivotColumns = $pivot->getColumns();
329 329
 
Please login to merge, or discard this patch.