Completed
Push — master ( 49cc4e...8837bb )
by Timo
08:26
created
src/Models/HeaderFormatters/SortableHeader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      * @return string
167 167
      * @throws \RuntimeException
168 168
      */
169
-    private function _buildSortQuery(string $columnName, string &$oldDirection) : string
169
+    private function _buildSortQuery(string $columnName, string & $oldDirection) : string
170 170
     {
171 171
         $parameters = UrlHelper::queryParameters();
172 172
         if (!isset($parameters['sort']))
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      * @param string $queryString
190 190
      * @return null|string
191 191
      */
192
-    private function _getDirectionFromQuery(string $columnName, string $queryString) : ?string
192
+    private function _getDirectionFromQuery(string $columnName, string $queryString) : ? string
193 193
     {
194 194
         $column = $columnName . self::SORTING_SEPARATOR;
195 195
         $columnPos = \mb_strpos($queryString, $column);
Please login to merge, or discard this patch.
src/Models/DataComponents/Paginator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @return null|string
128 128
      * @throws \RuntimeException
129 129
      */
130
-    private function _getFirstPageUrl() : ?string
130
+    private function _getFirstPageUrl() : ? string
131 131
     {
132 132
         if ($this->_currentPage <= $this->_surroundingPages + 1)
133 133
         {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      * @return null|string
158 158
      * @throws \RuntimeException
159 159
      */
160
-    private function _getPreviousPageUrl() : ?string
160
+    private function _getPreviousPageUrl() : ? string
161 161
     {
162 162
         $previousPage = $this->_currentPage - 1;
163 163
         if ($previousPage < 1)
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         $end = $this->_getEndPage();
180 180
 
181 181
         $pageList = '';
182
-        for ($i = $this->_getStartPage(); $i <= $end; $i ++)
182
+        for ($i = $this->_getStartPage(); $i <= $end; $i++)
183 183
         {
184 184
             $pageList .= $this->_renderListItem($i, $this->_buildPageUrl($i));
185 185
         }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      * @return null|string
232 232
      * @throws \RuntimeException
233 233
      */
234
-    private function _getNextPageUrl() : ?string
234
+    private function _getNextPageUrl() : ? string
235 235
     {
236 236
         if ($this->_currentPage >= $this->pageCount())
237 237
         {
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      * @return null|string
246 246
      * @throws \RuntimeException
247 247
      */
248
-    private function _getLastPageUrl() : ?string
248
+    private function _getLastPageUrl() : ? string
249 249
     {
250 250
         $lastPage = $this->pageCount();
251 251
         if ($this->_currentPage + $this->_surroundingPages >= $lastPage)
Please login to merge, or discard this patch.