Completed
Push — master ( 82264e...ac3ca8 )
by Davide
06:54 queued 03:38
created
src/ResponsiveGalleryFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      **/
129 129
     public function createImagesArray($image_file_names, $image_data, $gallery_url, $dbImageDatas)
130 130
     {
131
-        sort($image_file_names);  // Order by image name
131
+        sort($image_file_names); // Order by image name
132 132
 
133 133
         $ret = [];
134 134
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             $ret[$k]['alt'] = '';
141 141
             $ret[$k]['video_link'] = null;
142 142
 
143
-            if (! empty($dbImageDatas[$image_file_name])) {
143
+            if (!empty($dbImageDatas[$image_file_name])) {
144 144
                 $ret[$k]['description'] = $dbImageDatas[$image_file_name]->description;
145 145
                 $ret[$k]['alt'] = $dbImageDatas[$image_file_name]->alt;
146 146
                 $ret[$k]['video_link'] = $dbImageDatas[$image_file_name]->video_link;
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
                 $image_files = $this->getImageFiles($parameters['images_dir']);
293 293
                 //sort($image_files,SORT_STRING);
294 294
 
295
-                if (! empty($image_files)) {
295
+                if (!empty($image_files)) {
296 296
                     // Get images data from excel
297 297
                     //$image_data = $this->getImgDataFromExcel($parameters['images_dir']);
298 298
                     $image_data = null;
Please login to merge, or discard this patch.