We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | // - a single dimensional array: [1,2,3] |
125 | 125 | // - an array of arrays: [[1][2][3]] |
126 | 126 | // if is as single dimensional array we can only attach. |
127 | - if ($relationValues === null || ! is_multidimensional_array($relationValues)) { |
|
127 | + if ($relationValues === null || !is_multidimensional_array($relationValues)) { |
|
128 | 128 | $this->attachManyRelation($item, $relation, $relationDetails, $relationValues); |
129 | 129 | } else { |
130 | 130 | $this->createManyEntries($item, $relation, $relationMethod, $relationDetails); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | $toDelete = array_diff($dbValues, $sentIds); |
148 | 148 | |
149 | - if (! empty($toDelete)) { |
|
149 | + if (!empty($toDelete)) { |
|
150 | 150 | foreach ($toDelete as $id) { |
151 | 151 | $relation->newPivot()->where($keyName, $id)->delete(); |
152 | 152 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | } |
188 | 188 | } |
189 | 189 | |
190 | - private function preparePivotAttributesForSave(array $attributes, BelongsToMany|MorphToMany $relation, string|int $relatedItemKey, $pivotKeyName) |
|
190 | + private function preparePivotAttributesForSave(array $attributes, BelongsToMany | MorphToMany $relation, string | int $relatedItemKey, $pivotKeyName) |
|
191 | 191 | { |
192 | 192 | $attributes[$relation->getForeignPivotKeyName()] = $relatedItemKey; |
193 | 193 | $attributes[$relation->getRelatedPivotKeyName()] = $attributes[$relation->getRelationName()]; |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | } |
334 | 334 | // if column is not nullable in database, and there is no column default (null), |
335 | 335 | // we will delete the entry from the database, otherwise it will throw and ugly DB error. |
336 | - if (! $relationColumnIsNullable && $dbColumnDefault === null) { |
|
336 | + if (!$relationColumnIsNullable && $dbColumnDefault === null) { |
|
337 | 337 | return $removedEntries->lazy()->each->delete(); |
338 | 338 | } |
339 | 339 | |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | } |
379 | 379 | |
380 | 380 | // use the collection of sent ids to match against database ids, delete the ones not found in the submitted ids. |
381 | - if (! empty($relatedItemsSent)) { |
|
381 | + if (!empty($relatedItemsSent)) { |
|
382 | 382 | // we perform the cleanup of removed database items |
383 | 383 | $entry->{$relationMethod}()->whereNotIn($relatedModelLocalKey, $relatedItemsSent)->lazy()->each->delete(); |
384 | 384 | } |