@@ -232,7 +232,7 @@ |
||
232 | 232 | */ |
233 | 233 | public function refreshAndUpdate(AuthTokenData $itemData) |
234 | 234 | { |
235 | - $this->transactionAware(function () use ($itemData) { |
|
235 | + $this->transactionAware(function() use ($itemData) { |
|
236 | 236 | $token = $this->generateToken(); |
237 | 237 | $vault = serialize($this->getSecureData($token, $itemData->getHash())); |
238 | 238 |
@@ -98,7 +98,7 @@ |
||
98 | 98 | public function saveBatch(ConfigRequest $configRequest) |
99 | 99 | { |
100 | 100 | try { |
101 | - $this->transactionAware(function () use ($configRequest) { |
|
101 | + $this->transactionAware(function() use ($configRequest) { |
|
102 | 102 | foreach ($configRequest->getData() as $param => $value) { |
103 | 103 | $this->save($param, $value); |
104 | 104 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | ); |
60 | 60 | |
61 | 61 | try { |
62 | - $this->transactionAware(function () { |
|
62 | + $this->transactionAware(function() { |
|
63 | 63 | $customFieldService = $this->dic->get(CustomFieldService::class); |
64 | 64 | |
65 | 65 | foreach ($customFieldService->getAll() as $item) { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | ); |
59 | 59 | |
60 | 60 | try { |
61 | - $this->transactionAware(function () { |
|
61 | + $this->transactionAware(function() { |
|
62 | 62 | $publicLinkService = $this->dic->get(PublicLinkService::class); |
63 | 63 | |
64 | 64 | $queryData = new QueryData(); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | ); |
58 | 58 | |
59 | 59 | try { |
60 | - $this->transactionAware(function () { |
|
60 | + $this->transactionAware(function() { |
|
61 | 61 | foreach ($this->authtokenService->getAllBasic() as $item) { |
62 | 62 | |
63 | 63 | $itemData = clone $item; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | */ |
108 | 108 | public function resetParams() |
109 | 109 | { |
110 | - $this->params = array_filter($this->params, function ($key) { |
|
110 | + $this->params = array_filter($this->params, function($key) { |
|
111 | 111 | return strpos($key, '_') === 0; |
112 | 112 | }, ARRAY_FILTER_USE_KEY); |
113 | 113 |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | preg_match_all('/(?:for=([\w.:]+))|(?:for="\[([\w.:]+)\]")/i', |
169 | 169 | $forwarded, $matches) |
170 | 170 | ) { |
171 | - return array_filter(array_merge($matches[1], $matches[2]), function ($value) { |
|
171 | + return array_filter(array_merge($matches[1], $matches[2]), function($value) { |
|
172 | 172 | return !empty($value); |
173 | 173 | }); |
174 | 174 | } |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | return $mapper($requestValue); |
283 | 283 | } |
284 | 284 | |
285 | - return array_map(function ($value) { |
|
285 | + return array_map(function($value) { |
|
286 | 286 | return is_numeric($value) ? Filter::getInt($value) : Filter::getString($value); |
287 | 287 | }, $requestValue); |
288 | 288 | } |
@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | if ($this->debug) { |
76 | 76 | $this->mailer->SMTPDebug = 2; |
77 | - $this->mailer->Debugoutput = function ($str, $level) { |
|
77 | + $this->mailer->Debugoutput = function($str, $level) { |
|
78 | 78 | logger($str, strtoupper($level)); |
79 | 79 | }; |
80 | 80 | } |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | */ |
254 | 254 | public function checkMandatory() |
255 | 255 | { |
256 | - $missing = array_filter(self::EXTENSIONS, function ($v, $k) { |
|
256 | + $missing = array_filter(self::EXTENSIONS, function($v, $k) { |
|
257 | 257 | return $v === true && !in_array($k, $this->available); |
258 | 258 | }, ARRAY_FILTER_USE_BOTH); |
259 | 259 | |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | */ |
272 | 272 | public function getMissing() |
273 | 273 | { |
274 | - return array_filter(self::EXTENSIONS, function ($k) { |
|
274 | + return array_filter(self::EXTENSIONS, function($k) { |
|
275 | 275 | return !in_array($k, $this->available); |
276 | 276 | }, ARRAY_FILTER_USE_KEY); |
277 | 277 | } |