@@ -47,22 +47,22 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -46,7 +46,7 @@ discard block |
||
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 |
||
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) { |
@@ -15,6 +15,6 @@ |
||
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 | }; |
@@ -200,7 +200,7 @@ |
||
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 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | ->info('Index page behavior.') |
53 | 53 | ->addDefaultsIfNotSet() |
54 | 54 | ->validate() |
55 | - ->ifTrue(static function ($v) { |
|
55 | + ->ifTrue(static function($v) { |
|
56 | 56 | $amount = 0; |
57 | 57 | $amount += isset($v['template']) ? 1 : 0; |
58 | 58 | $amount += isset($v['redirect']['crud']) ? 1 : 0; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | ->info('Index page behavior.') |
122 | 122 | ->addDefaultsIfNotSet() |
123 | 123 | ->validate() |
124 | - ->ifTrue(static function ($v) { |
|
124 | + ->ifTrue(static function($v) { |
|
125 | 125 | $amount = 0; |
126 | 126 | $amount += isset($v['template']) ? 1 : 0; |
127 | 127 | $amount += isset($v['redirect']['crud']) ? 1 : 0; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | return $this->approvedDate; |
113 | 113 | } |
114 | 114 | |
115 | - public function setApprovedDate(string|\DateTimeInterface $approvedDate): self |
|
115 | + public function setApprovedDate(string | \DateTimeInterface $approvedDate): self |
|
116 | 116 | { |
117 | 117 | if ($approvedDate instanceof \DateTimeInterface) { |
118 | 118 | $this->approvedDate = $approvedDate; |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | return $this->registrationDate; |
151 | 151 | } |
152 | 152 | |
153 | - public function setRegistrationDate(string|\DateTimeInterface $registrationDate): self |
|
153 | + public function setRegistrationDate(string | \DateTimeInterface $registrationDate): self |
|
154 | 154 | { |
155 | 155 | if ($registrationDate instanceof \DateTimeInterface) { |
156 | 156 | $this->registrationDate = $registrationDate; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | ->info('E-mail address to notify of registrations (leave blank for no notifications).') |
46 | 46 | ->defaultNull() |
47 | 47 | ->validate() |
48 | - ->ifTrue(static function ($v) { |
|
48 | + ->ifTrue(static function($v) { |
|
49 | 49 | return null !== $v && !filter_var($v, FILTER_VALIDATE_EMAIL); |
50 | 50 | }) |
51 | 51 | ->thenInvalid('Please enter a valid mail address.') |
@@ -44,7 +44,7 @@ |
||
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 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | <info>php %command.full_name% AcmeFooBundle</info> |
45 | 45 | |
46 | -EOT |
|
46 | +eot |
|
47 | 47 | ); |
48 | 48 | } |
49 | 49 |