Test Setup Failed
Push — dependabot/composer/thomaspark... ( 068808 )
by
unknown
07:31
created
src/system/UsersModule/Controller/FileIOController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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]) {
Please login to merge, or discard this patch.
src/system/UsersModule/Form/Type/DeleteType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/system/SecurityCenterModule/Api/HtmlFilterApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
src/system/SettingsModule/DependencyInjection/ZikulaSettingsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Twig/Runtime/CoreRuntime.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/system/ThemeModule/EventListener/AddWebPackAssetsListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,13 +84,13 @@
 block discarded – undo
84 84
         $webPackCssFiles = $this->lookupCollection->getEntrypointLookup($this->entryPoint)
85 85
             ->getCssFiles($this->entryName);
86 86
         $cssFiles = array_flip($webPackCssFiles);
87
-        array_walk($cssFiles, function (&$weight) { $weight += AssetBag::WEIGHT_WEBPACK_OFFSET; });
87
+        array_walk($cssFiles, function(&$weight) { $weight += AssetBag::WEIGHT_WEBPACK_OFFSET; });
88 88
         $this->cssAssetBag->add($cssFiles);
89 89
 
90 90
         $webPackJsFiles = $this->lookupCollection->getEntrypointLookup($this->entryPoint)
91 91
             ->getJavaScriptFiles($this->entryName);
92 92
         $jsFiles = array_flip($webPackJsFiles);
93
-        array_walk($jsFiles, function (&$weight) { $weight += AssetBag::WEIGHT_WEBPACK_OFFSET; });
93
+        array_walk($jsFiles, function(&$weight) { $weight += AssetBag::WEIGHT_WEBPACK_OFFSET; });
94 94
         $this->jsAssetBag->add($jsFiles);
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
src/Zikula/CoreInstallerBundle/Helper/ParameterHelper.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,8 @@
 block discarded – undo
170 170
                 continue;
171 171
             }
172 172
             $C = u($contents);
173
-            if (!$C->containsAny($publicPath)) { // check if replaced previously
173
+            if (!$C->containsAny($publicPath)) {
174
+// check if replaced previously
174 175
                 $success = file_put_contents($this->projectDir . $path, $C->replaceMatches($search[0], $search[1])->toString());
175 176
                 if (false === $success) {
176 177
                     throw new CannotWriteFileException(sprintf('Could not write to path %s, please check your file permissions.', $path));
Please login to merge, or discard this patch.
src/system/CategoriesModule/Tests/Api/CategoryPermissionApiTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,8 @@
 block discarded – undo
103 103
     {
104 104
         $api = $this->getMockBuilder(PermissionApiInterface::class)
105 105
             ->getMock();
106
-        $api->method('hasPermission')->willReturnCallback(static function ($component = null, $instance = null, $level = ACCESS_NONE, $user = null) {
107
-            list(/*$regId*/ , $catId) = explode('::', $instance);
106
+        $api->method('hasPermission')->willReturnCallback(static function($component = null, $instance = null, $level = ACCESS_NONE, $user = null) {
107
+            list(/*$regId*/, $catId) = explode('::', $instance);
108 108
 
109 109
             return 0 === $catId % 2;
110 110
         });
Please login to merge, or discard this patch.
src/system/BlocksModule/BlocksModuleInstaller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
         foreach ($blocks as $block) {
108 108
             $bKey = $block['bkey'];
109 109
             if (mb_strpos($bKey, ':')) {
110
-                [/*$moduleName*/ , $bKey] = explode(':', $bKey);
110
+                [/*$moduleName*/, $bKey] = explode(':', $bKey);
111 111
             }
112 112
             $this->entityManager->getConnection()->executeUpdate('UPDATE blocks SET bKey=? WHERE bid=?', [trim($bKey, '\\'), $block['bid']]);
113 113
         }
Please login to merge, or discard this patch.