@@ -86,7 +86,7 @@ |
||
| 86 | 86 | { |
| 87 | 87 | if (is_array($data) || is_object($data)) { |
| 88 | 88 | array_walk_recursive($data, |
| 89 | - function (&$value) { |
|
| 89 | + function(&$value) { |
|
| 90 | 90 | if (is_object($value)) { |
| 91 | 91 | foreach ($value as $property => $v) { |
| 92 | 92 | if (is_string($v) && $v !== '') { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * @return array |
| 70 | 70 | */ |
| 71 | - $passGen = function () use ($alphabet, $length) { |
|
| 71 | + $passGen = function() use ($alphabet, $length) { |
|
| 72 | 72 | $pass = []; |
| 73 | 73 | $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache |
| 74 | 74 | |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | $appTmp = APP_PATH . DIRECTORY_SEPARATOR . 'temp'; |
| 233 | 233 | $file = 'syspass.test'; |
| 234 | 234 | |
| 235 | - $checkDir = function ($dir) use ($file) { |
|
| 235 | + $checkDir = function($dir) use ($file) { |
|
| 236 | 236 | if (file_exists($dir . DIRECTORY_SEPARATOR . $file)) { |
| 237 | 237 | return $dir; |
| 238 | 238 | } |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | if ($srcClass !== null) { |
| 362 | 362 | $serializedOut = preg_replace_callback( |
| 363 | 363 | '/:\d+:"\x00' . preg_quote($srcClass, '/') . '\x00(\w+)"/', |
| 364 | - function ($matches) { |
|
| 364 | + function($matches) { |
|
| 365 | 365 | return ':' . strlen($matches[1]) . ':"' . $matches[1] . '"'; |
| 366 | 366 | }, |
| 367 | 367 | $serialized); |