Completed
Push — master ( 4d2086...75c8f2 )
by satoru
01:47
created
src/Model/Entity/ContentsFileTrait.php 2 patches
Braces   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -302,29 +302,29 @@
 block discarded – undo
302 302
                 // 未定義
303 303
                 if($orientation == 0) {
304 304
                     // 通常
305
-                }else if($orientation == 1) {
305
+                } else if($orientation == 1) {
306 306
                     // 左右反転
307
-                }else if($orientation == 2) {
307
+                } else if($orientation == 2) {
308 308
                     $image = $this->imageFlop($image);
309 309
                     // 180°回転
310
-                }else if($orientation == 3) {
310
+                } else if($orientation == 3) {
311 311
                     $image = $this->imageRotate($image,180, 0);
312 312
                     // 上下反転
313
-                }else if($orientation == 4) {
313
+                } else if($orientation == 4) {
314 314
                     $image = $this->imageFlip($image);
315 315
                     // 反時計回りに90°回転 上下反転
316
-                }else if($orientation == 5) {
316
+                } else if($orientation == 5) {
317 317
                     $image = $this->imageRotate($image,90, 0);
318 318
                     $image = $this->imageFlip($image);
319 319
                     // 時計回りに90°回転
320
-                }else if($orientation == 6) {
320
+                } else if($orientation == 6) {
321 321
                     $image = $this->imageRotate($image,-90, 0);
322 322
                     // 時計回りに90°回転 上下反転
323
-                }else if($orientation == 7) {
323
+                } else if($orientation == 7) {
324 324
                     $image = $this->imageRotate($image,-90, 0);
325 325
                     $image = $this->imageFlip($image);
326 326
                 // 反時計回りに90°回転
327
-                }else if($orientation == 8) {
327
+                } else if($orientation == 8) {
328 328
                     $image = $this->imageRotate($image,90, 0);
329 329
                 }
330 330
             }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -273,6 +273,8 @@
 block discarded – undo
273 273
      * 向きだけロジックが逆そうなので調整
274 274
      *
275 275
      * @author hagiwara
276
+     * @param string $input
277
+     * @param string $output
276 278
      */
277 279
     private function orientationFixedImage($input, $output){
278 280
         $imagetype = exif_imagetype($input);
Please login to merge, or discard this patch.