Completed
Branch master (c75cee)
by Gordon
09:21
created
code/PrevNextSiblingExtension.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 block discarded – undo
8 8
 	
9 9
 	function NextSibling() {
10 10
 		$where = "ParentID = {$this->owner->ParentID} AND Sort > {$this->owner->Sort}";
11
-	    $result = SiteTree::get()->where($where)->sort('Sort')->First();
12
-	    return $result;
11
+		$result = SiteTree::get()->where($where)->sort('Sort')->First();
12
+		return $result;
13 13
 	  }
14 14
 
15 15
  	function PreviousSibling() {
16 16
  		$where = "ParentID = {$this->owner->ParentID} AND Sort < {$this->owner->Sort}";
17
-    	return SiteTree::get()->where($where)->sort('Sort DESC')->First();
17
+		return SiteTree::get()->where($where)->sort('Sort DESC')->First();
18 18
   	}
19 19
 
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.