Completed
Branch master (201f12)
by Leo
02:12
created
Category
code/ImageOrientationFixer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 	//if (extension_loaded('gd') && function_exists('gd_info')) {
5 5
 	//if(extension_loaded('imagick')) {
6 6
 		
7
-	public function updateCMSFields( FieldList $fields ) {
7
+	public function updateCMSFields(FieldList $fields) {
8 8
 		$path = $this->owner->getFullPath();
9 9
 		$orientation = $this->get_orientation($path);
10 10
 	}
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		$imagick = new Imagick($imagePath);
39 39
 		$imagick->setImageOrientation(imagick::ORIENTATION_TOPLEFT);
40 40
 		$deg = 0;
41
-		switch($orientation) {
41
+		switch ($orientation) {
42 42
 			case 3:
43 43
 				$deg = -180;
44 44
 				break;
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 				return false;
72 72
 		}
73 73
 		
74
-		switch($orientation) {
74
+		switch ($orientation) {
75 75
 			case 3:
76 76
 				$image = imagerotate($image, 180, 0);
77 77
 				break;
Please login to merge, or discard this patch.
_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-define('IMAGEORIENTATIONFIXER_DIR',basename(dirname(__FILE__)));
4 3
\ No newline at end of file
4
+define('IMAGEORIENTATIONFIXER_DIR', basename(dirname(__FILE__)));
5 5
\ No newline at end of file
Please login to merge, or discard this patch.