@@ -74,7 +74,7 @@ |
||
74 | 74 | * |
75 | 75 | * @param string $command |
76 | 76 | * |
77 | - * @return bool |
|
77 | + * @return string |
|
78 | 78 | */ |
79 | 79 | protected function forceCommand($command) |
80 | 80 | { |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Recca0120\Terminal\Console\Commands; |
4 | 4 | |
5 | -use InvalidArgumentException; |
|
6 | 5 | use Illuminate\Console\Command; |
6 | +use Illuminate\Contracts\Console\Kernel as ArtisanContract; |
|
7 | +use InvalidArgumentException; |
|
7 | 8 | use Symfony\Component\Console\Input\InputOption; |
8 | 9 | use Symfony\Component\Console\Input\StringInput; |
9 | -use Illuminate\Contracts\Console\Kernel as ArtisanContract; |
|
10 | 10 | |
11 | 11 | class Artisan extends Command |
12 | 12 | { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * @param \Symfony\Component\Console\Input\InputInterface $input |
62 | 62 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
63 | 63 | * |
64 | - * @return \Symfony\Component\Console\Input\StringInput |
|
64 | + * @return integer |
|
65 | 65 | */ |
66 | 66 | public function run(InputInterface $input, OutputInterface $output) |
67 | 67 | { |
@@ -4,13 +4,13 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | use Illuminate\Console\Command; |
7 | -use Symfony\Component\Finder\Finder; |
|
8 | 7 | use Illuminate\Filesystem\Filesystem; |
9 | -use Symfony\Component\Console\Input\InputOption; |
|
10 | -use Symfony\Component\Console\Input\StringInput; |
|
11 | 8 | use Symfony\Component\Console\Input\InputArgument; |
12 | 9 | use Symfony\Component\Console\Input\InputInterface; |
10 | +use Symfony\Component\Console\Input\InputOption; |
|
11 | +use Symfony\Component\Console\Input\StringInput; |
|
13 | 12 | use Symfony\Component\Console\Output\OutputInterface; |
13 | +use Symfony\Component\Finder\Finder; |
|
14 | 14 | |
15 | 15 | class Find extends Command |
16 | 16 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @param \Recca0120\Terminal\TerminalManager $terminalManger |
28 | 28 | * @param string $view |
29 | 29 | * |
30 | - * @return mixed |
|
30 | + * @return \Illuminate\Http\Response |
|
31 | 31 | */ |
32 | 32 | public function index(TerminalManager $terminalManger, $view = 'index') |
33 | 33 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @param \Recca0120\Terminal\TerminalManager $terminalManger |
53 | 53 | * |
54 | - * @return mixed |
|
54 | + * @return \Illuminate\Http\JsonResponse |
|
55 | 55 | */ |
56 | 56 | public function endpoint(TerminalManager $terminalManger) |
57 | 57 | { |
@@ -2,13 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Recca0120\Terminal\Http\Controllers; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
5 | +use Illuminate\Contracts\Routing\ResponseFactory; |
|
6 | +use Illuminate\Filesystem\Filesystem; |
|
6 | 7 | use Illuminate\Http\Request; |
7 | 8 | use Illuminate\Routing\Controller; |
8 | -use Illuminate\Filesystem\Filesystem; |
|
9 | +use Illuminate\Support\Str; |
|
9 | 10 | use Recca0120\Terminal\TerminalManager; |
10 | -use Illuminate\Contracts\Foundation\Application; |
|
11 | -use Illuminate\Contracts\Routing\ResponseFactory; |
|
12 | 11 | |
13 | 12 | class TerminalController extends Controller |
14 | 13 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Recca0120\Terminal; |
4 | 4 | |
5 | 5 | use Illuminate\Support\Arr; |
6 | -use Illuminate\Contracts\Foundation\Application as Laravel; |
|
7 | 6 | |
8 | 7 | class TerminalManager |
9 | 8 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Recca0120\Terminal\Console\Commands; |
4 | 4 | |
5 | -use Phar; |
|
6 | 5 | use Illuminate\Console\Command; |
7 | 6 | use Illuminate\Filesystem\Filesystem; |
7 | +use Phar; |
|
8 | 8 | use Symfony\Component\Console\Input\InputOption; |
9 | 9 | use Symfony\Component\Console\Input\StringInput; |
10 | 10 |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Recca0120\Terminal\Console\Commands; |
4 | 4 | |
5 | -use Illuminate\Support\Arr; |
|
6 | 5 | use Illuminate\Console\Command; |
7 | 6 | use Illuminate\Database\DatabaseManager; |
7 | +use Illuminate\Support\Arr; |
|
8 | 8 | use Symfony\Component\Console\Input\InputOption; |
9 | 9 | |
10 | 10 | class Mysql extends Command |
@@ -3,10 +3,10 @@ |
||
3 | 3 | namespace Recca0120\Terminal\Console\Commands; |
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | -use Illuminate\Support\Collection; |
|
7 | 6 | use Illuminate\Filesystem\Filesystem; |
8 | -use Symfony\Component\Console\Input\InputOption; |
|
7 | +use Illuminate\Support\Collection; |
|
9 | 8 | use Symfony\Component\Console\Input\InputArgument; |
9 | +use Symfony\Component\Console\Input\InputOption; |
|
10 | 10 | |
11 | 11 | class Tail extends Command |
12 | 12 | { |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | 6 | use Illuminate\Filesystem\Filesystem; |
7 | -use Symfony\Component\Console\Input\InputOption; |
|
8 | 7 | use Symfony\Component\Console\Input\InputArgument; |
8 | +use Symfony\Component\Console\Input\InputOption; |
|
9 | 9 | |
10 | 10 | class Vi extends Command |
11 | 11 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Recca0120\Terminal; |
4 | 4 | |
5 | -use Illuminate\Support\Arr; |
|
6 | 5 | use Illuminate\Http\Request; |
7 | 6 | use Illuminate\Routing\Router; |
7 | +use Illuminate\Support\Arr; |
|
8 | 8 | use Illuminate\Support\ServiceProvider; |
9 | 9 | |
10 | 10 | class TerminalServiceProvider extends ServiceProvider |
@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * register routes. |
70 | 70 | * |
71 | - * @param Illuminate\Routing\Router $router |
|
71 | + * @param Router $router |
|
72 | 72 | * @param array $config |
73 | 73 | */ |
74 | 74 | protected function handleRoutes(Router $router, $config = []) |