Completed
Pull Request — master (#4522)
by Craig
13:45
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.
src/system/ExtensionsModule/Command/ZikulaExtensionUninstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $requiredDependents = $this->dependencyHelper->getDependentExtensions($extension);
58 58
         if (!empty($requiredDependents)) {
59 59
             if ($input->isInteractive()) {
60
-                $names = implode(', ', array_map(function (ExtensionEntity $dependent) {
60
+                $names = implode(', ', array_map(function(ExtensionEntity $dependent) {
61 61
                     return $dependent->getName();
62 62
                 }, $requiredDependents));
63 63
 
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Command/TranslationKeyToValueCommand.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 Example running against default messages directory
45 45
 
46 46
   <info>php %command.full_name%</info>
47
-EOF
47
+eof
48 48
             )
49 49
         ;
50 50
     }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Doctrine/EntityAccess.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,6 +140,6 @@
 block discarded – undo
140 140
         }
141 141
 
142 142
         $class = static::class;
143
-        throw new RuntimeException("Entity \"${class}\" does not have a setter for property \"${name}\". Please add ${setMethod}().");
143
+        throw new RuntimeException("Entity \"${class}\" does not have a setter for property \"${name}\". Please add ${setmethod}().");
144 144
     }
145 145
 }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Configurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
      */
188 188
     public function arrayDiffAssocRecursive(array $array1, array $array2): array
189 189
     {
190
-        $difference=[];
190
+        $difference = [];
191 191
         foreach ($array1 as $key => $value) {
192 192
             if (is_array($value)) {
193 193
                 if (!isset($array2[$key]) || !is_array($array2[$key])) {
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Controller/HelpController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         // rewrite local links
77 77
         $content = preg_replace_callback(
78 78
             '/\[(.*?)\]\((.*?)\)/',
79
-            function ($match) use ($router, $moduleName, $raw) {
79
+            function($match) use ($router, $moduleName, $raw) {
80 80
                 $pageName = s($match[2]);
81 81
                 if (false === mb_strpos($match[2], '.md')) {
82 82
                     return $match[0];
Please login to merge, or discard this patch.
src/system/AdminModule/Helper/AdminLinksHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     public function sortAdminModsByOrder(array $adminLinks = []): array
22 22
     {
23
-        usort($adminLinks, function (array $a, array $b) {
23
+        usort($adminLinks, function(array $a, array $b) {
24 24
             if ((int) $a['order'] === (int) $b['order']) {
25 25
                 return strcmp($a['moduleName'], $b['moduleName']);
26 26
             }
Please login to merge, or discard this patch.
src/system/RoutesModule/Helper/Base/AbstractCollectionFilterHelper.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -160,17 +160,17 @@  discard block
 block discarded – undo
160 160
                 $v = (string) $v;
161 161
                 if ('workflowState' === $k && 0 === strpos($v, '!')) {
162 162
                     $qb->andWhere('tbl.' . $k . ' != :' . $k)
163
-                       ->setParameter($k, substr($v, 1));
163
+                        ->setParameter($k, substr($v, 1));
164 164
                 } elseif (0 === strpos($v, '%')) {
165 165
                     $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
166
-                       ->setParameter($k, '%' . substr($v, 1) . '%');
166
+                        ->setParameter($k, '%' . substr($v, 1) . '%');
167 167
                 } elseif (in_array($k, ['schemes', 'methods'], true)) {
168 168
                     // multi list filter
169 169
                     $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
170
-                       ->setParameter($k, '%' . $v . '%');
170
+                        ->setParameter($k, '%' . $v . '%');
171 171
                 } else {
172 172
                     $qb->andWhere('tbl.' . $k . ' = :' . $k)
173
-                       ->setParameter($k, $v);
173
+                        ->setParameter($k, $v);
174 174
                 }
175 175
             }
176 176
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
             // per default we show approved routes only
204 204
             $onlineStates = ['approved'];
205 205
             $qb->andWhere('tbl.workflowState IN (:onlineStates)')
206
-               ->setParameter('onlineStates', $onlineStates);
206
+                ->setParameter('onlineStates', $onlineStates);
207 207
         }
208 208
     
209 209
         return $qb;
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         }
271 271
     
272 272
         $qb->andWhere('tbl.createdBy = :userId')
273
-           ->setParameter('userId', $userId);
273
+            ->setParameter('userId', $userId);
274 274
     
275 275
         return $qb;
276 276
     }
Please login to merge, or discard this patch.
src/system/BlocksModule/Listener/BlockPositionInstallerListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
             return;
59 59
         }
60 60
         $config = $bundle->getConfig();
61
-        $positions =[];
61
+        $positions = [];
62 62
         foreach ($config as $realm => $attributes) {
63 63
             if (!isset($attributes['block']) || !isset($attributes['block']['positions'])) {
64 64
                 continue;
Please login to merge, or discard this patch.