We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | if(isset($data[$relation])){ |
| 123 | 123 | $model->{$relation}()->sync($data[$relation]); |
| 124 | 124 | }else{ |
| 125 | - $model->{$relation}()->sync([]); |
|
| 125 | + $model->{$relation}()->sync([]); |
|
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | }else{ |
@@ -131,9 +131,9 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | if( isset($relation['pivotFields']) ){ |
| 133 | 133 | foreach($relation['pivotFields'] as $pivotField){ |
| 134 | - foreach($data[$pivotField] as $pivot_id => $field){ |
|
| 135 | - $model->{$relation['name']}()->updateExistingPivot($pivot_id, [$pivotField => $field]); |
|
| 136 | - } |
|
| 134 | + foreach($data[$pivotField] as $pivot_id => $field){ |
|
| 135 | + $model->{$relation['name']}()->updateExistingPivot($pivot_id, [$pivotField => $field]); |
|
| 136 | + } |
|
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | } |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | |
| 178 | - /* |
|
| 178 | + /* |
|
| 179 | 179 | |-------------------------------------------------------------------------- |
| 180 | 180 | | READ |
| 181 | 181 | |-------------------------------------------------------------------------- |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | |
| 258 | 258 | |
| 259 | 259 | |
| 260 | - /* |
|
| 260 | + /* |
|
| 261 | 261 | |-------------------------------------------------------------------------- |
| 262 | 262 | | UPDATE |
| 263 | 263 | |-------------------------------------------------------------------------- |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | |
| 323 | 323 | |
| 324 | 324 | |
| 325 | - /* |
|
| 325 | + /* |
|
| 326 | 326 | |-------------------------------------------------------------------------- |
| 327 | 327 | | DELETE |
| 328 | 328 | |-------------------------------------------------------------------------- |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | |
| 414 | 414 | |
| 415 | 415 | |
| 416 | - /* |
|
| 416 | + /* |
|
| 417 | 417 | |-------------------------------------------------------------------------- |
| 418 | 418 | | CRUD ACCESS |
| 419 | 419 | |-------------------------------------------------------------------------- |
@@ -842,7 +842,7 @@ discard block |
||
| 842 | 842 | |
| 843 | 843 | if (!in_array($field, $this->model->getHidden())) |
| 844 | 844 | { |
| 845 | - $this->columns[] = [ |
|
| 845 | + $this->columns[] = [ |
|
| 846 | 846 | 'name' => $field, |
| 847 | 847 | 'label' => ucfirst($field), |
| 848 | 848 | 'type' => $this->getFieldTypeFromDbColumnType($field) |
@@ -1210,10 +1210,10 @@ discard block |
||
| 1210 | 1210 | |
| 1211 | 1211 | public function addCreateField($field) |
| 1212 | 1212 | { |
| 1213 | - return $this->add('create_fields', $field); |
|
| 1213 | + return $this->add('create_fields', $field); |
|
| 1214 | 1214 | } |
| 1215 | 1215 | |
| 1216 | - public function setUpdateFields($fields) |
|
| 1216 | + public function setUpdateFields($fields) |
|
| 1217 | 1217 | { |
| 1218 | 1218 | $this->addMultiple('update_fields', $fields); |
| 1219 | 1219 | } |