diff --git a/cli/Valet/Ngrok.php b/cli/Valet/Ngrok.php index bb90bff8f..6c3dee75f 100644 --- a/cli/Valet/Ngrok.php +++ b/cli/Valet/Ngrok.php @@ -39,7 +39,7 @@ public function currentTunnelUrl() public function findHttpTunnelUrl(array $tunnels) { foreach ($tunnels as $tunnel) { - if ($tunnel->proto == 'http') { + if ($tunnel->proto === 'http') { return $tunnel->public_url; } } diff --git a/cli/Valet/Site.php b/cli/Valet/Site.php index 6ff5b5d47..002fc7aa7 100644 --- a/cli/Valet/Site.php +++ b/cli/Valet/Site.php @@ -31,7 +31,7 @@ function __construct(Configuration $config, CommandLine $cli, Filesystem $files) function host($path) { foreach ($this->files->scandir($this->sitesPath()) as $link) { - if ($resolved = realpath($this->sitesPath().'/'.$link) == $path) { + if ($resolved = realpath($this->sitesPath().'/'.$link) === $path) { return $link; } } diff --git a/cli/drivers/ContaoValetDriver.php b/cli/drivers/ContaoValetDriver.php index 56393c27a..07c5c86ff 100644 --- a/cli/drivers/ContaoValetDriver.php +++ b/cli/drivers/ContaoValetDriver.php @@ -42,7 +42,7 @@ public function isStaticFile($sitePath, $siteName, $uri) */ public function frontControllerPath($sitePath, $siteName, $uri) { - if ($uri == '/install.php') { + if ($uri === '/install.php') { return $sitePath.'/web/install.php'; } diff --git a/cli/includes/compatibility.php b/cli/includes/compatibility.php index 79b0e44ab..48ff44e24 100644 --- a/cli/includes/compatibility.php +++ b/cli/includes/compatibility.php @@ -5,7 +5,7 @@ */ $inTestingEnvironment = strpos($_SERVER['SCRIPT_NAME'], 'phpunit') !== false; -if (PHP_OS != 'Darwin' && ! $inTestingEnvironment) { +if (PHP_OS !== 'Darwin' && ! $inTestingEnvironment) { echo 'Valet only supports the Mac operating system.'.PHP_EOL; exit(1); @@ -17,7 +17,7 @@ exit(1); } -if (exec('which brew') != '/usr/local/bin/brew' && ! $inTestingEnvironment) { +if (exec('which brew') !== '/usr/local/bin/brew' && ! $inTestingEnvironment) { echo 'Valet requires Brew to be installed on your Mac.'; exit(1); diff --git a/cli/includes/helpers.php b/cli/includes/helpers.php index c91ce9ea8..cef92ac9e 100644 --- a/cli/includes/helpers.php +++ b/cli/includes/helpers.php @@ -38,7 +38,7 @@ function warning($output) */ function output($output) { - if (isset($_ENV['APP_ENV']) && $_ENV['APP_ENV'] == 'testing') { + if (isset($_ENV['APP_ENV']) && $_ENV['APP_ENV'] === 'testing') { return; }