| @@ -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 | 
| @@ -72,7 +72,7 @@ discard block | ||
| 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 | ||
| 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 | 
| @@ -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 ''; | 
| @@ -76,7 +76,7 @@ discard block | ||
| 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 | ||
| 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 | } | 
| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | 3 |  class GalleryImageShortCodeHandlerTest extends SapphireTest { | 
| 4 | -	public function testParse_gallery_image() { | |
| 5 | -		$this->markTestSkipped('TODO'); | |
| 6 | - } | |
| 4 | +  public function testParse_gallery_image() { | |
| 5 | +    $this->markTestSkipped('TODO'); | |
| 6 | + } | |
| 7 | 7 | |
| 8 | -	public function test_link_shortcode_handler() { | |
| 9 | -		$this->markTestSkipped('TODO'); | |
| 10 | - } | |
| 8 | +  public function test_link_shortcode_handler() { | |
| 9 | +    $this->markTestSkipped('TODO'); | |
| 10 | + } | |
| 11 | 11 | |
| 12 | 12 | } |