@@ -68,6 +68,9 @@ discard block |
||
68 | 68 | ]; |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param string $hint |
|
73 | + */ |
|
71 | 74 | public function getLog($hint = null) |
72 | 75 | { |
73 | 76 | $ret = array(); |
@@ -99,6 +102,9 @@ discard block |
||
99 | 102 | } |
100 | 103 | } |
101 | 104 | |
105 | + /** |
|
106 | + * @return string |
|
107 | + */ |
|
102 | 108 | protected function getLogFilename($path, $log_item, $def_fl, array &$logs) |
103 | 109 | { |
104 | 110 | $is_hint = (isset($log_item['hint']) && !empty($log_item['hint'])); |
@@ -197,6 +203,9 @@ discard block |
||
197 | 203 | return (0 === $exitCode); |
198 | 204 | } |
199 | 205 | |
206 | + /** |
|
207 | + * @param string $configureOptions |
|
208 | + */ |
|
200 | 209 | protected function appendPkgConfigureOptions(&$configureOptions) |
201 | 210 | { |
202 | 211 | $opt = $this->pkg->getConfigureOptions(); |
@@ -47,6 +47,9 @@ discard block |
||
47 | 47 | $this->loader = $loader; |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $path |
|
52 | + */ |
|
50 | 53 | public function load($path) |
51 | 54 | { |
52 | 55 | if (false === is_file($path)) { |
@@ -68,6 +71,9 @@ discard block |
||
68 | 71 | return $this->loader->load($package); |
69 | 72 | } |
70 | 73 | |
74 | + /** |
|
75 | + * @param string $cont |
|
76 | + */ |
|
71 | 77 | public function getExtName($cont) |
72 | 78 | { |
73 | 79 | $ret = null; |
@@ -57,6 +57,7 @@ |
||
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @param string $src |
60 | + * @param string $dest |
|
60 | 61 | */ |
61 | 62 | private function copySrcDir($src, $dest) |
62 | 63 | { |
@@ -77,6 +77,9 @@ |
||
77 | 77 | $this->noConvert = $noConvert; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $path |
|
82 | + */ |
|
80 | 83 | protected function readPackage($path) |
81 | 84 | { |
82 | 85 | $jsonLoader = new Package\Util\JSON\Loader(new Package\Util\Loader()); |
@@ -93,6 +93,10 @@ |
||
93 | 93 | unset($package, $downloader); |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $target |
|
98 | + * @param boolean $no_convert |
|
99 | + */ |
|
96 | 100 | public function execute($target, $no_convert) |
97 | 101 | { |
98 | 102 | $this->fetch($target); |
@@ -306,6 +306,9 @@ discard block |
||
306 | 306 | return [trim($version_define), $version]; |
307 | 307 | } |
308 | 308 | |
309 | + /** |
|
310 | + * @param string $path |
|
311 | + */ |
|
309 | 312 | protected function extConfigIsIn($path) |
310 | 313 | { |
311 | 314 | if (defined('PHP_WINDOWS_VERSION_MAJOR') !== false) { |
@@ -317,6 +320,9 @@ discard block |
||
317 | 320 | } |
318 | 321 | } |
319 | 322 | |
323 | + /** |
|
324 | + * @param string $path |
|
325 | + */ |
|
320 | 326 | protected function locateSourceDirByExtConfig($path) |
321 | 327 | { |
322 | 328 | $it = new \RecursiveIteratorIterator( |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * @param string $path |
54 | 54 | * |
55 | - * @return Pickle\Base\Interfaces\Package |
|
55 | + * @return \Composer\Package\PackageInterface |
|
56 | 56 | */ |
57 | 57 | public function load($path) |
58 | 58 | { |
@@ -143,6 +143,9 @@ |
||
143 | 143 | } |
144 | 144 | } |
145 | 145 | |
146 | + /** |
|
147 | + * @param string $key |
|
148 | + */ |
|
146 | 149 | protected function isValid($config, $key, $type = 'any') |
147 | 150 | { |
148 | 151 | switch ($type) { |
@@ -93,6 +93,10 @@ |
||
93 | 93 | unset($package, $downloader); |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $target |
|
98 | + * @param boolean $no_convert |
|
99 | + */ |
|
96 | 100 | public function execute($target, $no_convert) |
97 | 101 | { |
98 | 102 | $this->fetch($target); |