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