Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .vortex/installer/src/Prompts/Handlers/Tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,7 @@ public static function getToolDefinitions(string $filter = 'all'): array {

self::PHPMD => [
'title' => 'PHP Mess Detector',
'present' => fn(): mixed => File::contains($this->dstDir . '/composer.json', 'phpmd/phpmd') ||
File::exists($this->dstDir . '/phpmd.xml'),
'present' => fn(): mixed => File::contains($this->dstDir . '/composer.json', 'phpmd/phpmd'),
'composer.json' => function (JsonManipulator $cj): void {
$cj->removeSubNode('require-dev', 'phpmd/phpmd');
},
Expand Down
3 changes: 2 additions & 1 deletion .vortex/installer/src/Prompts/Handlers/Webroot.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,13 @@ public function process(): void {
sprintf('%s/', $webroot) => $v . '/',
sprintf('%s\/', $webroot) => $v . '\/',
sprintf(': %s', $webroot) => ': ' . $v,
sprintf('=%s', $webroot) => '=' . $v,
sprintf('!%s', $webroot) => '!' . $v,
sprintf('/\/%s\//', $webroot) => '/' . $v . '/',
sprintf('/\'\/%s\'/', $webroot) => "'/" . $v . "'",
]);

File::replaceContentAsync(fn(string $content): string => preg_replace('/=' . preg_quote($webroot, '/') . '\b/', '=' . $v, $content) ?? $content);

rename($t . DIRECTORY_SEPARATOR . $webroot, $t . DIRECTORY_SEPARATOR . $v);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@

################################################################################
# NOTIFICATIONS #
@@ -202,7 +207,7 @@
# An email address to send notifications from.
#
# Applies to email notifications.
-VORTEX_NOTIFY_EMAIL_FROM=webmaster@star-wars.com
+VORTEX_NOTIFY_EMAIL_FROM=docrootmaster@star-wars.com

# Email address(es) to send notifications to.
#
@@ -212,17 +217,3 @@
# with optional names in the format "email|name".
# Example: "to1@example.com|Jane Doe, to2@example.com|John Doe"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@

################################################################################
# NOTIFICATIONS #
@@ -202,7 +207,7 @@
# An email address to send notifications from.
#
# Applies to email notifications.
-VORTEX_NOTIFY_EMAIL_FROM=webmaster@star-wars.com
+VORTEX_NOTIFY_EMAIL_FROM=docrootmaster@star-wars.com

# Email address(es) to send notifications to.
#
@@ -212,17 +217,3 @@
# with optional names in the format "email|name".
# Example: "to1@example.com|Jane Doe, to2@example.com|John Doe"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,6 @@ function (AbstractHandlerDiscoveryTestCase $test, Config $config): void {
$test->stubComposerJsonDependencies(['phpmd/phpmd' => '*'], TRUE);
},
];
yield 'tools - discovery - phpmd, alt' => [
[],
[Tools::id() => [Tools::PHPMD]] + $expected_installed,
function (AbstractHandlerDiscoveryTestCase $test, Config $config): void {
$test->stubVortexProject($config);
File::dump(static::$sut . '/phpmd.xml');
},
];
yield 'tools - discovery - phpunit' => [
[],
[Tools::id() => [Tools::PHPUNIT]] + $expected_installed,
Expand Down
Loading