| @@ -25,7 +25,7 @@ discard block | ||
| 25 | 25 | |
| 26 | 26 | return $list | 
| 27 | 27 |              ->where('enabled', true) | 
| 28 | -            ->map(function ($capsule) use ($path) { | |
| 28 | +            ->map(function($capsule) use ($path) { | |
| 29 | 29 | return $this->makeCapsule($capsule, $path); | 
| 30 | 30 | }); | 
| 31 | 31 | } | 
| @@ -40,7 +40,7 @@ discard block | ||
| 40 | 40 | public function getCapsuleByModule($module) | 
| 41 | 41 |      { | 
| 42 | 42 | return $this->getCapsuleList() | 
| 43 | -            ->filter(function ($capsule) use ($module) { | |
| 43 | +            ->filter(function($capsule) use ($module) { | |
| 44 | 44 | return Str::lower($capsule['plural']) == Str::lower($module); | 
| 45 | 45 | }) | 
| 46 | 46 | ->first(); | 
| @@ -250,7 +250,7 @@ discard block | ||
| 250 | 250 |      { | 
| 251 | 251 | $twillSeeder = app(CapsuleSeeder::class); | 
| 252 | 252 | |
| 253 | - $this->getCapsuleList()->each(function ($capsule) use ( | |
| 253 | + $this->getCapsuleList()->each(function($capsule) use ( | |
| 254 | 254 | $twillSeeder, | 
| 255 | 255 | $illuminateSeeder | 
| 256 | 256 |          ) { | 
| @@ -37,7 +37,7 @@ discard block | ||
| 37 | 37 | |
| 38 | 38 | private function findMedia($role, $crop = "default") | 
| 39 | 39 |      { | 
| 40 | -        $media = $this->medias->first(function ($media) use ($role, $crop) { | |
| 40 | +        $media = $this->medias->first(function($media) use ($role, $crop) { | |
| 41 | 41 |              if (config('twill.media_library.translated_form_fields', false)) { | 
| 42 | 42 | $localeScope = $media->pivot->locale === app()->getLocale(); | 
| 43 | 43 | } | 
| @@ -46,7 +46,7 @@ discard block | ||
| 46 | 46 | }); | 
| 47 | 47 | |
| 48 | 48 |          if (!$media && config('twill.media_library.translated_form_fields', false)) { | 
| 49 | -            $media = $this->medias->first(function ($media) use ($role, $crop) { | |
| 49 | +            $media = $this->medias->first(function($media) use ($role, $crop) { | |
| 50 | 50 | return $media->pivot->role === $role && $media->pivot->crop === $crop; | 
| 51 | 51 | }); | 
| 52 | 52 | } | 
| @@ -89,7 +89,7 @@ discard block | ||
| 89 | 89 | |
| 90 | 90 | public function images($role, $crop = "default", $params = []) | 
| 91 | 91 |      { | 
| 92 | -        $medias = $this->medias->filter(function ($media) use ($role, $crop) { | |
| 92 | +        $medias = $this->medias->filter(function($media) use ($role, $crop) { | |
| 93 | 93 | return $media->pivot->role === $role && $media->pivot->crop === $crop; | 
| 94 | 94 | }); | 
| 95 | 95 | |
| @@ -104,7 +104,7 @@ discard block | ||
| 104 | 104 | |
| 105 | 105 | public function imagesWithCrops($role, $params = []) | 
| 106 | 106 |      { | 
| 107 | -        $medias = $this->medias->filter(function ($media) use ($role) { | |
| 107 | +        $medias = $this->medias->filter(function($media) use ($role) { | |
| 108 | 108 | return $media->pivot->role === $role; | 
| 109 | 109 | }); | 
| 110 | 110 | |
| @@ -140,7 +140,7 @@ discard block | ||
| 140 | 140 | |
| 141 | 141 | public function imagesAsArrays($role, $crop = "default", $params = []) | 
| 142 | 142 |      { | 
| 143 | -        $medias = $this->medias->filter(function ($media) use ($role, $crop) { | |
| 143 | +        $medias = $this->medias->filter(function($media) use ($role, $crop) { | |
| 144 | 144 | return $media->pivot->role === $role && $media->pivot->crop === $crop; | 
| 145 | 145 | }); | 
| 146 | 146 | |
| @@ -155,7 +155,7 @@ discard block | ||
| 155 | 155 | |
| 156 | 156 | public function imagesAsArraysWithCrops($role, $params = []) | 
| 157 | 157 |      { | 
| 158 | -        $medias = $this->medias->filter(function ($media) use ($role) { | |
| 158 | +        $medias = $this->medias->filter(function($media) use ($role) { | |
| 159 | 159 | return $media->pivot->role === $role; | 
| 160 | 160 | }); | 
| 161 | 161 | |
| @@ -172,12 +172,12 @@ discard block | ||
| 172 | 172 | public function imageAltText($role, $media = null) | 
| 173 | 173 |      { | 
| 174 | 174 |          if (!$media) { | 
| 175 | -            $media = $this->medias->first(function ($media) use ($role) { | |
| 175 | +            $media = $this->medias->first(function($media) use ($role) { | |
| 176 | 176 |                  if (config('twill.media_library.translated_form_fields', false)) { | 
| 177 | 177 | $localeScope = $media->pivot->locale === app()->getLocale(); | 
| 178 | 178 | } | 
| 179 | 179 | |
| 180 | - return $media->pivot->role === $role && ($localeScope ?? true);; | |
| 180 | + return $media->pivot->role === $role && ($localeScope ?? true); ; | |
| 181 | 181 | }); | 
| 182 | 182 | } | 
| 183 | 183 | |
| @@ -191,12 +191,12 @@ discard block | ||
| 191 | 191 | public function imageCaption($role, $media = null) | 
| 192 | 192 |      { | 
| 193 | 193 |          if (!$media) { | 
| 194 | -            $media = $this->medias->first(function ($media) use ($role) { | |
| 194 | +            $media = $this->medias->first(function($media) use ($role) { | |
| 195 | 195 |                  if (config('twill.media_library.translated_form_fields', false)) { | 
| 196 | 196 | $localeScope = $media->pivot->locale === app()->getLocale(); | 
| 197 | 197 | } | 
| 198 | 198 | |
| 199 | - return $media->pivot->role === $role && ($localeScope ?? true);; | |
| 199 | + return $media->pivot->role === $role && ($localeScope ?? true); ; | |
| 200 | 200 | }); | 
| 201 | 201 | } | 
| 202 | 202 | |
| @@ -210,12 +210,12 @@ discard block | ||
| 210 | 210 | public function imageVideo($role, $media = null) | 
| 211 | 211 |      { | 
| 212 | 212 |          if (!$media) { | 
| 213 | -            $media = $this->medias->first(function ($media) use ($role) { | |
| 213 | +            $media = $this->medias->first(function($media) use ($role) { | |
| 214 | 214 |                  if (config('twill.media_library.translated_form_fields', false)) { | 
| 215 | 215 | $localeScope = $media->pivot->locale === app()->getLocale(); | 
| 216 | 216 | } | 
| 217 | 217 | |
| 218 | - return $media->pivot->role === $role && ($localeScope ?? true);; | |
| 218 | + return $media->pivot->role === $role && ($localeScope ?? true); ; | |
| 219 | 219 | }); | 
| 220 | 220 | } | 
| 221 | 221 | |
| @@ -284,7 +284,7 @@ discard block | ||
| 284 | 284 | |
| 285 | 285 | public function imageObjects($role, $crop = "default") | 
| 286 | 286 |      { | 
| 287 | -        return $this->medias->filter(function ($media) use ($role, $crop) { | |
| 287 | +        return $this->medias->filter(function($media) use ($role, $crop) { | |
| 288 | 288 | return $media->pivot->role === $role && $media->pivot->crop === $crop; | 
| 289 | 289 | }); | 
| 290 | 290 | } |