@@ -100,7 +100,6 @@ discard block |
||
| 100 | 100 | /** |
| 101 | 101 | * PublishCreateSite constructor. |
| 102 | 102 | * |
| 103 | - * @param Client $client |
|
| 104 | 103 | */ |
| 105 | 104 | public function __construct(Client $http) |
| 106 | 105 | { |
@@ -111,6 +110,9 @@ discard block |
||
| 111 | 110 | /** |
| 112 | 111 | * Get Value. |
| 113 | 112 | * |
| 113 | + * @param string $value |
|
| 114 | + * @param string $env_var |
|
| 115 | + * @param string $command |
|
| 114 | 116 | * @return array|int|null|string |
| 115 | 117 | */ |
| 116 | 118 | protected function getValue($value, $env_var , $command) |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Acacha\ForgePublish\Commands; |
| 4 | 4 | |
| 5 | -use Acacha\ForgePublish\Commands\Traits\InteractsWithEnvironment; |
|
| 6 | -use Acacha\ForgePublish\Commands\Traits\ShowsErrorResponse; |
|
| 7 | 5 | use Acacha\ForgePublish\Commands\Traits\DiesIfEnvVariableIsnotInstalled; |
| 8 | 6 | use Acacha\ForgePublish\Commands\Traits\DiesIfNoEnvFileExists; |
| 7 | +use Acacha\ForgePublish\Commands\Traits\InteractsWithEnvironment; |
|
| 8 | +use Acacha\ForgePublish\Commands\Traits\ShowsErrorResponse; |
|
| 9 | 9 | use Acacha\ForgePublish\Commands\Traits\WaitsForSite; |
| 10 | 10 | use GuzzleHttp\Client; |
| 11 | 11 | use Illuminate\Console\Command; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * Env var to set. |
| 46 | 46 | * |
| 47 | - * @return mixed |
|
| 47 | + * @return string |
|
| 48 | 48 | */ |
| 49 | 49 | protected function envVar() |
| 50 | 50 | { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * Argument key. |
| 56 | 56 | * |
| 57 | - * @return mixed |
|
| 57 | + * @return string |
|
| 58 | 58 | */ |
| 59 | 59 | protected function argKey() |
| 60 | 60 | { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * Question text. |
| 66 | 66 | * |
| 67 | - * @return mixed |
|
| 67 | + * @return string |
|
| 68 | 68 | */ |
| 69 | 69 | protected function questionText() |
| 70 | 70 | { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Env var to set. |
| 28 | 28 | * |
| 29 | - * @return mixed |
|
| 29 | + * @return string |
|
| 30 | 30 | */ |
| 31 | 31 | protected function envVar() |
| 32 | 32 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * Argument key. |
| 38 | 38 | * |
| 39 | - * @return mixed |
|
| 39 | + * @return string |
|
| 40 | 40 | */ |
| 41 | 41 | protected function argKey() |
| 42 | 42 | { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * Question text. |
| 48 | 48 | * |
| 49 | - * @return mixed |
|
| 49 | + * @return string |
|
| 50 | 50 | */ |
| 51 | 51 | protected function questionText() |
| 52 | 52 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Env var to set. |
| 78 | 78 | * |
| 79 | - * @return mixed |
|
| 79 | + * @return string |
|
| 80 | 80 | */ |
| 81 | 81 | protected function envVar() |
| 82 | 82 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * Argument key. |
| 88 | 88 | * |
| 89 | - * @return mixed |
|
| 89 | + * @return string |
|
| 90 | 90 | */ |
| 91 | 91 | protected function argKey() |
| 92 | 92 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | /** |
| 97 | 97 | * Question text. |
| 98 | 98 | * |
| 99 | - * @return mixed |
|
| 99 | + * @return string |
|
| 100 | 100 | */ |
| 101 | 101 | protected function questionText() |
| 102 | 102 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Env var to set. |
| 78 | 78 | * |
| 79 | - * @return mixed |
|
| 79 | + * @return string |
|
| 80 | 80 | */ |
| 81 | 81 | protected function envVar() |
| 82 | 82 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * Argument key. |
| 88 | 88 | * |
| 89 | - * @return mixed |
|
| 89 | + * @return string |
|
| 90 | 90 | */ |
| 91 | 91 | protected function argKey() |
| 92 | 92 | { |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | /** |
| 97 | 97 | * Question text. |
| 98 | 98 | * |
| 99 | - * @return mixed |
|
| 99 | + * @return string |
|
| 100 | 100 | */ |
| 101 | 101 | protected function questionText() |
| 102 | 102 | { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Env var to set. |
| 28 | 28 | * |
| 29 | - * @return mixed |
|
| 29 | + * @return string |
|
| 30 | 30 | */ |
| 31 | 31 | protected function envVar() |
| 32 | 32 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * Argument key. |
| 38 | 38 | * |
| 39 | - * @return mixed |
|
| 39 | + * @return string |
|
| 40 | 40 | */ |
| 41 | 41 | protected function argKey() |
| 42 | 42 | { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * Question text. |
| 48 | 48 | * |
| 49 | - * @return mixed |
|
| 49 | + * @return string |
|
| 50 | 50 | */ |
| 51 | 51 | protected function questionText() |
| 52 | 52 | { |
@@ -236,6 +236,7 @@ |
||
| 236 | 236 | |
| 237 | 237 | /** |
| 238 | 238 | * Post key to Laravel Forge Server. |
| 239 | + * @param string $keyName |
|
| 239 | 240 | */ |
| 240 | 241 | protected function postKeyToLaravelForgeServer($keyName=null) |
| 241 | 242 | { |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Acacha\ForgePublish\Commands\Traits\ChecksEnv; |
| 6 | 6 | use Acacha\ForgePublish\Commands\Traits\ChecksSSHConnection; |
| 7 | -use Acacha\ForgePublish\Commands\Traits\PossibleEmails; |
|
| 8 | 7 | use Acacha\ForgePublish\Commands\Traits\DiesIfEnvVariableIsnotInstalled; |
| 8 | +use Acacha\ForgePublish\Commands\Traits\PossibleEmails; |
|
| 9 | 9 | use GuzzleHttp\Client; |
| 10 | 10 | use Illuminate\Console\Command; |
| 11 | 11 | use Illuminate\Support\Facades\File; |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Check if a argument/option exists or check for his corresponding ENV VALUE. |
| 14 | 14 | * |
| 15 | - * @param $option |
|
| 16 | - * @param $env_var |
|
| 15 | + * @param string $option |
|
| 16 | + * @param string $env_var |
|
| 17 | 17 | * @param string $type |
| 18 | 18 | * @return mixed |
| 19 | 19 | */ |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * Check value in servers. |
| 29 | 29 | * |
| 30 | - * @param $env_var |
|
| 31 | - * @param $field |
|
| 30 | + * @param string $env_var |
|
| 31 | + * @param string $field |
|
| 32 | 32 | * @param null $value |
| 33 | 33 | * @param null $servers |
| 34 | 34 | * @return bool |