mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
3a5d12e24d
commit
101abeae0e
@@ -6,9 +6,10 @@
|
||||
|
||||
class Valet
|
||||
{
|
||||
var $cli, $files;
|
||||
public $cli;
|
||||
public $files;
|
||||
|
||||
var $valetBin = BREW_PREFIX.'/bin/valet';
|
||||
public $valetBin = BREW_PREFIX.'/bin/valet';
|
||||
|
||||
/**
|
||||
* Create a new Valet instance.
|
||||
@@ -16,7 +17,7 @@ class Valet
|
||||
* @param CommandLine $cli
|
||||
* @param Filesystem $files
|
||||
*/
|
||||
function __construct(CommandLine $cli, Filesystem $files)
|
||||
public function __construct(CommandLine $cli, Filesystem $files)
|
||||
{
|
||||
$this->cli = $cli;
|
||||
$this->files = $files;
|
||||
@@ -27,7 +28,7 @@ function __construct(CommandLine $cli, Filesystem $files)
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function symlinkToUsersBin()
|
||||
public function symlinkToUsersBin()
|
||||
{
|
||||
$this->unlinkFromUsersBin();
|
||||
|
||||
@@ -39,7 +40,7 @@ function symlinkToUsersBin()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function unlinkFromUsersBin()
|
||||
public function unlinkFromUsersBin()
|
||||
{
|
||||
$this->cli->quietlyAsUser('rm '.$this->valetBin);
|
||||
}
|
||||
@@ -49,7 +50,7 @@ function unlinkFromUsersBin()
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function extensions()
|
||||
public function extensions()
|
||||
{
|
||||
if (! $this->files->isDir(VALET_HOME_PATH.'/Extensions')) {
|
||||
return [];
|
||||
@@ -70,9 +71,10 @@ function extensions()
|
||||
*
|
||||
* @param string $currentVersion
|
||||
* @return bool
|
||||
*
|
||||
* @throws \Httpful\Exception\ConnectionErrorException
|
||||
*/
|
||||
function onLatestVersion($currentVersion)
|
||||
public function onLatestVersion($currentVersion)
|
||||
{
|
||||
$response = Request::get('https://api.github.com/repos/laravel/valet/releases/latest')->send();
|
||||
|
||||
@@ -84,7 +86,7 @@ function onLatestVersion($currentVersion)
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function createSudoersEntry()
|
||||
public function createSudoersEntry()
|
||||
{
|
||||
$this->files->ensureDirExists('/etc/sudoers.d');
|
||||
|
||||
@@ -97,23 +99,23 @@ function createSudoersEntry()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function removeSudoersEntry()
|
||||
public function removeSudoersEntry()
|
||||
{
|
||||
$this->cli->quietly('rm /etc/sudoers.d/valet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Run composer global diagnose
|
||||
* Run composer global diagnose.
|
||||
*/
|
||||
function composerGlobalDiagnose()
|
||||
public function composerGlobalDiagnose()
|
||||
{
|
||||
$this->cli->runAsUser('composer global diagnose');
|
||||
}
|
||||
|
||||
/**
|
||||
* Run composer global update
|
||||
* Run composer global update.
|
||||
*/
|
||||
function composerGlobalUpdate()
|
||||
public function composerGlobalUpdate()
|
||||
{
|
||||
$this->cli->runAsUser('composer global update');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user