mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
use Symfony\Component\Console\Question\ConfirmationQuestion;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
use Valet\Drivers\ValetDriver;
|
||||
|
||||
use function Valet\info;
|
||||
use function Valet\output;
|
||||
use function Valet\table;
|
||||
@@ -43,7 +42,6 @@
|
||||
|
||||
$app = new Application('Laravel Valet', $version);
|
||||
|
||||
|
||||
$dispatcher = new EventDispatcher();
|
||||
$app->setDispatcher($dispatcher);
|
||||
|
||||
|
||||
@@ -23,6 +23,6 @@ public function test_it_gets_front_controller()
|
||||
$driver = new CakeValetDriver();
|
||||
|
||||
$projectPath = $this->projectDir('cake');
|
||||
$this->assertEquals($projectPath . '/webroot/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
$this->assertEquals($projectPath.'/webroot/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,6 @@ public function test_it_gets_front_controller()
|
||||
$driver = new ContaoValetDriver();
|
||||
|
||||
$projectPath = $this->projectDir('contao');
|
||||
$this->assertEquals($projectPath . '/web/app.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
$this->assertEquals($projectPath.'/web/app.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@ public function test_it_gets_front_controller()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$projectPath = $this->projectDir('craft');
|
||||
$this->assertEquals($projectPath . '/public/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
$this->assertEquals($projectPath.'/public/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ public function test_it_doesnt_serve_non_drupal_projects()
|
||||
{
|
||||
$driver = new DrupalValetDriver();
|
||||
|
||||
$this->assertFalse(!! $driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
|
||||
$this->assertFalse((bool) $driver->serves($this->projectDir('public-with-index-non-laravel'), 'my-site', '/'));
|
||||
}
|
||||
|
||||
public function test_it_gets_front_controller()
|
||||
@@ -25,6 +25,6 @@ public function test_it_gets_front_controller()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$projectPath = $this->projectDir('drupal');
|
||||
$this->assertEquals($projectPath . '/public/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
$this->assertEquals($projectPath.'/public/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@ public function test_it_gets_front_controller()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$projectPath = $this->projectDir('kirby');
|
||||
$this->assertEquals($projectPath . '/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
$this->assertEquals($projectPath.'/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,6 @@ public function test_it_gets_front_controller()
|
||||
$driver = new Magento2ValetDriver();
|
||||
|
||||
$projectPath = $this->projectDir('magento2');
|
||||
$this->assertEquals($projectPath . '/pub/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
$this->assertEquals($projectPath.'/pub/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,6 @@ public function test_it_gets_front_controller()
|
||||
$driver = new NeosValetDriver();
|
||||
|
||||
$projectPath = $this->projectDir('neos');
|
||||
$this->assertEquals($projectPath . '/Web/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
$this->assertEquals($projectPath.'/Web/index.php', $driver->frontControllerPath($projectPath, 'my-site', '/'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user