@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexPage() |
| 14 | 14 | { |
| 15 | 15 | $pages = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function () { |
|
| 16 | + ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function() { |
|
| 17 | 17 | return Page::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Page::orderBy('position')->get(); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function indexService() |
| 15 | 15 | { |
| 16 | 16 | $services = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('services') ? Cache::get('services') : Cache::rememberForever('services', function () { |
|
| 17 | + ? (Cache::has('services') ? Cache::get('services') : Cache::rememberForever('services', function() { |
|
| 18 | 18 | return Service::orderBy('position')->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Service::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexFacility() |
| 14 | 14 | { |
| 15 | 15 | $facilities = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function () { |
|
| 16 | + ? (Cache::has('facilities') ? Cache::get('facilities') : Cache::rememberForever('facilities', function() { |
|
| 17 | 17 | return Facility::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Facility::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexTeam() |
| 14 | 14 | { |
| 15 | 15 | $teams = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('teams') ? Cache::get('teams') : Cache::rememberForever('teams', function () { |
|
| 16 | + ? (Cache::has('teams') ? Cache::get('teams') : Cache::rememberForever('teams', function() { |
|
| 17 | 17 | return Team::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Team::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexPackage() |
| 14 | 14 | { |
| 15 | 15 | $packages = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('packages') ? Cache::get('packages') : Cache::rememberForever('packages', function () { |
|
| 16 | + ? (Cache::has('packages') ? Cache::get('packages') : Cache::rememberForever('packages', function() { |
|
| 17 | 17 | return Package::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Package::orderBy('position')->get(); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function indexTestimonial() |
| 15 | 15 | { |
| 16 | 16 | $testimonials = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('testimonials') ? Cache::get('testimonials') : Cache::rememberForever('testimonials', function () { |
|
| 17 | + ? (Cache::has('testimonials') ? Cache::get('testimonials') : Cache::rememberForever('testimonials', function() { |
|
| 18 | 18 | return Testimonial::orderBy('position')->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Testimonial::orderBy('position')->get(); |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | protected function registerResource() |
| 196 | 196 | { |
| 197 | - if (! config('website.publish_migrations', true)) { |
|
| 197 | + if (!config('website.publish_migrations', true)) { |
|
| 198 | 198 | $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); // Loading Migration Files |
| 199 | 199 | } |
| 200 | 200 | $this->loadViewsFrom(__DIR__.'/../../resources/views', 'website'); // Loading Views Files |
@@ -223,12 +223,12 @@ discard block |
||
| 223 | 223 | */ |
| 224 | 224 | protected function registerRoutes() |
| 225 | 225 | { |
| 226 | - Route::group($this->routeConfiguration(), function () { |
|
| 226 | + Route::group($this->routeConfiguration(), function() { |
|
| 227 | 227 | $this->loadRoutesFrom(__DIR__.'/../../routes/web.php'); |
| 228 | 228 | }); |
| 229 | 229 | |
| 230 | 230 | if (config('website.website_api_end_points', true)) { |
| 231 | - Route::group($this->apiRouteConfiguration(), function () { |
|
| 231 | + Route::group($this->apiRouteConfiguration(), function() { |
|
| 232 | 232 | $this->loadRoutesFrom(__DIR__.'/../../routes/api.php'); |
| 233 | 233 | }); |
| 234 | 234 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $temporaryUpload = $temporaryUploadModelClass::createForFile( |
| 38 | 38 | $uploadedFile, |
| 39 | 39 | session()->getId(), |
| 40 | - (string)Str::uuid(), |
|
| 40 | + (string) Str::uuid(), |
|
| 41 | 41 | $livewireUpload->getClientOriginalName() |
| 42 | 42 | ); |
| 43 | 43 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $livewireDisk = config('livewire.temporary_file_upload.disk', 's3'); |
| 53 | 53 | |
| 54 | 54 | $livewireDirectory = FileUploadConfiguration::directory(); |
| 55 | - $remotePath = Str::of($livewireDirectory)->start('/')->finish('/') . $livewireUpload->getFilename(); |
|
| 55 | + $remotePath = Str::of($livewireDirectory)->start('/')->finish('/').$livewireUpload->getFilename(); |
|
| 56 | 56 | |
| 57 | 57 | $temporaryUpload = $temporaryUploadModelClass::createForRemoteFile( |
| 58 | 58 | $remotePath, |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | public function registerMediaConversions(Media $media = null): void |
| 36 | 36 | { |
| 37 | - if (! config('media-library.generate_thumbnails_for_temporary_uploads')) { |
|
| 37 | + if (!config('media-library.generate_thumbnails_for_temporary_uploads')) { |
|
| 38 | 38 | return; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | protected function getPreviewManipulation(): Closure |
| 56 | 56 | { |
| 57 | - return static::$manipulatePreview ?? function (Conversion $conversion) { |
|
| 57 | + return static::$manipulatePreview ?? function(Conversion $conversion) { |
|
| 58 | 58 | $conversion->fit(Manipulations::FIT_CROP, 300, 300); |
| 59 | 59 | }; |
| 60 | 60 | } |
@@ -73,13 +73,13 @@ discard block |
||
| 73 | 73 | ->where('uuid', $mediaUuid) |
| 74 | 74 | ->first(); |
| 75 | 75 | |
| 76 | - if (! $media) { |
|
| 76 | + if (!$media) { |
|
| 77 | 77 | return null; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | $temporaryUpload = $media->model; |
| 81 | 81 | |
| 82 | - if (! $temporaryUpload instanceof TemporaryUpload) { |
|
| 82 | + if (!$temporaryUpload instanceof TemporaryUpload) { |
|
| 83 | 83 | return null; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | public static function findByMediaUuidInCurrentSession(?string $mediaUuid): ?TemporaryUpload |
| 90 | 90 | { |
| 91 | - if (! $temporaryUpload = static::findByMediaUuid($mediaUuid)) { |
|
| 91 | + if (!$temporaryUpload = static::findByMediaUuid($mediaUuid)) { |
|
| 92 | 92 | return null; |
| 93 | 93 | } |
| 94 | 94 | |