Completed
Push — master ( a42924...6fb51e )
by Thierry
01:41
created
src/Utils/Pagination/Renderer.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     protected function getPrevLink()
65 65
     {
66
-        if(!($sCall = $this->xPaginator->getPrevCall()))
66
+        if (!($sCall = $this->xPaginator->getPrevCall()))
67 67
         {
68 68
             return '';
69 69
         }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     protected function getNextLink()
80 80
     {
81
-        if(!($sCall = $this->xPaginator->getNextCall()))
81
+        if (!($sCall = $this->xPaginator->getNextCall()))
82 82
         {
83 83
             return '';
84 84
         }
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
     protected function getLinks()
95 95
     {
96 96
         $sLinks = '';
97
-        foreach($this->xPaginator->getPages() as $page)
97
+        foreach ($this->xPaginator->getPages() as $page)
98 98
         {
99
-            if($page['call'])
99
+            if ($page['call'])
100 100
             {
101 101
                 $sTemplate = ($page['isCurrent'] ? 'pagination::links/current' : 'pagination::links/enabled');
102 102
                 $sLinks .= $this->xTemplate->render($sTemplate, ['call' => $page['call'], 'text' => $page['num']]);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,8 +100,7 @@
 block discarded – undo
100 100
             {
101 101
                 $sTemplate = ($page['isCurrent'] ? 'pagination::links/current' : 'pagination::links/enabled');
102 102
                 $sLinks .= $this->xTemplate->render($sTemplate, ['call' => $page['call'], 'text' => $page['num']]);
103
-            }
104
-            else
103
+            } else
105 104
             {
106 105
                 $sLinks .= $this->xTemplate->render('pagination::links/disabled', ['text' => $page['num']]);
107 106
             }
Please login to merge, or discard this patch.
src/Request/Support/UserFunction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function configure($sName, $sValue)
86 86
     {
87
-        switch($sName)
87
+        switch ($sName)
88 88
         {
89 89
         case 'class': // The user function is a method in the given class
90 90
             $this->xUserFunction = [$sValue, $this->xUserFunction];
@@ -139,13 +139,13 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function call($aArgs = [])
141 141
     {
142
-        if(($this->sInclude))
142
+        if (($this->sInclude))
143 143
         {
144 144
             require_once $this->sInclude;
145 145
         }
146 146
 
147 147
         // If the function is an alias for a class method, then instanciate the class
148
-        if(is_array($this->xUserFunction) && is_string($this->xUserFunction[0]))
148
+        if (is_array($this->xUserFunction) && is_string($this->xUserFunction[0]))
149 149
         {
150 150
             $sClassName = $this->xUserFunction[0];
151 151
             $this->xUserFunction[0] = new $sClassName;
Please login to merge, or discard this patch.