Completed
Branch master (907706)
by Gordon
02:40
created
Category
code/Paginator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     <% end_control %>
21 21
   </code>
22 22
   */
23
-  function PagedChildren( $klazz, $pageLength = 10, $prime = false, $relationship_key = "ParentID" ) {
23
+  function PagedChildren($klazz, $pageLength = 10, $prime = false, $relationship_key = "ParentID") {
24 24
     $parentID = $this->owner->ID;
25 25
     $req = Controller::curr()->getRequest();
26 26
     $list = DataList::create($klazz)->where('"ParentID" = '.$parentID);
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
   }
36 36
 
37 37
 
38
-    function AllPagedChildren( $pageLength = 10, $sort='Sort', $prime = false, $relationship_key = "ParentID" ) {
38
+    function AllPagedChildren($pageLength = 10, $sort = 'Sort', $prime = false, $relationship_key = "ParentID") {
39 39
       $parentID = $this->owner->ID;
40 40
       $req = Controller::curr()->getRequest();
41 41
       $list = SiteTree::get()->where('"ParentID" = '.$parentID);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     }
51 51
 
52 52
 
53
-  function PagedDataObjectsByClassName( $klazz, $pageLength = 10, $sort = 'ASC') {
53
+  function PagedDataObjectsByClassName($klazz, $pageLength = 10, $sort = 'ASC') {
54 54
     $req = Controller::curr()->getRequest();
55 55
     $this->lastPagedResults = new PaginatedList(DataList::create($klazz)->sort('LastEdited '.$sort), $req);
56 56
     $this->lastPagedResults->setPageLength($pageLength);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
 
63 63
 
64
-  function SetPagedOffset( $newoffset ) {
64
+  function SetPagedOffset($newoffset) {
65 65
     $this->PagedOffset = $newoffset;
66 66
   }
67 67
 
Please login to merge, or discard this patch.