@@ -423,7 +423,7 @@ |
||
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | /** |
| 426 | - * @return callable |
|
| 426 | + * @return string[] |
|
| 427 | 427 | */ |
| 428 | 428 | protected function getDefaultRoute() |
| 429 | 429 | { |
@@ -423,7 +423,7 @@ |
||
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | /** |
| 426 | - * @return callable |
|
| 426 | + * @return string[] |
|
| 427 | 427 | */ |
| 428 | 428 | protected function getDefaultRoute() |
| 429 | 429 | { |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | - * @return int|null |
|
| 199 | + * @return integer |
|
| 200 | 200 | */ |
| 201 | 201 | public function getReserved() |
| 202 | 202 | { |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | throw new OptimisticLockFailedException(); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - $this->updateversion++; |
|
| 104 | + $this->updateversion ++; |
|
| 105 | 105 | } |
| 106 | 106 | } |
| 107 | 107 | |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | . '|' . $this->forwardedip // } private data not known to those without access |
| 408 | 408 | . '|' . $this->useragent // } |
| 409 | 409 | . '|' . $this->email // } |
| 410 | - . '|' . $this->status; // to rudimentarily invalidate the token on status change |
|
| 410 | + . '|' . $this->status; // to rudimentarily invalidate the token on status change |
|
| 411 | 411 | |
| 412 | 412 | return hash('sha256', $data); |
| 413 | 413 | } |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | { |
| 206 | 206 | // Clean up anything we splurged after sending the page. |
| 207 | 207 | if (ob_get_level() > 0) { |
| 208 | - for ($i = ob_get_level(); $i > 0; $i--) { |
|
| 208 | + for ($i = ob_get_level(); $i > 0; $i --) { |
|
| 209 | 209 | ob_end_clean(); |
| 210 | 210 | } |
| 211 | 211 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $flag = false; |
| 68 | 68 | |
| 69 | 69 | $loopLimit = (count($items) - 1); |
| 70 | - for ($i = 0; $i < $loopLimit; $i++) { |
|
| 70 | + for ($i = 0; $i < $loopLimit; $i ++) { |
|
| 71 | 71 | // are these two items out of order? |
| 72 | 72 | if ($sortKey($items[$i]) > $sortKey($items[$i + 1])) { |
| 73 | 73 | // swap them |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | $users = User::getUsernames($userIds, $database); |
| 319 | - $users[-1] = User::getCommunity()->getUsername(); |
|
| 319 | + $users[- 1] = User::getCommunity()->getUsername(); |
|
| 320 | 320 | |
| 321 | 321 | $logData = array(); |
| 322 | 322 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $count = 0; |
| 28 | 28 | foreach ($backtrace as $line) { |
| 29 | 29 | if ($count == 0) { |
| 30 | - $count++; |
|
| 30 | + $count ++; |
|
| 31 | 31 | continue; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $output .= $line['function'] . "(...)"; |
| 41 | 41 | $output .= " [{$line['file']}#{$line['line']}\r\n"; |
| 42 | 42 | |
| 43 | - $count++; |
|
| 43 | + $count ++; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | return $output; |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | $list = array(); |
| 169 | 169 | |
| 170 | 170 | $bindecBHigh = bindec($bhigh); |
| 171 | - for ($x = bindec($blow); $x <= $bindecBHigh; $x++) { |
|
| 171 | + for ($x = bindec($blow); $x <= $bindecBHigh; $x ++) { |
|
| 172 | 172 | $list[] = long2ip($x); |
| 173 | 173 | } |
| 174 | 174 | |
@@ -321,7 +321,7 @@ |
||
| 321 | 321 | $showLinks = (!$trust || $proxyAddress == $origin) && !$proxyIsInPrivateRange; |
| 322 | 322 | $requestProxyData[$proxyIndex]['showlinks'] = $showLinks; |
| 323 | 323 | |
| 324 | - $proxyIndex++; |
|
| 324 | + $proxyIndex ++; |
|
| 325 | 325 | } |
| 326 | 326 | |
| 327 | 327 | $this->assign("requestProxyData", $requestProxyData); |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | throw new OptimisticLockFailedException(); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | - $this->updateversion++; |
|
| 117 | + $this->updateversion ++; |
|
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | |