Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class CreateAnnotationsDir extends Command |
||
12 | { |
||
13 | /** |
||
14 | * The name and signature of the console command. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $signature = 'annotations:mkdir'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Create the cache dir for the Jaxon classes annotations'; |
||
26 | |||
27 | /** |
||
28 | * Execute the console command. |
||
29 | * |
||
30 | * @return int |
||
31 | */ |
||
32 | public function handle() |
||
33 | { |
||
34 | $path = storage_path('annotations'); |
||
35 | file_exists($path) || mkdir($path, 0755, false); |
||
36 | |||
37 | return Command::SUCCESS; |
||
38 | } |
||
40 |