@@ -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; |
@@ -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) |
@@ -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 | { |
@@ -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 |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** |
| 62 | 62 | * Abort if no SSH connection. |
| 63 | 63 | * |
| 64 | - * @return bool |
|
| 64 | + * @return boolean|null |
|
| 65 | 65 | */ |
| 66 | 66 | protected function abortIfNoSSHConnection($server = null) |
| 67 | 67 | { |
@@ -11,6 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | /** |
| 13 | 13 | * Skip if env var is not installed. |
| 14 | + * @param string $env_var |
|
| 14 | 15 | */ |
| 15 | 16 | protected function dieIfEnvVarIsNotInstalled($env_var) |
| 16 | 17 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * Get server ip addres by forge server id. |
| 62 | 62 | * |
| 63 | 63 | * @param $servers |
| 64 | - * @param $server_id |
|
| 64 | + * @param string $server_id |
|
| 65 | 65 | * @return mixed |
| 66 | 66 | */ |
| 67 | 67 | protected function serverIpAddress($servers, $server_id) |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * Search server by property with a specific value. |
| 75 | 75 | * |
| 76 | 76 | * @param $servers |
| 77 | - * @param $property |
|
| 77 | + * @param string $property |
|
| 78 | 78 | * @param $value |
| 79 | 79 | * @return static |
| 80 | 80 | */ |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * Get forge site name from site id. |
| 69 | 69 | * |
| 70 | - * @param $sites |
|
| 70 | + * @param string $sites |
|
| 71 | 71 | * @param $site_id |
| 72 | 72 | * @return mixed |
| 73 | 73 | */ |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * Get forge site id from site name. |
| 82 | 82 | * |
| 83 | - * @param $sites |
|
| 83 | + * @param string $sites |
|
| 84 | 84 | * @param $site_name |
| 85 | 85 | * @return mixed |
| 86 | 86 | */ |