1 | <?php |
||
25 | class PharTask extends Task |
||
26 | { |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $buildDir; |
||
31 | |||
32 | /** |
||
33 | * @var \Webcreate\Conveyor\IO\IOInterface |
||
34 | */ |
||
35 | protected $io; |
||
|
|||
36 | protected $conveyorFile; |
||
37 | protected $filename; |
||
38 | protected $stub; |
||
39 | |||
40 | /** |
||
41 | * Constructor. |
||
42 | * |
||
43 | * @param string $buildDir |
||
44 | * @param $conveyorFile |
||
45 | * @param IOInterface $io |
||
46 | */ |
||
47 | public function __construct($buildDir, $conveyorFile, IOInterface $io = null) |
||
53 | |||
54 | /** |
||
55 | * @todo implement an excluded file list, instead of hard-coding the filter for the conveyorFile |
||
56 | * |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | public function execute($target, Version $version = null) |
||
91 | |||
92 | /** |
||
93 | * @param \Phar $phar |
||
94 | * @param SplFileInfo $file |
||
95 | */ |
||
96 | private function addFile(\Phar $phar, SplFileInfo $file) |
||
106 | |||
107 | /** |
||
108 | * @return string |
||
109 | */ |
||
110 | private function getStub() |
||
129 | } |
||
130 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.