Completed
Push — experimental/3.1 ( f5947c...5d0f05 )
by Ryo
48:59
created
src/Eccube/Service/PluginService.php 1 patch
Doc Comments   +23 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      *
116 116
      * @param string $path   path to tar.gz/zip plugin file
117 117
      * @param int    $source
118
-     * @return mixed
118
+     * @return boolean
119 119
      * @throws PluginException
120 120
      * @throws \Exception
121 121
      */
@@ -180,6 +180,10 @@  discard block
 block discarded – undo
180 180
     }
181 181
 
182 182
     // インストール事後処理
183
+
184
+    /**
185
+     * @param integer $source
186
+     */
183 187
     public function postInstall($config, $event, $source)
184 188
     {
185 189
         // Proxyのクラスをロードせずにスキーマを更新するために、
@@ -226,6 +230,10 @@  discard block
 block discarded – undo
226 230
         }
227 231
     }
228 232
 
233
+    /**
234
+     * @param string $archive
235
+     * @param string $dir
236
+     */
229 237
     public function unpackPluginArchive($archive, $dir)
230 238
     {
231 239
         $extension = pathinfo($archive, PATHINFO_EXTENSION);
@@ -285,6 +293,9 @@  discard block
 block discarded – undo
285 293
         }
286 294
     }
287 295
 
296
+    /**
297
+     * @param string $yml
298
+     */
288 299
     public function readYml($yml)
289 300
     {
290 301
         if (file_exists($yml)) {
@@ -302,6 +313,9 @@  discard block
 block discarded – undo
302 313
         // ディレクトリ名などに使われれるので厳しめ
303 314
     }
304 315
 
316
+    /**
317
+     * @param string $path
318
+     */
305 319
     public function deleteFile($path)
306 320
     {
307 321
         $f = new Filesystem();
@@ -321,6 +335,9 @@  discard block
 block discarded – undo
321 335
         return $this->appConfig['plugin_realdir'].'/'.$name;
322 336
     }
323 337
 
338
+    /**
339
+     * @param string $d
340
+     */
324 341
     public function createPluginDir($d)
325 342
     {
326 343
         $b = @mkdir($d);
@@ -378,6 +395,9 @@  discard block
 block discarded – undo
378 395
         return $p;
379 396
     }
380 397
 
398
+    /**
399
+     * @param string $method
400
+     */
381 401
     public function callPluginManagerMethod($meta, $method)
382 402
     {
383 403
         $class = '\\Plugin'.'\\'.$meta['code'].'\\'.'PluginManager';
@@ -888,7 +908,7 @@  discard block
 block discarded – undo
888 908
      * [プラグインコード]/Resource/assets
889 909
      * 配下に置かれているファイルが所定の位置へコピーされる
890 910
      *
891
-     * @param $pluginBaseDir
911
+     * @param string $pluginBaseDir
892 912
      * @param $pluginCode
893 913
      */
894 914
     public function copyAssets($pluginBaseDir, $pluginCode)
@@ -923,7 +943,7 @@  discard block
 block discarded – undo
923 943
      *
924 944
      * @param string $pluginVersion
925 945
      * @param string $remoteVersion
926
-     * @return mixed
946
+     * @return boolean
927 947
      */
928 948
     public function isUpdate($pluginVersion, $remoteVersion)
929 949
     {
Please login to merge, or discard this patch.