@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | $value = $this->isFile($field) ? $this->request->file($name) : $this->request->get($name); |
81 | 81 | |
82 | - $value = $this->isBoolean($field) ? (bool)$value : $value; |
|
82 | + $value = $this->isBoolean($field) ? (bool) $value : $value; |
|
83 | 83 | |
84 | 84 | $value = $this->handleJsonType($name, $value); |
85 | 85 | |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | protected function saveMedia() |
220 | 220 | { |
221 | 221 | if ($this->repository instanceof HasMedia) { |
222 | - $media = (array)$this->request['_media_']; |
|
222 | + $media = (array) $this->request['_media_']; |
|
223 | 223 | |
224 | 224 | if (!empty($trash = array_get($media, '_trash_', []))) { |
225 | 225 | $this->repository->media()->whereIn( |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $keys = explode('.', $this->getQualifiedRelatedKeyName($relation)); |
250 | 250 | $key = array_pop($keys); |
251 | 251 | |
252 | - return array_filter((array)$values[$key], function ($value) { |
|
252 | + return array_filter((array) $values[$key], function ($value) { |
|
253 | 253 | return null !== $value; |
254 | 254 | }); |
255 | 255 | } |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | protected function appendTranslationsToRelations() |
274 | 274 | { |
275 | 275 | if (!empty($this->relations)) { |
276 | - foreach (array_keys((array)$this->relations) as $relation) { |
|
276 | + foreach (array_keys((array) $this->relations) as $relation) { |
|
277 | 277 | if ($translations = $this->input("{$relation}.translatable")) { |
278 | 278 | $this->relations[$relation] += $translations; |
279 | 279 | } |