@@ -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 |
@@ -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); |
@@ -115,7 +115,7 @@ |
||
115 | 115 | public function notificationsAction() |
116 | 116 | { |
117 | 117 | $notifications = array_map( |
118 | - function ($notification) { |
|
118 | + function($notification) { |
|
119 | 119 | /** @@var $notification NotificationData */ |
120 | 120 | return sprintf('(%s) - %s', $notification->getComponent(), Html::truncate($notification->getDescription(), 30)); |
121 | 121 | }, $this->dic |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | public function setRuntimeFilter($class, $method) |
155 | 155 | { |
156 | 156 | if (method_exists($class, $method)) { |
157 | - $this->runtimeFilter = function ($filter) use ($method) { |
|
157 | + $this->runtimeFilter = function($filter) use ($method) { |
|
158 | 158 | // new \ReflectionMethod($class, $method); |
159 | 159 | return $filter->{$method}(); |
160 | 160 | }; |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | { |
261 | 261 | if ($this->onClickArgs !== null) { |
262 | 262 | |
263 | - $args = array_map(function ($value) { |
|
263 | + $args = array_map(function($value) { |
|
264 | 264 | return (!is_numeric($value) && $value !== 'this') ? '\'' . $value . '\'' : $value; |
265 | 265 | }, $this->onClickArgs); |
266 | 266 |
@@ -185,6 +185,6 @@ |
||
185 | 185 | protected function initialize() |
186 | 186 | { |
187 | 187 | $this->acl = $this->dic->get(Acl::class); |
188 | - $this->accountHistoryService = $this->dic->get(AccountHistoryService::class);; |
|
188 | + $this->accountHistoryService = $this->dic->get(AccountHistoryService::class); ; |
|
189 | 189 | } |
190 | 190 | } |
191 | 191 | \ No newline at end of file |
@@ -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 | switch (get_class($e)) { |
65 | 65 | case UpdatedMasterPassException::class: |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $appTmp = APP_PATH . DIRECTORY_SEPARATOR . 'temp'; |
46 | 46 | $file = 'syspass.test'; |
47 | 47 | |
48 | - $checkDir = function ($dir) use ($file) { |
|
48 | + $checkDir = function($dir) use ($file) { |
|
49 | 49 | if (file_exists($dir . DIRECTORY_SEPARATOR . $file)) { |
50 | 50 | return $dir; |
51 | 51 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | if ($srcClass !== null) { |
179 | 179 | $serialized = preg_replace_callback( |
180 | 180 | '/:\d+:"\x00' . preg_quote($srcClass, '/') . '\x00(\w+)"/', |
181 | - function ($matches) { |
|
181 | + function($matches) { |
|
182 | 182 | return ':' . strlen($matches[1]) . ':"' . $matches[1] . '"'; |
183 | 183 | }, |
184 | 184 | $serialized); |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | */ |
281 | 281 | public static function itemsIdAdapter(string $itemsId, $delimiter = ','): array |
282 | 282 | { |
283 | - return array_map(function ($value) { |
|
283 | + return array_map(function($value) { |
|
284 | 284 | return intval($value); |
285 | 285 | }, explode($delimiter, $itemsId)); |
286 | 286 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | /** |
73 | 73 | * @return array |
74 | 74 | */ |
75 | - $passGen = function () use ($alphabet, $length) { |
|
75 | + $passGen = function() use ($alphabet, $length) { |
|
76 | 76 | $pass = []; |
77 | 77 | $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache |
78 | 78 |
@@ -166,7 +166,7 @@ |
||
166 | 166 | { |
167 | 167 | $path = $this->exportPath . DIRECTORY_SEPARATOR . AppInfoInterface::APP_NAME; |
168 | 168 | |
169 | - array_map(function ($file) { |
|
169 | + array_map(function($file) { |
|
170 | 170 | return @unlink($file); |
171 | 171 | }, array_merge(glob($path . '_export-*'), glob($path . '*.xml'))); |
172 | 172 | } |