@@ -50,6 +50,9 @@ |
||
| 50 | 50 | return $this->description ?: ''; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $foo |
|
| 55 | + */ |
|
| 53 | 56 | public function getArgument($foo) |
| 54 | 57 | { |
| 55 | 58 | return $this->input->getArgument($foo); |
@@ -2,17 +2,17 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\SlashCommand\Handlers; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | 5 | use Illuminate\Console\Parser; |
| 6 | +use Illuminate\Support\Str; |
|
| 7 | +use Spatie\SlashCommand\Exceptions\InvalidHandler; |
|
| 8 | +use Spatie\SlashCommand\Exceptions\InvalidInput; |
|
| 7 | 9 | use Spatie\SlashCommand\Request; |
| 8 | 10 | use Symfony\Component\Console\Command\Command; |
| 9 | -use Spatie\SlashCommand\Exceptions\InvalidInput; |
|
| 10 | -use Symfony\Component\Console\Input\StringInput; |
|
| 11 | -use Spatie\SlashCommand\Exceptions\InvalidHandler; |
|
| 11 | +use Symfony\Component\Console\Exception\RuntimeException; |
|
| 12 | +use Symfony\Component\Console\Helper\DescriptorHelper; |
|
| 12 | 13 | use Symfony\Component\Console\Input\InputDefinition; |
| 14 | +use Symfony\Component\Console\Input\StringInput; |
|
| 13 | 15 | use Symfony\Component\Console\Output\BufferedOutput; |
| 14 | -use Symfony\Component\Console\Helper\DescriptorHelper; |
|
| 15 | -use Symfony\Component\Console\Exception\RuntimeException; |
|
| 16 | 16 | |
| 17 | 17 | abstract class SignatureHandler extends BaseHandler |
| 18 | 18 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * Show the help information for a single SignatureHandler. |
| 61 | 61 | * |
| 62 | - * @param Collection|SignatureHandler[] $handlers |
|
| 62 | + * @param Collection $handlers |
|
| 63 | 63 | * @param string $command |
| 64 | 64 | * @return Response |
| 65 | 65 | */ |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * Show a list of all available handlers. |
| 88 | 88 | * |
| 89 | - * @param Collection|SignatureHandler[] $handlers |
|
| 89 | + * @param Collection $handlers |
|
| 90 | 90 | * @return Response |
| 91 | 91 | */ |
| 92 | 92 | protected function displayListOfAllCommands(Collection $handlers): Response |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\SlashCommand\Handlers; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | -use Spatie\SlashCommand\Request; |
|
| 7 | -use Spatie\SlashCommand\Response; |
|
| 8 | 5 | use Illuminate\Support\Collection; |
| 6 | +use Illuminate\Support\Str; |
|
| 9 | 7 | use Spatie\SlashCommand\Attachment; |
| 10 | 8 | use Spatie\SlashCommand\AttachmentField; |
| 11 | 9 | use Spatie\SlashCommand\HandlesSlashCommand; |
| 10 | +use Spatie\SlashCommand\Request; |
|
| 11 | +use Spatie\SlashCommand\Response; |
|
| 12 | 12 | |
| 13 | 13 | class Help extends SignatureHandler |
| 14 | 14 | { |
@@ -5,13 +5,13 @@ |
||
| 5 | 5 | use Exception; |
| 6 | 6 | use Illuminate\Config\Repository; |
| 7 | 7 | use Illuminate\Http\Request as IlluminateRequest; |
| 8 | -use Spatie\SlashCommand\Exceptions\InvalidHandler; |
|
| 9 | -use Spatie\SlashCommand\Exceptions\InvalidRequest; |
|
| 10 | -use Spatie\SlashCommand\Handlers\SignatureHandler; |
|
| 11 | 8 | use Illuminate\Http\Response as IlluminateResponse; |
| 12 | 9 | use Illuminate\Routing\Controller as IlluminateController; |
| 10 | +use Spatie\SlashCommand\Exceptions\InvalidHandler; |
|
| 11 | +use Spatie\SlashCommand\Exceptions\InvalidRequest; |
|
| 13 | 12 | use Spatie\SlashCommand\Exceptions\RequestCouldNotBeHandled; |
| 14 | 13 | use Spatie\SlashCommand\Exceptions\SlackSlashCommandException; |
| 14 | +use Spatie\SlashCommand\Handlers\SignatureHandler; |
|
| 15 | 15 | |
| 16 | 16 | class Controller extends IlluminateController |
| 17 | 17 | { |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\SlashCommand\Handlers; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Str; |
|
| 6 | -use Spatie\SlashCommand\Request; |
|
| 7 | -use Spatie\SlashCommand\Response; |
|
| 8 | 5 | use Illuminate\Support\Collection; |
| 6 | +use Illuminate\Support\Str; |
|
| 9 | 7 | use Spatie\SlashCommand\Attachment; |
| 10 | 8 | use Spatie\SlashCommand\AttachmentField; |
| 11 | 9 | use Spatie\SlashCommand\HandlesSlashCommand; |
| 10 | +use Spatie\SlashCommand\Request; |
|
| 11 | +use Spatie\SlashCommand\Response; |
|
| 12 | 12 | |
| 13 | 13 | class CatchAll extends BaseHandler |
| 14 | 14 | { |