@@ -147,6 +147,9 @@ discard block |
||
| 147 | 147 | return $version; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | + /** |
|
| 151 | + * @param string $pluginDir |
|
| 152 | + */ |
|
| 150 | 153 | protected function createDirectories($pluginDir) |
| 151 | 154 | { |
| 152 | 155 | $dirs = [ |
@@ -165,6 +168,9 @@ discard block |
||
| 165 | 168 | } |
| 166 | 169 | } |
| 167 | 170 | |
| 171 | + /** |
|
| 172 | + * @param string $pluginDir |
|
| 173 | + */ |
|
| 168 | 174 | protected function createConfig($pluginDir, $name, $code, $version) |
| 169 | 175 | { |
| 170 | 176 | $source = <<<EOL |
@@ -176,12 +182,18 @@ discard block |
||
| 176 | 182 | $this->fs->dumpFile($pluginDir.'/config.yml', $source); |
| 177 | 183 | } |
| 178 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $pluginDir |
|
| 187 | + */ |
|
| 179 | 188 | protected function createMessages($pluginDir) |
| 180 | 189 | { |
| 181 | 190 | $this->fs->dumpFile($pluginDir.'/Resource/locale/messages.ja.yaml', ''); |
| 182 | 191 | $this->fs->dumpFile($pluginDir.'/Resource/locale/validators.ja.yaml', ''); |
| 183 | 192 | } |
| 184 | 193 | |
| 194 | + /** |
|
| 195 | + * @param string $pluginDir |
|
| 196 | + */ |
|
| 185 | 197 | protected function createTwigBlock($pluginDir, $code) |
| 186 | 198 | { |
| 187 | 199 | $source = <<<EOL |
@@ -206,6 +218,9 @@ discard block |
||
| 206 | 218 | $this->fs->dumpFile($pluginDir.'/TwigBlock.php', $source); |
| 207 | 219 | } |
| 208 | 220 | |
| 221 | + /** |
|
| 222 | + * @param string $pluginDir |
|
| 223 | + */ |
|
| 209 | 224 | protected function createNav($pluginDir, $code) |
| 210 | 225 | { |
| 211 | 226 | $source = <<<EOL |
@@ -230,6 +245,9 @@ discard block |
||
| 230 | 245 | $this->fs->dumpFile($pluginDir.'/Nav.php', $source); |
| 231 | 246 | } |
| 232 | 247 | |
| 248 | + /** |
|
| 249 | + * @param string $pluginDir |
|
| 250 | + */ |
|
| 233 | 251 | protected function createEvent($pluginDir, $code) |
| 234 | 252 | { |
| 235 | 253 | $source = <<<EOL |
@@ -254,6 +272,9 @@ discard block |
||
| 254 | 272 | $this->fs->dumpFile($pluginDir.'/Event.php', $source); |
| 255 | 273 | } |
| 256 | 274 | |
| 275 | + /** |
|
| 276 | + * @param string $pluginDir |
|
| 277 | + */ |
|
| 257 | 278 | protected function createConfigController($pluginDir, $code) |
| 258 | 279 | { |
| 259 | 280 | $snakecased = Container::underscore($code); |
@@ -348,7 +348,7 @@ |
||
| 348 | 348 | } |
| 349 | 349 | |
| 350 | 350 | /** |
| 351 | - * @return boolean |
|
| 351 | + * @return integer |
|
| 352 | 352 | */ |
| 353 | 353 | public function isVisible() |
| 354 | 354 | { |
@@ -161,6 +161,9 @@ |
||
| 161 | 161 | return empty($tables) ? false : true; |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | + /** |
|
| 165 | + * @param string $pluginDir |
|
| 166 | + */ |
|
| 164 | 167 | protected function getPluginDirectories($pluginDir) |
| 165 | 168 | { |
| 166 | 169 | $finder = (new Finder()) |
@@ -32,11 +32,17 @@ |
||
| 32 | 32 | $this->message = $message; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $message |
|
| 37 | + */ |
|
| 35 | 38 | public static function warn($message) |
| 36 | 39 | { |
| 37 | 40 | return new self(self::WARNING, $message); |
| 38 | 41 | } |
| 39 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $message |
|
| 45 | + */ |
|
| 40 | 46 | public static function error($message) |
| 41 | 47 | { |
| 42 | 48 | return new self(self::ERROR, $message); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * @param ProductClassRepository $productClassRepository |
| 57 | 57 | * @param CartService $cartService |
| 58 | 58 | * @param PurchaseFlow $cartPurchaseFlow |
| 59 | - * @param BaseInfo $BaseInfo |
|
| 59 | + * @param BaseInfo $baseInfo |
|
| 60 | 60 | */ |
| 61 | 61 | public function __construct( |
| 62 | 62 | ProductClassRepository $productClassRepository, |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | /** |
| 356 | 356 | * @param Request $request |
| 357 | 357 | * @param $csvTypeId |
| 358 | - * @param $fileName |
|
| 358 | + * @param string $fileName |
|
| 359 | 359 | * |
| 360 | 360 | * @return StreamedResponse |
| 361 | 361 | */ |
@@ -439,9 +439,9 @@ discard block |
||
| 439 | 439 | * @Route("/%eccube_admin_route%/shipping/{id}/order_status", requirements={"id" = "\d+"}, name="admin_shipping_update_order_status") |
| 440 | 440 | * |
| 441 | 441 | * @param Request $request |
| 442 | - * @param Shipping $shipping |
|
| 442 | + * @param Shipping $Shipping |
|
| 443 | 443 | * |
| 444 | - * @return RedirectResponse |
|
| 444 | + * @return \Symfony\Component\HttpFoundation\JsonResponse |
|
| 445 | 445 | */ |
| 446 | 446 | public function updateOrderStatus(Request $request, Shipping $Shipping) |
| 447 | 447 | { |
@@ -1323,7 +1323,7 @@ |
||
| 1323 | 1323 | * |
| 1324 | 1324 | * @param \Eccube\Entity\Shipping $Shipping |
| 1325 | 1325 | * |
| 1326 | - * @return Shipping |
|
| 1326 | + * @return Order |
|
| 1327 | 1327 | */ |
| 1328 | 1328 | public function addShipping(\Eccube\Entity\Shipping $Shipping) |
| 1329 | 1329 | { |
@@ -537,7 +537,7 @@ |
||
| 537 | 537 | /** |
| 538 | 538 | * ステータスごとの受注件数を取得する. |
| 539 | 539 | * |
| 540 | - * @param $OrderStatusOrId |
|
| 540 | + * @param integer $OrderStatusOrId |
|
| 541 | 541 | * |
| 542 | 542 | * @return int |
| 543 | 543 | * |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * 明細追加処理. |
| 217 | 217 | * |
| 218 | 218 | * @param ItemHolderInterface $itemHolder |
| 219 | - * @param $discount |
|
| 219 | + * @param integer $discount |
|
| 220 | 220 | */ |
| 221 | 221 | private function addPointDiscountItem(ItemHolderInterface $itemHolder, $discount) |
| 222 | 222 | { |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | /** |
| 256 | 256 | * ポイントを金額に変換する. |
| 257 | 257 | * |
| 258 | - * @param $point int ポイント |
|
| 258 | + * @param integer $point int ポイント |
|
| 259 | 259 | * |
| 260 | 260 | * @return int 金額 |
| 261 | 261 | */ |