@@ -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; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | public function createImagesArray($image_file_names, $image_data, $gallery_url, $dbImageDatas) |
133 | 133 | { |
134 | 134 | |
135 | - sort($image_file_names); // Order by image name |
|
135 | + sort($image_file_names); // Order by image name |
|
136 | 136 | |
137 | 137 | $ret = []; |
138 | 138 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $ret[$k]['alt'] = ""; |
147 | 147 | $ret[$k]['video_link'] = null; |
148 | 148 | |
149 | - if (! empty($dbImageDatas[$image_file_name])) { |
|
149 | + if (!empty($dbImageDatas[$image_file_name])) { |
|
150 | 150 | $ret[$k]['description'] = $dbImageDatas[$image_file_name]->description; |
151 | 151 | $ret[$k]['alt'] = $dbImageDatas[$image_file_name]->alt; |
152 | 152 | $ret[$k]['video_link'] = $dbImageDatas[$image_file_name]->video_link; |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | $image_files = $this->getImageFiles($parameters['images_dir']); |
302 | 302 | //sort($image_files,SORT_STRING); |
303 | 303 | |
304 | - if (! empty($image_files)) { |
|
304 | + if (!empty($image_files)) { |
|
305 | 305 | // Get images data from excel |
306 | 306 | //$image_data = $this->getImgDataFromExcel($parameters['images_dir']); |
307 | 307 | $image_data = null; |