Completed
Push — master ( a0b2f2...00fd93 )
by Davide
31:00 queued 19:07
created
src/ResponsiveGalleryFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $thumbs_height = $thumbs_size['height'];
98 98
 
99 99
         //  Create thumbs dir
100
-        if (! is_dir($thumbs_dir)) {
100
+        if (!is_dir($thumbs_dir)) {
101 101
             mkdir($thumbs_dir);
102 102
         }
103 103
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             foreach ($image_files as $index=>$file) {
108 108
                 $index++;
109 109
                 $thumbnail_image = $thumbs_dir.$file;
110
-                if (! file_exists($thumbnail_image)) {
110
+                if (!file_exists($thumbnail_image)) {
111 111
                     $extension = $this->get_file_extension($thumbnail_image);
112 112
                     if ($extension) {
113 113
                         //echo $images_dir." ".$file." ".$thumbnail_image." ".$thumbs_width;
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      **/
130 130
     public function createImagesArray($image_file_names, $image_data, $gallery_url, $dbImageDatas)
131 131
     {
132
-        sort($image_file_names);  // Order by image name
132
+        sort($image_file_names); // Order by image name
133 133
 
134 134
         $ret = [];
135 135
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             $ret[$k]['alt'] = '';
144 144
             $ret[$k]['video_link'] = null;
145 145
 
146
-            if (! empty($dbImageDatas[$image_file_name])) {
146
+            if (!empty($dbImageDatas[$image_file_name])) {
147 147
                 $ret[$k]['description'] = $dbImageDatas[$image_file_name]->description;
148 148
                 $ret[$k]['alt'] = $dbImageDatas[$image_file_name]->alt;
149 149
                 $ret[$k]['video_link'] = $dbImageDatas[$image_file_name]->video_link;
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
                 $image_files = $this->getImageFiles($parameters['images_dir']);
300 300
                 //sort($image_files,SORT_STRING);
301 301
 
302
-                if (! empty($image_files)) {
302
+                if (!empty($image_files)) {
303 303
                     // Get images data from excel
304 304
                     //$image_data = $this->getImgDataFromExcel($parameters['images_dir']);
305 305
                     $image_data = null;
Please login to merge, or discard this patch.