@@ -30,7 +30,7 @@ |
||
30 | 30 | $customise['Aperture'] = $galleryImage->Aperture; |
31 | 31 | $customise['ShutterSpeed'] = $galleryImage->ShutterSpeed; |
32 | 32 | |
33 | - //set the caption |
|
33 | + //set the caption |
|
34 | 34 | $customise['Title'] = $galleryImage->Title; |
35 | 35 | |
36 | 36 | //overide the defaults with the arguments supplied |
@@ -43,30 +43,30 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * An accessor method for an image for a portlet. |
|
47 | - * |
|
48 | - * @example |
|
49 | - * <code> |
|
50 | - * return $this->NewsItemImage; |
|
51 | - * </code> |
|
52 | - * |
|
53 | - * @return string |
|
54 | - */ |
|
46 | + * An accessor method for an image for a portlet. |
|
47 | + * |
|
48 | + * @example |
|
49 | + * <code> |
|
50 | + * return $this->NewsItemImage; |
|
51 | + * </code> |
|
52 | + * |
|
53 | + * @return string |
|
54 | + */ |
|
55 | 55 | public function getPortletImage() |
56 | 56 | { |
57 | 57 | return $this->Image(); |
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
61 | - * An accessor for text associated with the portlet. |
|
62 | - * |
|
63 | - * @example |
|
64 | - * <code> |
|
65 | - * return $this->Summary |
|
66 | - * </code> |
|
67 | - * |
|
68 | - * @return string |
|
69 | - */ |
|
61 | + * An accessor for text associated with the portlet. |
|
62 | + * |
|
63 | + * @example |
|
64 | + * <code> |
|
65 | + * return $this->Summary |
|
66 | + * </code> |
|
67 | + * |
|
68 | + * @return string |
|
69 | + */ |
|
70 | 70 | public function getPortletCaption() |
71 | 71 | { |
72 | 72 | return ''; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | public function processExifData() |
18 | 18 | { |
19 | 19 | $image = $this->owner->Image(); |
20 | - $filename = BASE_PATH . '/' . $image->Filename; |
|
20 | + $filename = BASE_PATH.'/'.$image->Filename; |
|
21 | 21 | |
22 | 22 | // when the image is first saved, the file will still be a temp file |
23 | 23 | if ($image->exists()) { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $seconds = $latarray[2]; |
63 | 63 | $parts = explode('/', $seconds); |
64 | 64 | $seconds = $parts[0] / $parts[1]; |
65 | - $latitude = $degrees + $minutes / 60 + $seconds / 3600; |
|
65 | + $latitude = $degrees+$minutes / 60+$seconds / 3600; |
|
66 | 66 | $lonarray = $gps['GPSLongitude']; |
67 | 67 | $degrees = $lonarray[0]; |
68 | 68 | $parts = explode('/', $degrees); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $parts = explode('/', $seconds); |
75 | 75 | $seconds = $parts[0] / $parts[1]; |
76 | 76 | |
77 | - $longitude = $degrees + $minutes / 60 + $seconds / 3600; |
|
77 | + $longitude = $degrees+$minutes / 60+$seconds / 3600; |
|
78 | 78 | $this->owner->Lat = $latitude; |
79 | 79 | $this->owner->Lon = $longitude; |
80 | 80 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $image->processExifData(); |
109 | 109 | } |
110 | 110 | |
111 | - DB::alteration_message('Updated image metadata where EXIF has not been ' . 'processed', 'changed'); |
|
111 | + DB::alteration_message('Updated image metadata where EXIF has not been '.'processed', 'changed'); |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | } |
@@ -84,8 +84,7 @@ |
||
84 | 84 | $this->owner->ExifRead = true; |
85 | 85 | $this->owner->Orientation = $this->owner->Image()->getOrientation(); |
86 | 86 | $this->owner->write(); |
87 | - } |
|
88 | - catch (Exception $e) { |
|
87 | + } catch (Exception $e) { |
|
89 | 88 | error_log($e->getMessage()); |
90 | 89 | } |
91 | 90 | } |