@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function persist(array $relationArray = null) |
30 | 30 | { |
31 | - if (! empty($relationArray)) { |
|
31 | + if (!empty($relationArray)) { |
|
32 | 32 | /** @var \ANavallaSuiza\Laravel\Database\Contracts\Repository\Repository $repo */ |
33 | 33 | $repo = $this->modelManager->getRepository(get_class($this->eloquentRelation->getRelated())); |
34 | 34 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $alreadyAssociated = $this->relatedModel->$relationName; |
38 | 38 | |
39 | 39 | $search = []; |
40 | - if (! empty($relationArray[$relatedKeyName])) { |
|
40 | + if (!empty($relationArray[$relatedKeyName])) { |
|
41 | 41 | $search = $relationArray[$relatedKeyName]; |
42 | 42 | } |
43 | 43 | $results = $repo->pushCriteria( |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $result->save(); |
54 | 54 | } |
55 | 55 | |
56 | - if (! $missing->isEmpty()) { |
|
56 | + if (!$missing->isEmpty()) { |
|
57 | 57 | foreach ($missing as $result) { |
58 | 58 | $result->$keyName = null; |
59 | 59 | $result->save(); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | $results = $this->eloquentRelation->getResults(); |
100 | 100 | |
101 | - if (! $results->isEmpty()) { |
|
101 | + if (!$results->isEmpty()) { |
|
102 | 102 | $values = []; |
103 | 103 | |
104 | 104 | foreach ($results as $result) { |