@@ -226,7 +226,7 @@ |
||
| 226 | 226 | $this->checkLoggedInSession( |
| 227 | 227 | $this->session, |
| 228 | 228 | $this->request, |
| 229 | - function ($redirect) { |
|
| 229 | + function($redirect) { |
|
| 230 | 230 | $this->router->response() |
| 231 | 231 | ->redirect($redirect) |
| 232 | 232 | ->send(true); |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | |
| 61 | 61 | $this->checkForwarded(); |
| 62 | 62 | |
| 63 | - $redirector = function ($route) use ($from) { |
|
| 63 | + $redirector = function($route) use ($from) { |
|
| 64 | 64 | $uri = new Uri('index.php'); |
| 65 | 65 | $uri->addParam('r', $route); |
| 66 | 66 | |
@@ -57,9 +57,9 @@ |
||
| 57 | 57 | * @param bool $render |
| 58 | 58 | */ |
| 59 | 59 | public static function showExceptionInView(Template $view, |
| 60 | - \Exception $e, |
|
| 61 | - $replace = null, |
|
| 62 | - $render = true) |
|
| 60 | + \Exception $e, |
|
| 61 | + $replace = null, |
|
| 62 | + $render = true) |
|
| 63 | 63 | { |
| 64 | 64 | if ($replace === null) { |
| 65 | 65 | $view->resetTemplates(); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * @return array |
| 66 | 66 | */ |
| 67 | - $passGen = function () use ($alphabet, $length) { |
|
| 67 | + $passGen = function() use ($alphabet, $length) { |
|
| 68 | 68 | $pass = []; |
| 69 | 69 | $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache |
| 70 | 70 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $appTmp = APP_PATH . DIRECTORY_SEPARATOR . 'temp'; |
| 133 | 133 | $file = 'syspass.test'; |
| 134 | 134 | |
| 135 | - $checkDir = function ($dir) use ($file) { |
|
| 135 | + $checkDir = function($dir) use ($file) { |
|
| 136 | 136 | if (file_exists($dir . DIRECTORY_SEPARATOR . $file)) { |
| 137 | 137 | return $dir; |
| 138 | 138 | } |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | if ($srcClass !== null) { |
| 243 | 243 | $serialized = preg_replace_callback( |
| 244 | 244 | '/:\d+:"\x00' . preg_quote($srcClass, '/') . '\x00(\w+)"/', |
| 245 | - function ($matches) { |
|
| 245 | + function($matches) { |
|
| 246 | 246 | return ':' . strlen($matches[1]) . ':"' . $matches[1] . '"'; |
| 247 | 247 | }, |
| 248 | 248 | $serialized); |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | */ |
| 345 | 345 | public static function itemsIdAdapter(string $itemsId, $delimiter = ','): array |
| 346 | 346 | { |
| 347 | - return array_map(function ($value) { |
|
| 347 | + return array_map(function($value) { |
|
| 348 | 348 | return intval($value); |
| 349 | 349 | }, explode($delimiter, $itemsId)); |
| 350 | 350 | } |