mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Visibility keywords!! Gross.
This commit is contained in:
@@ -12,7 +12,7 @@ class CommandLine
|
||||
* @param string $command
|
||||
* @return void
|
||||
*/
|
||||
public function quietly($command)
|
||||
function quietly($command)
|
||||
{
|
||||
$this->runCommand($command.' > /dev/null 2>&1');
|
||||
}
|
||||
@@ -23,7 +23,7 @@ public function quietly($command)
|
||||
* @param string $command
|
||||
* @return void
|
||||
*/
|
||||
public function quietlyAsUser($command)
|
||||
function quietlyAsUser($command)
|
||||
{
|
||||
$this->quietly('sudo -u '.user().' '.$command.' > /dev/null 2>&1');
|
||||
}
|
||||
@@ -34,7 +34,7 @@ public function quietlyAsUser($command)
|
||||
* @param string $command
|
||||
* @return void
|
||||
*/
|
||||
public function passthru($command)
|
||||
function passthru($command)
|
||||
{
|
||||
passthru($command);
|
||||
}
|
||||
@@ -46,7 +46,7 @@ public function passthru($command)
|
||||
* @param callable $onError
|
||||
* @return string
|
||||
*/
|
||||
public function run($command, callable $onError = null)
|
||||
function run($command, callable $onError = null)
|
||||
{
|
||||
return $this->runCommand($command, $onError);
|
||||
}
|
||||
@@ -58,7 +58,7 @@ public function run($command, callable $onError = null)
|
||||
* @param callable $onError
|
||||
* @return string
|
||||
*/
|
||||
public function runAsUser($command, callable $onError = null)
|
||||
function runAsUser($command, callable $onError = null)
|
||||
{
|
||||
return $this->runCommand('sudo -u '.user().' '.$command, $onError);
|
||||
}
|
||||
@@ -70,7 +70,7 @@ public function runAsUser($command, callable $onError = null)
|
||||
* @param callable $onError
|
||||
* @return string
|
||||
*/
|
||||
protected function runCommand($command, callable $onError = null)
|
||||
function runCommand($command, callable $onError = null)
|
||||
{
|
||||
$onError = $onError ?: function () {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user