Failed Conditions
Pull Request — experimental/3.1 (#2723)
by
unknown
79:43
created
src/Eccube/Service/PluginService.php 1 patch
Doc Comments   +19 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
      */
@@ -179,6 +179,10 @@  discard block
 block discarded – undo
179 179
     }
180 180
 
181 181
     // インストール事後処理
182
+
183
+    /**
184
+     * @param integer $source
185
+     */
182 186
     public function postInstall($config, $event, $source)
183 187
     {
184 188
         // Proxyのクラスをロードせずにスキーマを更新するために、
@@ -244,6 +248,10 @@  discard block
 block discarded – undo
244 248
         }
245 249
     }
246 250
 
251
+    /**
252
+     * @param string $archive
253
+     * @param string $dir
254
+     */
247 255
     public function unpackPluginArchive($archive, $dir)
248 256
     {
249 257
         $extension = pathinfo($archive, PATHINFO_EXTENSION);
@@ -303,6 +311,9 @@  discard block
 block discarded – undo
303 311
         }
304 312
     }
305 313
 
314
+    /**
315
+     * @param string $yml
316
+     */
306 317
     public function readYml($yml)
307 318
     {
308 319
         if (file_exists($yml)) {
@@ -333,6 +344,9 @@  discard block
 block discarded – undo
333 344
         return $this->appConfig['plugin_realdir'].'/'.$name;
334 345
     }
335 346
 
347
+    /**
348
+     * @param string $d
349
+     */
336 350
     public function createPluginDir($d)
337 351
     {
338 352
         $b = @mkdir($d);
@@ -390,6 +404,9 @@  discard block
 block discarded – undo
390 404
         return $p;
391 405
     }
392 406
 
407
+    /**
408
+     * @param string $method
409
+     */
393 410
     public function callPluginManagerMethod($meta, $method)
394 411
     {
395 412
         $class = '\\Plugin'.'\\'.$meta['code'].'\\'.'PluginManager';
@@ -932,7 +949,7 @@  discard block
 block discarded – undo
932 949
      *
933 950
      * @param string $pluginVersion
934 951
      * @param string $remoteVersion
935
-     * @return mixed
952
+     * @return boolean
936 953
      */
937 954
     public function isUpdate($pluginVersion, $remoteVersion)
938 955
     {
Please login to merge, or discard this patch.