@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $thumbs_height = $thumbs_size['height']; |
100 | 100 | |
101 | 101 | // Create thumbs dir |
102 | - if (! is_dir($thumbs_dir)) { |
|
102 | + if (!is_dir($thumbs_dir)) { |
|
103 | 103 | mkdir($thumbs_dir); |
104 | 104 | } |
105 | 105 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | foreach ($image_files as $index=>$file) { |
110 | 110 | $index++; |
111 | 111 | $thumbnail_image = $thumbs_dir.$file; |
112 | - if (! file_exists($thumbnail_image)) { |
|
112 | + if (!file_exists($thumbnail_image)) { |
|
113 | 113 | $extension = $this->get_file_extension($thumbnail_image); |
114 | 114 | if ($extension) { |
115 | 115 | //echo $images_dir." ".$file." ".$thumbnail_image." ".$thumbs_width; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | **/ |
132 | 132 | public function createImagesArray($image_files, $image_data, $gallery_url) |
133 | 133 | { |
134 | - sort($image_files); // Order by image name |
|
134 | + sort($image_files); // Order by image name |
|
135 | 135 | |
136 | 136 | $ret = []; |
137 | 137 | |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | |
299 | 299 | // if photo has datas return the datas |
300 | 300 | $ret = null; |
301 | - if (! empty($photosDatas[$photoFileName])) { |
|
301 | + if (!empty($photosDatas[$photoFileName])) { |
|
302 | 302 | $ret['description'] = $photosDatas[$photoFileName]->description; |
303 | 303 | $ret['video_link'] = $photosDatas[$photoFileName]->video_link; |
304 | 304 | $ret['alt'] = $photosDatas[$photoFileName]->alt; |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | $image_files = $this->getImageFiles($parameters['images_dir']); |
327 | 327 | //sort($image_files,SORT_STRING); |
328 | 328 | |
329 | - if (! empty($image_files)) { |
|
329 | + if (!empty($image_files)) { |
|
330 | 330 | // Get images data from excel |
331 | 331 | //$image_data = $this->getImgDataFromExcel($parameters['images_dir']); |
332 | 332 | $image_data = null; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | __DIR__.'/../config/responsive-gallery.php' => base_path('config/responsive-gallery.php'), |
22 | 22 | ], 'config'); |
23 | 23 | |
24 | - if (! class_exists('CreateGalleryImagesTable')) { |
|
24 | + if (!class_exists('CreateGalleryImagesTable')) { |
|
25 | 25 | $this->publishes([ |
26 | 26 | __DIR__.'/../database/migrations/create_gallery_images_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_gallery_images_table.php'), |
27 | 27 | ], 'migrations'); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | __DIR__.'/../resources/views' => resource_path('views/vendor/laravel-responsive-gallery/'), |
33 | 33 | ]); |
34 | 34 | |
35 | - Route::group(['middleware' => 'web'], function () { |
|
35 | + Route::group(['middleware' => 'web'], function() { |
|
36 | 36 | Route::resource('responsive-gallery', ResponsiveGalleryController::class); |
37 | 37 | }); |
38 | 38 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | { |
42 | 42 | $this->mergeConfigFrom(__DIR__.'/../config/responsive-gallery.php', 'responsive-gallery'); |
43 | 43 | |
44 | - $this->app->bind('gallery-index', function () { |
|
44 | + $this->app->bind('gallery-index', function() { |
|
45 | 45 | return new ResponsiveGalleryFactory(); |
46 | 46 | }); |
47 | 47 | } |