Completed
Push — master ( 12d971...3e6b7d )
by Terzi
03:07
created
src/Services/Saver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.