Completed
Push — master ( ef1b0f...4b6367 )
by Gordon
17:36
created
code/ImageMetaDataExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 $seconds = $parts[0] / $parts[1];
73 73
 
74 74
                 error_log('LATITUDE: DMS='.$degrees.','.$minutes.','.$seconds);
75
-                $latitude = $degrees + $minutes / 60 + $seconds / 3600;
75
+                $latitude = $degrees+$minutes / 60+$seconds / 3600;
76 76
                 error_log('LAT:'.$latitude);
77 77
 
78 78
                 error_log('LATITUDE:'.$latitude);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 $parts = explode('/', $seconds);
89 89
                 $seconds = $parts[0] / $parts[1];
90 90
 
91
-                $longitude = $degrees + $minutes / 60 + $seconds / 3600;
91
+                $longitude = $degrees+$minutes / 60+$seconds / 3600;
92 92
                 $this->owner->Lat = $latitude;
93 93
                 $this->owner->Lon = $longitude;
94 94
                 } // else no gps data
Please login to merge, or discard this patch.
code/GalleryImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         //FIXME - is there a way to avoid a database call here?
78 78
         $image100 = $this->Image()->SetRatioSize(100, 100);
79
-        $result = ($intendedWidth - $image100->Width) / 2;
79
+        $result = ($intendedWidth-$image100->Width) / 2;
80 80
         error_log('HORIZONTAL MARGIN:'.$result);
81 81
         return $result;
82 82
     }
@@ -85,6 +85,6 @@  discard block
 block discarded – undo
85 85
     {
86 86
         //FIXME - is there a way to avoid a database call here?
87 87
         $image100 = $this->Image()->SetRatioSize(100, 100);
88
-        return ($intendedHeight - $image100->Height) / 2;
88
+        return ($intendedHeight-$image100->Height) / 2;
89 89
     }
90 90
 }
Please login to merge, or discard this patch.