@@ -270,6 +270,10 @@ discard block |
||
| 270 | 270 | return $str; |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | + /** |
|
| 274 | + * @param string $topDir |
|
| 275 | + * @param Request $request |
|
| 276 | + */ |
|
| 273 | 277 | private function getTree($topDir, $request) |
| 274 | 278 | { |
| 275 | 279 | $finder = Finder::create()->in($topDir) |
@@ -307,6 +311,10 @@ discard block |
||
| 307 | 311 | return $tree; |
| 308 | 312 | } |
| 309 | 313 | |
| 314 | + /** |
|
| 315 | + * @param Application $app |
|
| 316 | + * @param string $nowDir |
|
| 317 | + */ |
|
| 310 | 318 | private function getFileList($app, $nowDir) |
| 311 | 319 | { |
| 312 | 320 | $topDir = $this->appConfig['user_data_realdir']; |
@@ -366,6 +374,9 @@ discard block |
||
| 366 | 374 | return (strpos($targetDir, $topDir) === 0); |
| 367 | 375 | } |
| 368 | 376 | |
| 377 | + /** |
|
| 378 | + * @return string |
|
| 379 | + */ |
|
| 369 | 380 | private function convertStrFromServer($target) |
| 370 | 381 | { |
| 371 | 382 | if ($this->encode == self::SJIS) { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | private $error = null; |
| 65 | 65 | private $encode = ''; |
| 66 | 66 | |
| 67 | - public function __construct(){ |
|
| 67 | + public function __construct() { |
|
| 68 | 68 | $this->encode = self::UTF; |
| 69 | 69 | if ('\\' === DIRECTORY_SEPARATOR) { |
| 70 | 70 | $this->encode = self::SJIS; |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $arrFileList = $this->getFileList($app, $nowDir); |
| 114 | 114 | |
| 115 | 115 | $javascript = $this->getJsArrayList($tree); |
| 116 | - $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '" . $nowDir . "', 'tree_select_file', 'tree_status', 'move');"; |
|
| 116 | + $onload = "eccube.fileManager.viewFileTree('tree', arrTree, '".$nowDir."', 'tree_select_file', 'tree_status', 'move');"; |
|
| 117 | 117 | |
| 118 | 118 | return [ |
| 119 | 119 | 'form' => $form->createView(), |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | $nowDir = $this->checkDir($request->get('now_dir'), $topDir) |
| 175 | 175 | ? $this->normalizePath($request->get('now_dir')) |
| 176 | 176 | : $topDir; |
| 177 | - $fs->mkdir($nowDir . '/' . $filename); |
|
| 177 | + $fs->mkdir($nowDir.'/'.$filename); |
|
| 178 | 178 | } |
| 179 | 179 | } |
| 180 | 180 | } |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | { |
| 260 | 260 | $str = "arrTree = new Array();\n"; |
| 261 | 261 | foreach ($tree as $key => $val) { |
| 262 | - $str .= 'arrTree[' . $key . "] = new Array(" . $key . ", '" . $val['type'] . "', '" . $val['path'] . "', " . $val['rank'] . ','; |
|
| 262 | + $str .= 'arrTree['.$key."] = new Array(".$key.", '".$val['type']."', '".$val['path']."', ".$val['rank'].','; |
|
| 263 | 263 | if ($val['open']) { |
| 264 | 264 | $str .= "true);\n"; |
| 265 | 265 | } else { |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | private function getFileList($app, $nowDir) |
| 311 | 311 | { |
| 312 | 312 | $topDir = $this->appConfig['user_data_realdir']; |
| 313 | - $filter = function (\SplFileInfo $file) use ($topDir) { |
|
| 313 | + $filter = function(\SplFileInfo $file) use ($topDir) { |
|
| 314 | 314 | $acceptPath = realpath($topDir); |
| 315 | 315 | $targetPath = $file->getRealPath(); |
| 316 | 316 | return (strpos($targetPath, $acceptPath) === 0); |
@@ -34,7 +34,6 @@ |
||
| 34 | 34 | use Eccube\Form\Type\Admin\MemberType; |
| 35 | 35 | use Eccube\Repository\MemberRepository; |
| 36 | 36 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 37 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
|
| 38 | 37 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 39 | 38 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 40 | 39 | use Symfony\Component\EventDispatcher\EventDispatcher; |
@@ -474,7 +474,7 @@ |
||
| 474 | 474 | * |
| 475 | 475 | * @param Application $app |
| 476 | 476 | * @param array $data リクエストパラメータ |
| 477 | - * @return array |
|
| 477 | + * @return \Symfony\Component\Validator\ConstraintViolationListInterface[] |
|
| 478 | 478 | */ |
| 479 | 479 | protected function customerValidation(Application $app, array $data) |
| 480 | 480 | { |
@@ -59,7 +59,6 @@ |
||
| 59 | 59 | protected $app; |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @param array $config |
|
| 63 | 62 | */ |
| 64 | 63 | public function __construct() |
| 65 | 64 | { |
@@ -48,7 +48,6 @@ |
||
| 48 | 48 | /** |
| 49 | 49 | * SearchProductType constructor. |
| 50 | 50 | * |
| 51 | - * @param Application $app |
|
| 52 | 51 | */ |
| 53 | 52 | public function __construct() |
| 54 | 53 | { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * @deprecated 呼び出し元で制御する |
| 50 | 50 | * @param $block_id |
| 51 | 51 | * @param $DeviceType |
| 52 | - * @return array|\Eccube\Entity\Block |
|
| 52 | + * @return Block|null |
|
| 53 | 53 | */ |
| 54 | 54 | public function findOrCreate($block_id, $DeviceType) |
| 55 | 55 | { |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * ブロック一覧の取得. |
| 112 | 112 | * |
| 113 | 113 | * @param \Eccube\Entity\Master\DeviceType $DeviceType |
| 114 | - * @return array |
|
| 114 | + * @return null|\Symfony\Component\HttpFoundation\Request |
|
| 115 | 115 | */ |
| 116 | 116 | public function getList($DeviceType) |
| 117 | 117 | { |
@@ -197,7 +197,7 @@ |
||
| 197 | 197 | $this->appConfig['block_default_realdir'], |
| 198 | 198 | ); |
| 199 | 199 | foreach ($readPaths as $readPath) { |
| 200 | - $filePath = $readPath . '/' . $fileName . '.twig'; |
|
| 200 | + $filePath = $readPath.'/'.$fileName.'.twig'; |
|
| 201 | 201 | $fs = new Filesystem(); |
| 202 | 202 | if ($fs->exists($filePath)) { |
| 203 | 203 | return array( |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @deprecated 呼び出し元で制御する |
| 43 | - * @param $id |
|
| 43 | + * @param integer $id |
|
| 44 | 44 | * @return \Eccube\Entity\Delivery|null|object |
| 45 | 45 | */ |
| 46 | 46 | public function findOrCreate($id) |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | /** |
| 135 | 135 | * @param \Eccube\Entity\Member $Member |
| 136 | 136 | * |
| 137 | - * @return void |
|
| 137 | + * @return boolean |
|
| 138 | 138 | */ |
| 139 | 139 | public function up(\Eccube\Entity\Member $Member) |
| 140 | 140 | { |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | /** |
| 274 | 274 | * saltを生成する |
| 275 | 275 | * |
| 276 | - * @param $byte |
|
| 276 | + * @param integer $byte |
|
| 277 | 277 | * @return string |
| 278 | 278 | */ |
| 279 | 279 | public function createSalt($byte) |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | |
| 27 | 27 | use Eccube\Annotation\Repository; |
| 28 | 28 | use Eccube\Annotation\Inject; |
| 29 | -use Eccube\Common\Constant; |
|
| 30 | 29 | use Eccube\Entity\Member; |
| 31 | 30 | use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface; |
| 32 | 31 | use Symfony\Component\Security\Core\Exception\UnsupportedUserException; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Eccube\Service\PurchaseFlow\Processor; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\DBAL\LockMode; |
| 6 | -use Eccube\Annotation\Inject; |
|
| 7 | 6 | use Eccube\Common\Constant; |
| 8 | 7 | use Eccube\Entity\ItemInterface; |
| 9 | 8 | use Eccube\Entity\ShipmentItem; |