@@ -101,7 +101,7 @@ |
||
101 | 101 | if (!file_exists($filename)) { |
102 | 102 | $crypt = new Crypt($this->config); |
103 | 103 | $accounts = $this->config->getSettings(Config::_ACCOUNTS); |
104 | - $accounts = array_map(function ($acc) use ($crypt) { |
|
104 | + $accounts = array_map(function($acc) use ($crypt) { |
|
105 | 105 | $acc[self::_PASSWORD] = $crypt->encrypt( |
106 | 106 | $acc[self::_PASSWORD], |
107 | 107 | true |
@@ -41,14 +41,14 @@ |
||
41 | 41 | $path = dirname(dirname($this->request->getFilename())); |
42 | 42 | $scripts = array_filter( |
43 | 43 | $status[self::_SCRIPTS], |
44 | - function ($val) use ($path) { |
|
44 | + function($val) use ($path) { |
|
45 | 45 | return false !== strpos($val['full_path'], $path); |
46 | 46 | } |
47 | 47 | ); |
48 | 48 | $status[self::_SCRIPTS] = array_values($scripts); |
49 | 49 | $bytes = array_reduce( |
50 | 50 | $status[self::_SCRIPTS], |
51 | - function ($stack, $val) { |
|
51 | + function($stack, $val) { |
|
52 | 52 | return $stack + (int) $val['memory_consumption']; |
53 | 53 | } |
54 | 54 | ); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | final class Restful extends AbstractApi implements IApi, IRestful |
21 | 21 | { |
22 | 22 | |
23 | - const _ID='id'; |
|
23 | + const _ID = 'id'; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * core db instance |
@@ -77,7 +77,7 @@ |
||
77 | 77 | $fields = [ |
78 | 78 | 'id', 'name', 'email', 'password', 'status', 'role' |
79 | 79 | ]; |
80 | - $insertDatas = array_map(function ($values) use ($fields) { |
|
80 | + $insertDatas = array_map(function($values) use ($fields) { |
|
81 | 81 | return array_combine($fields, $values); |
82 | 82 | }, $csvArray); |
83 | 83 | foreach ($insertDatas as $data) { |