Completed
Branch stable24 (9390fe)
by Gordon
05:13
created
code/FAQFolder.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -4,35 +4,35 @@
 block discarded – undo
4 4
  */
5 5
 class FAQFolder extends Page implements RenderableAsPortlet {
6 6
 
7
-	static $allowed_children = array( 'FAQFolder', 'FAQ' );
7
+  static $allowed_children = array( 'FAQFolder', 'FAQ' );
8 8
 
9
-	static $has_one = array(
10
-		'MainImage' => 'Image'
11
-	);
9
+  static $has_one = array(
10
+    'MainImage' => 'Image'
11
+  );
12 12
 
13
-	function getCMSFields() {
14
-		$fields = parent::getCMSFields();
13
+  function getCMSFields() {
14
+    $fields = parent::getCMSFields();
15 15
 
16
-		$fields->addFieldToTab( 'Root.Content.Image', new ImageField( 'MainImage' ) );
16
+    $fields->addFieldToTab( 'Root.Content.Image', new ImageField( 'MainImage' ) );
17 17
 
18 18
 
19
-		return $fields;
20
-	}
19
+    return $fields;
20
+  }
21 21
 
22 22
 
23
-	public function getPortletTitle() {
23
+  public function getPortletTitle() {
24 24
     return $this->Title;
25 25
   }  
26 26
 
27 27
 
28 28
   // FIXME - make this more efficient
29 29
   public function getPortletImage() {
30
-  	if ($this->MainImageID) {
30
+    if ($this->MainImageID) {
31 31
     return DataObject::get_by_id('Image', $this->MainImageID);
32 32
 
33
-  	} else {
34
-  		return null;
35
-  	}
33
+    } else {
34
+      return null;
35
+    }
36 36
     
37 37
   }
38 38
   
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  */
5 5
 class FAQFolder extends Page implements RenderableAsPortlet {
6 6
 
7
-	static $allowed_children = array( 'FAQFolder', 'FAQ' );
7
+	static $allowed_children = array('FAQFolder', 'FAQ');
8 8
 
9 9
 	static $has_one = array(
10 10
 		'MainImage' => 'Image'
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 	function getCMSFields() {
14 14
 		$fields = parent::getCMSFields();
15 15
 
16
-		$fields->addFieldToTab( 'Root.Content.Image', new ImageField( 'MainImage' ) );
16
+		$fields->addFieldToTab('Root.Content.Image', new ImageField('MainImage'));
17 17
 
18 18
 
19 19
 		return $fields;
Please login to merge, or discard this patch.