Completed
Push — experimental/3.1 ( 26b8cd...7f7c1e )
by Ryo
157:54 queued 151:41
created
src/Eccube/Service/PluginService.php 1 patch
Doc Comments   +22 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      *
115 115
      * @param string $path   path to tar.gz/zip plugin file
116 116
      * @param int    $source
117
-     * @return mixed
117
+     * @return boolean
118 118
      * @throws PluginException
119 119
      * @throws \Exception
120 120
      */
@@ -177,6 +177,10 @@  discard block
 block discarded – undo
177 177
     }
178 178
 
179 179
     // インストール事後処理
180
+
181
+    /**
182
+     * @param integer $source
183
+     */
180 184
     public function postInstall($config, $event, $source)
181 185
     {
182 186
         // Proxyのクラスをロードせずにスキーマを更新するために、
@@ -223,6 +227,10 @@  discard block
 block discarded – undo
223 227
         }
224 228
     }
225 229
 
230
+    /**
231
+     * @param string $archive
232
+     * @param string $dir
233
+     */
226 234
     public function unpackPluginArchive($archive, $dir)
227 235
     {
228 236
         $extension = pathinfo($archive, PATHINFO_EXTENSION);
@@ -282,6 +290,9 @@  discard block
 block discarded – undo
282 290
         }
283 291
     }
284 292
 
293
+    /**
294
+     * @param string $yml
295
+     */
285 296
     public function readYml($yml)
286 297
     {
287 298
         if (file_exists($yml)) {
@@ -299,6 +310,9 @@  discard block
 block discarded – undo
299 310
         // ディレクトリ名などに使われれるので厳しめ
300 311
     }
301 312
 
313
+    /**
314
+     * @param string $path
315
+     */
302 316
     public function deleteFile($path)
303 317
     {
304 318
         $f = new Filesystem();
@@ -318,6 +332,9 @@  discard block
 block discarded – undo
318 332
         return $this->appConfig['plugin_realdir'].'/'.$name;
319 333
     }
320 334
 
335
+    /**
336
+     * @param string $d
337
+     */
321 338
     public function createPluginDir($d)
322 339
     {
323 340
         $b = @mkdir($d);
@@ -375,6 +392,9 @@  discard block
 block discarded – undo
375 392
         return $p;
376 393
     }
377 394
 
395
+    /**
396
+     * @param string $method
397
+     */
378 398
     public function callPluginManagerMethod($meta, $method)
379 399
     {
380 400
         $class = '\\Plugin'.'\\'.$meta['code'].'\\'.'PluginManager';
@@ -867,7 +887,7 @@  discard block
 block discarded – undo
867 887
     /**
868 888
      * @param string $pluginVersion
869 889
      * @param string $remoteVersion
870
-     * @return mixed
890
+     * @return boolean
871 891
      */
872 892
     public function isUpdate($pluginVersion, $remoteVersion)
873 893
     {
Please login to merge, or discard this patch.