@@ -38,7 +38,7 @@ |
||
38 | 38 | ) { |
39 | 39 | $settingsMap = $this->generalSettingsManager->getSettingsMap(); |
40 | 40 | $cookiesServiceNames = array_map( |
41 | - function ($setting) { |
|
41 | + function($setting) { |
|
42 | 42 | return $setting['cookie']; |
43 | 43 | }, |
44 | 44 | $settingsMap |
@@ -99,7 +99,7 @@ |
||
99 | 99 | |
100 | 100 | // Try to change value through change setting action. |
101 | 101 | $data[0] = ['foo_setting_1', false]; |
102 | - $data[1] = ['foo_setting_non_existent', false ]; |
|
102 | + $data[1] = ['foo_setting_non_existent', false]; |
|
103 | 103 | |
104 | 104 | foreach ($data as $case) { |
105 | 105 | $client->request('get', '/admin/setting/change/' . base64_encode($case[0])); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | // Case #0. No profiles selected. |
29 | 29 | $cases[] = [[], []]; |
30 | 30 | // Case #1. One profile selected. |
31 | - $cases[] = [ ['ongr_settings_profile_foo-2e-com' => true], ['foo.com'] ]; |
|
31 | + $cases[] = [['ongr_settings_profile_foo-2e-com' => true], ['foo.com']]; |
|
32 | 32 | // Case #2. One profile unselected. |
33 | 33 | $cases[] = [ |
34 | 34 | ['ongr_settings_profile_foo-2e-com' => false, 'ongr_settings_profile_bar-2e-com' => true], |
@@ -66,7 +66,7 @@ |
||
66 | 66 | ->with( |
67 | 67 | 'extractSettings', |
68 | 68 | $this->callback( |
69 | - function ($value) use ($expectedMethod) { |
|
69 | + function($value) use ($expectedMethod) { |
|
70 | 70 | return $value[1] == $expectedMethod; |
71 | 71 | } |
72 | 72 | ) |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | $string = preg_replace_callback( |
37 | 37 | '/[^a-zA-Z0-9_]/u', |
38 | - function ($matches) { |
|
38 | + function($matches) { |
|
39 | 39 | return '-' . bin2hex($matches[0]) . '-'; |
40 | 40 | }, |
41 | 41 | $string |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | $string = preg_replace_callback( |
61 | 61 | '/-([0-9a-f]+)-/u', |
62 | - function ($matches) { |
|
62 | + function($matches) { |
|
63 | 63 | return hex2bin($matches[1]); |
64 | 64 | }, |
65 | 65 | $string |
@@ -60,7 +60,7 @@ |
||
60 | 60 | // elements comes out reversed compared to original. |
61 | 61 | uasort( |
62 | 62 | $providers, |
63 | - function ($a, $b) { |
|
63 | + function($a, $b) { |
|
64 | 64 | if ($a['priority'] == $b['priority']) { |
65 | 65 | return 0; |
66 | 66 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | public function getFilters() |
27 | 27 | { |
28 | 28 | return [ |
29 | - 'base64Encode' => new \Twig_SimpleFilter('base64Encode', [$this,'base64EncodeFilter']) |
|
29 | + 'base64Encode' => new \Twig_SimpleFilter('base64Encode', [$this, 'base64EncodeFilter']) |
|
30 | 30 | ]; |
31 | 31 | } |
32 | 32 |