Passed
Push — renovate/patch-composer-(patch... ( 2a6412...9c1f9e )
by
unknown
07:38 queued 40s
created
build/BuildPackageCommand.php 1 patch
Upper-Lower-Casing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -47,22 +47,22 @@  discard block
 block discarded – undo
47 47
 
48 48
         $pwd = getcwd();
49 49
         if (is_dir($buildDir)) {
50
-            system("rm -rf ${buildDir}");
50
+            system("rm -rf ${builddir}");
51 51
         }
52 52
 
53 53
         // build env
54 54
         $filesystem->mkdir($buildDir, 0755);
55 55
         $progress->advance();
56 56
 
57
-        $filesystem->mirror($sourceDir, "${buildDir}/${name}");
57
+        $filesystem->mirror($sourceDir, "${builddir}/${name}");
58 58
         $progress->advance();
59 59
 
60
-        PurgeVendorsCommand::cleanVendors("${buildDir}/${name}/vendor", $progress);
60
+        PurgeVendorsCommand::cleanVendors("${builddir}/${name}/vendor", $progress);
61 61
 
62 62
         $writableArray = [
63
-            "${buildDir}/${name}/var/cache",
64
-            "${buildDir}/${name}/var/log",
65
-            "${buildDir}/${name}/public/uploads",
63
+            "${builddir}/${name}/var/cache",
64
+            "${builddir}/${name}/var/log",
65
+            "${builddir}/${name}/public/uploads",
66 66
         ];
67 67
         $filesystem->chmod($writableArray, 0777);
68 68
         $progress->advance();
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $zip = new ZipArchive();
86 86
         $fileName = "${name}.zip";
87 87
         if (true !== $zip->open($fileName, ZipArchive::CREATE)) {
88
-            $output->writeln("<error>Error creating ${fileName}</error>");
88
+            $output->writeln("<error>Error creating ${filename}</error>");
89 89
         }
90 90
 
91 91
         foreach ($allFiles as $file) {
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
 
99 99
         // build tar
100 100
         $fileName = "${name}.tar";
101
-        system("tar cp ${name} > ${fileName}");
101
+        system("tar cp ${name} > ${filename}");
102 102
         $progress->advance();
103
-        system("gzip ${fileName}");
103
+        system("gzip ${filename}");
104 104
         $progress->advance();
105 105
 
106 106
         // checksums
@@ -116,17 +116,17 @@  discard block
 block discarded – undo
116 116
 -----------------sha1sums-----------------
117 117
 ${zipSha1}  ${name}.zip
118 118
 ${tarSha1}  ${name}.tar.gz
119
-CHECKSUM;
119
+checksum;
120 120
         file_put_contents("${name}-checksum.txt", $checksum);
121 121
         $progress->advance();
122 122
 
123 123
         // cleanup
124
-        system("rm -rf ${buildDir} ${name}");
124
+        system("rm -rf ${builddir} ${name}");
125 125
         chdir($pwd);
126 126
         $progress->advance();
127 127
         $progress->finish();
128 128
 
129
-        $output->writeln("<info>Artifacts built in ${buildDir}/ folder</info>");
129
+        $output->writeln("<info>Artifacts built in ${builddir}/ folder</info>");
130 130
 
131 131
         return 0;
132 132
     }
Please login to merge, or discard this patch.
build/GenerateVendorDocCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             'symfony-messenger-bridge' => 'Symfony Messenger Bridge',
47 47
         ];
48 48
         $types = array_keys($typeOrder);
49
-        usort($packages, function ($a, $b) use ($types) {
49
+        usort($packages, function($a, $b) use ($types) {
50 50
             $typeOrder = array_search($a['type'], $types) - array_search($b['type'], $types);
51 51
             if (0 !== $typeOrder) {
52 52
                 return $typeOrder;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             }
99 99
             $tmp[] = $author['name'];
100 100
         }
101
-        usort($authors, function ($a, $b) {
101
+        usort($authors, function($a, $b) {
102 102
             return strcmp($a['name'], $b['name']);
103 103
         });
104 104
         foreach ($authors as $author) {
Please login to merge, or discard this patch.
src/system/CategoriesBundle/Controller/CategoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         return [
79 79
             'decorate' => true,
80 80
             'html' => true,
81
-            'childOpen' => function ($node) {
81
+            'childOpen' => function($node) {
82 82
                 $jsTreeData = [];
83 83
                 $jsTreeData['disabled'] = 'A' !== $node['status'];
84 84
                 $jsTreeData['type'] = $node['leaf'] ? 'leaf' : 'default';
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
                 return '<li ' . $jsTreeData . 'class="jstree-open" id="' . $this->domTreeNodePrefix . $node['id'] . '">';
88 88
             },
89
-            'nodeDecorator' => function ($node) use ($locale) {
89
+            'nodeDecorator' => function($node) use ($locale) {
90 90
                 $displayName = $node['displayName'][$locale] ?? $node['name'];
91 91
                 $title = ' title="' . $this->createTitleAttribute($node, $displayName, $locale) . '"';
92 92
                 $classes = [];
Please login to merge, or discard this patch.
src/system/CategoriesBundle/Repository/CategoryRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
 
53 53
         if ($parentId > 0) {
54 54
             $qb->andWhere('c.parent = :parentid')
55
-               ->setParameter('parentid', $parentId);
55
+                ->setParameter('parentid', $parentId);
56 56
         }
57 57
 
58 58
         if (null !== $excludedId && $excludedId > 0) {
59 59
             $qb->andWhere('c.id != :id')
60
-               ->setParameter('id', $excludedId);
60
+                ->setParameter('id', $excludedId);
61 61
         }
62 62
 
63 63
         $query = $qb->getQuery();
Please login to merge, or discard this patch.
src/system/CategoriesBundle/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/CategoriesBundle/Validator/Constraints/UniqueNameForPosition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 #[\Attribute]
19 19
 class UniqueNameForPosition extends Constraint
20 20
 {
21
-    public function getTargets(): string|array
21
+    public function getTargets(): string | array
22 22
     {
23 23
         return self::CLASS_CONSTRAINT;
24 24
     }
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
 require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
17 17
 
18
-return function (array $context) {
18
+return function(array $context) {
19 19
     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
20 20
 };
Please login to merge, or discard this patch.
src/system/UsersBundle/Helper/MailHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
         if ($this->mailLoggingEnabled) {
201 201
             $this->mailLogger->info(sprintf('Email sent to %s', 'multiple users'), [
202 202
                 'in' => __METHOD__,
203
-                'users' => array_reduce($users, function ($result, User $user) { return $result . $user->getEmail() . ','; }, 'emails: ')
203
+                'users' => array_reduce($users, function($result, User $user) { return $result . $user->getEmail() . ','; }, 'emails: ')
204 204
             ]);
205 205
         }
206 206
 
Please login to merge, or discard this patch.
src/system/CategoriesBundle/Form/Type/CategoriesType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
         /** @var CategoryRegistry[] $registries */
51 51
         foreach ($registries as $registry) {
52 52
             $baseCategory = $registry->getCategory();
53
-            $queryBuilderClosure = static function (CategoryRepositoryInterface $repo) use ($baseCategory, $options) {
53
+            $queryBuilderClosure = static function(CategoryRepositoryInterface $repo) use ($baseCategory, $options) {
54 54
                 return $repo->getChildrenQueryBuilder($baseCategory, $options['direct']);
55 55
             };
56
-            $choiceLabelClosure = static function (Category $category) use ($baseCategory, $locale) {
56
+            $choiceLabelClosure = static function(Category $category) use ($baseCategory, $locale) {
57 57
                 $indent = str_repeat('--', $category->getLvl() - $baseCategory->getLvl() - 1);
58 58
 
59 59
                 $categoryName = $category['displayName'][$locale] ?? $category['displayName']['en'];
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $resolver->setAllowedTypes('em', [ObjectManager::class, 'null']);
122 122
         $resolver->setAllowedTypes('showRegistryLabels', 'bool');
123 123
 
124
-        $resolver->addAllowedValues('entityCategoryClass', static function ($value) {
124
+        $resolver->addAllowedValues('entityCategoryClass', static function($value) {
125 125
             return is_subclass_of($value, AbstractCategoryAssignment::class);
126 126
         });
127 127
     }
Please login to merge, or discard this patch.