Passed
Branch 1.0.x (7d3940)
by Koldo
02:45
created
src/Template/ComposerJson.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,12 +63,12 @@
 block discarded – undo
63 63
                 '{(^\s*+")App(\\\\\\\\":\s.*$\n)}m',
64 64
                 '{(^\s*+")App(\\\\\\\\Test\\\\\\\\":\s.*$\n)}m',
65 65
             ],
66
-            '$1' . $namespace . '$2',
66
+            '$1'.$namespace.'$2',
67 67
             $contents,
68 68
             1
69 69
         );
70 70
 
71
-        file_put_contents($installationPath . '/composer.json', $contents);
71
+        file_put_contents($installationPath.'/composer.json', $contents);
72 72
 
73 73
         $this->runInstall->exec(sprintf(
74 74
             'cd %s && rm -rf vendor/ composer.lock && composer install  --ansi',
Please login to merge, or discard this patch.
src/Template/CommonFileStructure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     protected function removeCommunityFiles(string $installationPath): void
67 67
     {
68 68
         foreach (self::COMMUNITY_FILES as $fileToDelete) {
69
-            $filePath = $installationPath . $fileToDelete;
69
+            $filePath = $installationPath.$fileToDelete;
70 70
             if (file_exists($filePath)) {
71 71
                 unlink($filePath);
72 72
             }
Please login to merge, or discard this patch.
src/Plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         );
54 54
 
55 55
         $installationPath = $this->installationPathQuestion->ask(
56
-            dirname($this->composer->getInstallationManager()->getInstallPath($package), 3) . '/'
56
+            dirname($this->composer->getInstallationManager()->getInstallPath($package), 3).'/'
57 57
         );
58 58
 
59 59
         $installer->install($installationPath);
Please login to merge, or discard this patch.
src/Question/AdditionalPackages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 if (true === $installAnotherPackage) {
44 44
                     $packageName = $this->io->ask('Add package name "vendor/package": ', null);
45 45
                     /** @var string $response */
46
-                    $response = file_get_contents(self::PACKAGIST_API . $packageName . '.json');
46
+                    $response = file_get_contents(self::PACKAGIST_API.$packageName.'.json');
47 47
                     /** @var array<string, mixed> $packageInfo */
48 48
                     $packageInfo = json_decode(
49 49
                         $response,
@@ -77,12 +77,12 @@  discard block
 block discarded – undo
77 77
                         if (preg_match('`^(?:v)?\d+\.\d+\.\d+(?:\.\d+)?$`', $packageVersion)) {
78 78
                             $prefix = '^';
79 79
                         }
80
-                        $packages[$packageName] = $prefix . $versions[$packageVersion];
80
+                        $packages[$packageName] = $prefix.$versions[$packageVersion];
81 81
                     }
82 82
                 }
83 83
             } catch (Throwable $exception) {
84 84
                 $installAnotherPackage = true;
85
-                $this->io->writeError('<error>' . $exception->getMessage() . '</error>');
85
+                $this->io->writeError('<error>'.$exception->getMessage().'</error>');
86 86
             }
87 87
         } while (true === $installAnotherPackage);
88 88
 
Please login to merge, or discard this patch.