@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $lifetimeInSeconds, |
| 38 | 38 | $kernel->getCacheDir() . '/assets/' . $type |
| 39 | 39 | ); |
| 40 | - $cachedFile = $cacheService->get($key, function () { |
|
| 40 | + $cachedFile = $cacheService->get($key, function() { |
|
| 41 | 41 | throw new \Exception('Combined Assets not found'); |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | $this->kernel->getCacheDir() . '/assets/' . $type |
| 116 | 116 | ); |
| 117 | 117 | $key = md5(serialize($assets)) . (int) $this->minify . (int) $this->compress . $this->lifetime . '.combined.' . $type; |
| 118 | - $cacheService->get($key, function () use ($cachedFiles, $type) { |
|
| 118 | + $cacheService->get($key, function() use ($cachedFiles, $type) { |
|
| 119 | 119 | $data = []; |
| 120 | 120 | foreach ($cachedFiles as $k => $file) { |
| 121 | 121 | $this->readFile($data, $file, $type); |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | if ($form->get('download')->isClicked()) { |
| 48 | 48 | $data = $form->getData(); |
| 49 | 49 | $response = new StreamedResponse(); |
| 50 | - $response->setCallback(function () use ($data, $userRepository) { |
|
| 50 | + $response->setCallback(function() use ($data, $userRepository) { |
|
| 51 | 51 | $fields = ['uid', 'uname', 'activated', 'email', 'registrationDate', 'lastLogin', 'groups']; |
| 52 | 52 | foreach ($fields as $k => $field) { |
| 53 | 53 | if (isset($data[$field]) && !$data[$field]) { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | $builder |
| 29 | 29 | ->add('users', EntityType::class, [ |
| 30 | - 'choice_attr' => static function () { |
|
| 30 | + 'choice_attr' => static function() { |
|
| 31 | 31 | return ['class' => 'user-checkboxes']; |
| 32 | 32 | }, |
| 33 | 33 | 'class' => UserEntity::class, |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | // Fix the HTML that we want |
| 87 | 87 | $value = preg_replace_callback( |
| 88 | 88 | '#\022([^\024]*)\024#', |
| 89 | - static function ($matches) { |
|
| 89 | + static function($matches) { |
|
| 90 | 90 | if (!$matches) { |
| 91 | 91 | return ''; |
| 92 | 92 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | // do not set in a distribution package when core components are in "vendor/" |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - $bundles = array_filter($container->getParameter('kernel.bundles'), function ($bundleClassName, $name) use ($container) { |
|
| 81 | + $bundles = array_filter($container->getParameter('kernel.bundles'), function($bundleClassName, $name) use ($container) { |
|
| 82 | 82 | if (ZikulaKernel::isCoreExtension($name)) { |
| 83 | 83 | return false; |
| 84 | 84 | } |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | { |
| 72 | 72 | $string = preg_replace_callback( |
| 73 | 73 | '/(.)@(.)/s', |
| 74 | - static function ($m) { |
|
| 74 | + static function($m) { |
|
| 75 | 75 | return '&#' . sprintf('%03d', ord($m[1])) . ';@&#' . sprintf('%03d', ord($m[2])) . ';'; |
| 76 | 76 | }, |
| 77 | 77 | $string |