@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | /** |
33 | 33 | * FormExtensionAutoWiring constructor. |
34 | - * @param array|string[] $scanDirs |
|
34 | + * @param string[] $scanDirs |
|
35 | 35 | */ |
36 | 36 | public function __construct($scanDirs) |
37 | 37 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | /** |
32 | 32 | * RepositoryAutoWiring constructor. |
33 | - * @param array|string[] $scanDirs |
|
33 | + * @param string[] $scanDirs |
|
34 | 34 | */ |
35 | 35 | public function __construct($scanDirs) |
36 | 36 | { |
@@ -30,8 +30,8 @@ |
||
30 | 30 | { |
31 | 31 | /** |
32 | 32 | * RepositoryDefinition constructor. |
33 | - * @param $id |
|
34 | - * @param $refClass |
|
33 | + * @param string $id |
|
34 | + * @param \ReflectionClass $refClass |
|
35 | 35 | */ |
36 | 36 | public function __construct($id, $refClass) |
37 | 37 | { |
@@ -194,7 +194,7 @@ |
||
194 | 194 | |
195 | 195 | /** |
196 | 196 | * EntityからTraitを削除. |
197 | - * @param $entityTokens Tokens Entityのトークン |
|
197 | + * @param Tokens $entityTokens Tokens Entityのトークン |
|
198 | 198 | * @param $trait string 削除するTraitのFQCN |
199 | 199 | */ |
200 | 200 | private function removeTrait($entityTokens, $trait) |
@@ -16,7 +16,6 @@ |
||
16 | 16 | * This method should only be used to configure services and parameters. |
17 | 17 | * It should not get services. |
18 | 18 | * |
19 | - * @param Container $pimple A container instance |
|
20 | 19 | */ |
21 | 20 | public function register(Container $app) |
22 | 21 | { |
@@ -93,6 +93,10 @@ discard block |
||
93 | 93 | const VENDOR_NAME = 'ec-cube'; |
94 | 94 | |
95 | 95 | // ファイル指定してのプラグインインストール |
96 | + |
|
97 | + /** |
|
98 | + * @param string $path |
|
99 | + */ |
|
96 | 100 | public function install($path, $source = 0) |
97 | 101 | { |
98 | 102 | $pluginBaseDir = null; |
@@ -141,6 +145,10 @@ discard block |
||
141 | 145 | } |
142 | 146 | |
143 | 147 | // インストール事後処理 |
148 | + |
|
149 | + /** |
|
150 | + * @param integer $source |
|
151 | + */ |
|
144 | 152 | public function postInstall($config, $event, $source) |
145 | 153 | { |
146 | 154 | // Proxyのクラスをロードせずにスキーマを更新するために、 |
@@ -187,6 +195,9 @@ discard block |
||
187 | 195 | } |
188 | 196 | } |
189 | 197 | |
198 | + /** |
|
199 | + * @param string $dir |
|
200 | + */ |
|
190 | 201 | public function unpackPluginArchive($archive, $dir) |
191 | 202 | { |
192 | 203 | $extension = pathinfo($archive, PATHINFO_EXTENSION); |
@@ -246,6 +257,9 @@ discard block |
||
246 | 257 | } |
247 | 258 | } |
248 | 259 | |
260 | + /** |
|
261 | + * @param string $yml |
|
262 | + */ |
|
249 | 263 | public function readYml($yml) |
250 | 264 | { |
251 | 265 | if (file_exists($yml)) { |
@@ -263,6 +277,9 @@ discard block |
||
263 | 277 | // ディレクトリ名などに使われれるので厳しめ |
264 | 278 | } |
265 | 279 | |
280 | + /** |
|
281 | + * @param string $path |
|
282 | + */ |
|
266 | 283 | public function deleteFile($path) |
267 | 284 | { |
268 | 285 | $f = new Filesystem(); |
@@ -282,6 +299,9 @@ discard block |
||
282 | 299 | return $this->appConfig['plugin_realdir'].'/'.$name; |
283 | 300 | } |
284 | 301 | |
302 | + /** |
|
303 | + * @param string $d |
|
304 | + */ |
|
285 | 305 | public function createPluginDir($d) |
286 | 306 | { |
287 | 307 | $b = @mkdir($d); |
@@ -339,6 +359,9 @@ discard block |
||
339 | 359 | return $p; |
340 | 360 | } |
341 | 361 | |
362 | + /** |
|
363 | + * @param string $method |
|
364 | + */ |
|
342 | 365 | public function callPluginManagerMethod($meta, $method) |
343 | 366 | { |
344 | 367 | $class = '\\Plugin'.'\\'.$meta['code'].'\\'.'PluginManager'; |
@@ -455,6 +478,9 @@ discard block |
||
455 | 478 | return true; |
456 | 479 | } |
457 | 480 | |
481 | + /** |
|
482 | + * @param string $path |
|
483 | + */ |
|
458 | 484 | public function update(\Eccube\Entity\Plugin $plugin, $path) |
459 | 485 | { |
460 | 486 | $pluginBaseDir = null; |
@@ -712,7 +738,7 @@ discard block |
||
712 | 738 | } |
713 | 739 | |
714 | 740 | /** |
715 | - * @param $code |
|
741 | + * @param string $code |
|
716 | 742 | * @return bool |
717 | 743 | */ |
718 | 744 | private function isEnable($code) |