mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Fix code styling
This commit is contained in:
committed by
github-actions[bot]
parent
55078675f4
commit
03bb9cc131
@@ -78,7 +78,7 @@ public function ensureUsingDnsmasqDForConfigs(): void
|
||||
// set primary config to look for configs in /usr/local/etc/dnsmasq.d/*.conf
|
||||
$contents = $this->files->get($this->dnsmasqMasterConfigFile);
|
||||
// ensure the line we need to use is present, and uncomment it if needed
|
||||
if (false === strpos($contents, 'conf-dir='.BREW_PREFIX.'/etc/dnsmasq.d/,*.conf')) {
|
||||
if (strpos($contents, 'conf-dir='.BREW_PREFIX.'/etc/dnsmasq.d/,*.conf') === false) {
|
||||
$contents .= PHP_EOL.'conf-dir='.BREW_PREFIX.'/etc/dnsmasq.d/,*.conf'.PHP_EOL;
|
||||
}
|
||||
$contents = str_replace('#conf-dir='.BREW_PREFIX.'/etc/dnsmasq.d/,*.conf', 'conf-dir='.BREW_PREFIX.'/etc/dnsmasq.d/,*.conf', $contents);
|
||||
|
||||
@@ -35,7 +35,7 @@ public function frontControllerPath(string $sitePath, string $siteName, string $
|
||||
return $sitePath.'/web/install.php';
|
||||
}
|
||||
|
||||
if (0 === strncmp($uri, '/app_dev.php', 12)) {
|
||||
if (strncmp($uri, '/app_dev.php', 12) === 0) {
|
||||
$_SERVER['SCRIPT_NAME'] = '/app_dev.php';
|
||||
$_SERVER['SCRIPT_FILENAME'] = $sitePath.'/app_dev.php';
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ function (ConsoleCommandEvent $event) {
|
||||
false
|
||||
);
|
||||
|
||||
if (false === $helper->ask($input, $output, $question)) {
|
||||
if ($helper->ask($input, $output, $question) === false) {
|
||||
return warning('No new Valet tld was set.');
|
||||
}
|
||||
|
||||
@@ -409,7 +409,7 @@ function (ConsoleCommandEvent $event) {
|
||||
$helper = $this->getHelperSet()->get('question');
|
||||
$question = new ConfirmationQuestion('Would you like to install Expose now? [y/N] ', false);
|
||||
|
||||
if (false === $helper->ask($input, $output, $question)) {
|
||||
if ($helper->ask($input, $output, $question) === false) {
|
||||
info('Proceeding without installing Expose.');
|
||||
|
||||
return;
|
||||
@@ -425,7 +425,7 @@ function (ConsoleCommandEvent $event) {
|
||||
$helper = $this->getHelperSet()->get('question');
|
||||
$question = new ConfirmationQuestion('Would you like to install ngrok via Homebrew now? [y/N] ', false);
|
||||
|
||||
if (false === $helper->ask($input, $output, $question)) {
|
||||
if ($helper->ask($input, $output, $question) === false) {
|
||||
info('Proceeding without installing ngrok.');
|
||||
|
||||
return;
|
||||
@@ -540,7 +540,7 @@ function (ConsoleCommandEvent $event) {
|
||||
$helper = $this->getHelperSet()->get('question');
|
||||
$question = new ConfirmationQuestion('Are you sure you want to proceed? [y/N]', false);
|
||||
|
||||
if (false === $helper->ask($input, $output, $question)) {
|
||||
if ($helper->ask($input, $output, $question) === false) {
|
||||
return warning('Uninstall aborted.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user