@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $thumbs_height = $thumbs_size['height']; |
| 97 | 97 | |
| 98 | 98 | // Create thumbs dir |
| 99 | - if (! is_dir($thumbs_dir)) { |
|
| 99 | + if (!is_dir($thumbs_dir)) { |
|
| 100 | 100 | mkdir($thumbs_dir); |
| 101 | 101 | } |
| 102 | 102 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | foreach ($image_files as $index=>$file) { |
| 107 | 107 | $index++; |
| 108 | 108 | $thumbnail_image = $thumbs_dir.$file; |
| 109 | - if (! file_exists($thumbnail_image)) { |
|
| 109 | + if (!file_exists($thumbnail_image)) { |
|
| 110 | 110 | $extension = self::get_file_extension($thumbnail_image); |
| 111 | 111 | if ($extension) { |
| 112 | 112 | //echo $images_dir." ".$file." ".$thumbnail_image." ".$thumbs_width; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | **/ |
| 128 | 128 | public function createImagesArray($image_file_names, $gallery_url, $dbImageDatas) |
| 129 | 129 | { |
| 130 | - sort($image_file_names); // Order by image name |
|
| 130 | + sort($image_file_names); // Order by image name |
|
| 131 | 131 | |
| 132 | 132 | $ret = []; |
| 133 | 133 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | $ret[$k]['alt'] = ''; |
| 140 | 140 | $ret[$k]['video_link'] = null; |
| 141 | 141 | |
| 142 | - if (! empty($dbImageDatas[$image_file_name])) { |
|
| 142 | + if (!empty($dbImageDatas[$image_file_name])) { |
|
| 143 | 143 | $ret[$k]['description'] = $dbImageDatas[$image_file_name]->description; |
| 144 | 144 | $ret[$k]['alt'] = $dbImageDatas[$image_file_name]->alt; |
| 145 | 145 | $ret[$k]['video_link'] = $dbImageDatas[$image_file_name]->video_link; |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | // Get images file name array |
| 291 | 291 | $image_files = $this->getImageFiles($parameters['images_dir']); |
| 292 | 292 | |
| 293 | - if (! empty($image_files)) { |
|
| 293 | + if (!empty($image_files)) { |
|
| 294 | 294 | |
| 295 | 295 | $this->generateThumbs($parameters['images_dir'], $parameters['thumbs_dir'], $parameters['thumbs_size'], $image_files); |
| 296 | 296 | $dbImageDatas = $this->getPhotoDatasFromDb(); |