Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Dec 21, 2023
1 parent 1862b01 commit 598b2f2
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cli/Valet/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function removePath(string $path)
{
if ($path == $this->valetHomePath('Sites')) {
info("Cannot remove this directory because this is where Valet stores its site definitions.\nRun [valet paths] for a list of parked paths.");
exit();
exit;
}

$this->write(tap($this->read(), function (&$config) use ($path) {
Expand Down
4 changes: 2 additions & 2 deletions cli/drivers/SymfonyValetDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class SymfonyValetDriver extends ValetDriver
public function serves($sitePath, $siteName, $uri)
{
return (file_exists($sitePath.'/web/app_dev.php') || file_exists($sitePath.'/web/app.php')) &&
(file_exists($sitePath.'/app/AppKernel.php')) || (file_exists($sitePath.'/public/index.php')) &&
(file_exists($sitePath.'/src/Kernel.php'));
file_exists($sitePath.'/app/AppKernel.php') || file_exists($sitePath.'/public/index.php') &&
file_exists($sitePath.'/src/Kernel.php');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions cli/drivers/Typo3ValetDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ private function handleRedirectBackendShorthandUris($uri)
{
if (rtrim($uri, '/') === '/typo3/install') {
header('Location: /typo3/sysext/install/Start/Install.php');
exit();
exit;
}

if ($uri === '/typo3') {
header('Location: /typo3/');
exit();
exit;
}
}

Expand Down
1 change: 1 addition & 0 deletions cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Illuminate\Container\Container;
use Silly\Application;
use Symfony\Component\Console\Question\ConfirmationQuestion;

use function Valet\info;
use function Valet\output;
use function Valet\table;
Expand Down
1 change: 1 addition & 0 deletions tests/AcrylicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Valet\Acrylic;
use Valet\CommandLine;
use Valet\Filesystem;

use function Valet\resolve;

class AcrylicTest extends TestCase
Expand Down
3 changes: 2 additions & 1 deletion tests/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

use Valet\Configuration;
use Valet\Filesystem;
use Valet\Valet;

use function Valet\resolve;
use function Valet\user;
use Valet\Valet;

class ConfigurationTest extends TestCase
{
Expand Down
3 changes: 2 additions & 1 deletion tests/NginxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
use Valet\Configuration;
use Valet\Filesystem;
use Valet\Nginx;
use function Valet\resolve;
use Valet\Site;
use Valet\Valet;
use Valet\WinSW;
use Valet\WinSwFactory;

use function Valet\resolve;

class NginxTest extends TestCase
{
/** @test */
Expand Down
3 changes: 2 additions & 1 deletion tests/PhpCgiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
use Symfony\Component\Process\PhpExecutableFinder;
use Valet\Configuration;
use Valet\PhpCgi;
use function Valet\resolve;
use Valet\WinSW;
use Valet\WinSwFactory;

use function Valet\resolve;

class PhpCgiTest extends TestCase
{
/** @test */
Expand Down
3 changes: 2 additions & 1 deletion tests/SiteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
use Valet\CommandLine;
use Valet\Configuration;
use Valet\Filesystem;
use function Valet\resolve;
use Valet\Site;

use function Valet\resolve;
use function Valet\swap;
use function Valet\user;

Expand Down
3 changes: 2 additions & 1 deletion tests/ValetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
namespace Tests;

use Valet\CommandLine;
use function Valet\resolve;
use Valet\Valet;

use function Valet\resolve;

class ValetTest extends TestCase
{
/** @test */
Expand Down
3 changes: 2 additions & 1 deletion tests/WinSWTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

use Valet\CommandLine;
use Valet\Filesystem;
use function Valet\resolve;
use Valet\Valet;
use Valet\WinSW;
use Valet\WinSwFactory;

use function Valet\resolve;

class WinSWTest extends TestCase
{
/** @test */
Expand Down

0 comments on commit 598b2f2

Please sign in to comment.