1 | <?php namespace Arcanedev\Assets\Console; |
||
12 | class MakeCommand extends Command |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Properties |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * The name and signature of the console command. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $signature = 'assets:make |
||
25 | {name : Name of the asset} |
||
26 | {--W|workspace= : Select a predefined workspace} |
||
27 | {--P|preset= : Preset for the new asset}'; |
||
28 | |||
29 | /** |
||
30 | * The console command description. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $description = 'Make a new assets folder'; |
||
35 | |||
36 | /* ----------------------------------------------------------------- |
||
37 | | Main Methods |
||
38 | | ----------------------------------------------------------------- |
||
39 | */ |
||
40 | |||
41 | /** |
||
42 | * Execute the console command. |
||
43 | * |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function handle() |
||
57 | |||
58 | /* ----------------------------------------------------------------- |
||
59 | | Other Methods |
||
60 | | ----------------------------------------------------------------- |
||
61 | */ |
||
62 | |||
63 | /** |
||
64 | * Get the passable for the pipeline. |
||
65 | * |
||
66 | * @return array |
||
67 | */ |
||
68 | protected function getPassable() |
||
75 | |||
76 | /** |
||
77 | * Get the pipes. |
||
78 | * |
||
79 | * @param string $preset |
||
80 | * |
||
81 | * @return array |
||
82 | */ |
||
83 | protected function getPipes($preset) |
||
89 | |||
90 | /** |
||
91 | * Get the preset pipes. |
||
92 | * |
||
93 | * @param string $preset |
||
94 | * |
||
95 | * @return array |
||
96 | * |
||
97 | * @throws \Exception |
||
98 | */ |
||
99 | private function getPresetPipes($preset) |
||
108 | |||
109 | /** |
||
110 | * Get the selected preset. |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | protected function getPreset() |
||
126 | } |
||
127 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.