Completed
Push — experimental/3.1 ( 10e424...a981bd )
by Kiyotaka
55:16
created
src/Eccube/Controller/Admin/Customer/CustomerEditController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
                         ->setCompanyName($Customer->getCompanyName())
89 89
                         ->setZip01($Customer->getZip01())
90 90
                         ->setZip02($Customer->getZip02())
91
-                        ->setZipcode($Customer->getZip01() . $Customer->getZip02())
91
+                        ->setZipcode($Customer->getZip01().$Customer->getZip02())
92 92
                         ->setPref($Customer->getPref())
93 93
                         ->setAddr01($Customer->getAddr01())
94 94
                         ->setAddr02($Customer->getAddr02())
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
 use Doctrine\ORM\EntityManager;
27 27
 use Eccube\Annotation\Inject;
28 28
 use Eccube\Application;
29
-use Eccube\Common\Constant;
30 29
 use Eccube\Controller\AbstractController;
31 30
 use Eccube\Entity\CustomerAddress;
32 31
 use Eccube\Event\EccubeEvents;
@@ -35,12 +34,10 @@  discard block
 block discarded – undo
35 34
 use Eccube\Repository\CustomerRepository;
36 35
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
37 36
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
38
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
39 37
 use Symfony\Component\EventDispatcher\EventDispatcher;
40 38
 use Symfony\Component\Form\FormFactory;
41 39
 use Symfony\Component\HttpFoundation\Request;
42 40
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
43
-use Symfony\Component\Security\Core\Encoder\EncoderFactory;
44 41
 use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
45 42
 
46 43
 /**
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Product/ProductClassController.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
                                 'allow_add' => true,
139 139
                                 'allow_delete' => true,
140 140
                                 'data' => $ProductClasses,
141
-                             ));
141
+                                ));
142 142
 
143 143
                         $event = new EventArgs(
144 144
                             array(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                     $class2Valied = $this->isValiedCategory($ClassName2);
193 193
 
194 194
                     // 規格が選択されていないか、選択された状態で分類が保有されていれば、画面表示
195
-                    if($class1Valied && $class2Valied){
195
+                    if ($class1Valied && $class2Valied) {
196 196
                         $hasClassCategoryFlg = true;
197 197
                     }
198 198
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
             $mergeProductClasses = array();
270 270
 
271 271
             // 商品税率が設定されている場合、商品税率を項目に設定
272
-            if ($this->BaseInfo->isOptionProductTaxRule())  {
272
+            if ($this->BaseInfo->isOptionProductTaxRule()) {
273 273
                 foreach ($ProductClasses as $class) {
274 274
                     if ($class->getTaxRule()) {
275 275
                         $class->setTaxRate($class->getTaxRule()->getTaxRate());
Please login to merge, or discard this patch.
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -600,6 +600,9 @@  discard block
 block discarded – undo
600 600
     /**
601 601
      * 登録、更新時のエラー画面表示
602 602
      *
603
+     * @param Application $app
604
+     * @param boolean $not_product_class
605
+     * @param \Symfony\Component\Form\FormInterface $classForm
603 606
      */
604 607
     protected function render($app, $Product, $ProductClass, $not_product_class, $classForm, $error = null)
605 608
     {
@@ -651,6 +654,7 @@  discard block
 block discarded – undo
651 654
 
652 655
     /**
653 656
      * 規格1と規格2を組み合わせた商品規格を作成
657
+     * @param Application $app
654 658
      */
655 659
     private function createProductClasses($app, Product $Product, ClassName $ClassName1 = null, ClassName $ClassName2 = null)
656 660
     {
@@ -738,6 +742,7 @@  discard block
 block discarded – undo
738 742
      *
739 743
      * @param $productClassDest ProductClass コピー先となる商品規格
740 744
      * @param $productClassOrig ProductClass コピー元となる商品規格
745
+     * @param Application $app
741 746
      */
742 747
     private function setDefaultProductClass($app, $productClassDest, $productClassOrig) {
743 748
         $productClassDest->setDeliveryDuration($productClassOrig->getDeliveryDuration());
Please login to merge, or discard this patch.
src/Eccube/Twig/Extension/EccubeExtension.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * Returns a list of functions to add to the existing list.
42 42
      *
43
-     * @return array An array of functions
43
+     * @return \Twig_SimpleFunction[] An array of functions
44 44
      */
45 45
     public function getFunctions()
46 46
     {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * Returns a list of filters.
63 63
      *
64
-     * @return array
64
+     * @return \Twig_SimpleFilter[]
65 65
      */
66 66
     public function getFilters()
67 67
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                     if (is_callable($function)) {
69 69
                         return call_user_func_array($function, $arg_list);
70 70
                     }
71
-                    trigger_error('Called to an undefined function : php_'. $function, E_USER_WARNING);
71
+                    trigger_error('Called to an undefined function : php_'.$function, E_USER_WARNING);
72 72
 
73 73
             }, ['pre_escape' => 'html', 'is_safe' => ['html']]),
74 74
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     public function getCsrfTokenForAnchor()
157 157
     {
158 158
         $token = $this->app['csrf.token_manager']->getToken(Constant::TOKEN_NAME)->getValue();
159
-        return 'token-for-anchor=\'' . $token . '\'';
159
+        return 'token-for-anchor=\''.$token.'\'';
160 160
     }
161 161
 
162 162
     /**
Please login to merge, or discard this patch.
src/Eccube/Service/CsvImportService.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
 
118 118
         $this->file = $file;
119 119
         $this->file->setFlags(
120
-            \SplFileObject::READ_CSV |
121
-            \SplFileObject::SKIP_EMPTY |
122
-            \SplFileObject::READ_AHEAD |
120
+            \SplFileObject::READ_CSV|
121
+            \SplFileObject::SKIP_EMPTY|
122
+            \SplFileObject::READ_AHEAD|
123 123
             \SplFileObject::DROP_NEW_LINE
124 124
         );
125 125
         $this->file->setCsvControl(
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
             if ($count > 1) {
363 363
                 $incrementedHeaders[] = $header;
364 364
                 for ($i = 1; $i < $count; $i++) {
365
-                    $incrementedHeaders[] = $header . $i;
365
+                    $incrementedHeaders[] = $header.$i;
366 366
                 }
367 367
             } else {
368 368
                 $incrementedHeaders[] = $header;
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
     protected function convertEncodingRows($row) {
414 414
         if ('\\' === DIRECTORY_SEPARATOR && PHP_VERSION_ID >= 70000) {
415 415
             foreach ($row as &$col) {
416
-                $col = mb_convert_encoding($col , 'UTF-8', 'SJIS-win');
416
+                $col = mb_convert_encoding($col, 'UTF-8', 'SJIS-win');
417 417
             }
418 418
         }
419 419
         return $row;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 namespace Eccube\Service;
25 25
 
26 26
 use Eccube\Annotation\Service;
27
-use Eccube\Application;
28 27
 
29 28
 
30 29
 /**
Please login to merge, or discard this patch.
src/Eccube/Repository/Master/OrderStatusRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
         foreach ($criteria as $col => $val) {
55 55
             $qb->andWhere($qb->expr()->notIn('o.'.$col, ':'.$col))
56
-                ->setParameter($col, (array)$val);
56
+                ->setParameter($col, (array) $val);
57 57
         }
58 58
 
59 59
         if (is_array($orderBy)) {
Please login to merge, or discard this patch.
src/Eccube/Controller/Admin/Order/EditController.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                 $session->set('eccube.admin.order.customer.search', $searchData);
334 334
                 $session->set('eccube.admin.order.customer.search.page_no', $page_no);
335 335
             } else {
336
-                $searchData = (array)$session->get('eccube.admin.order.customer.search');
336
+                $searchData = (array) $session->get('eccube.admin.order.customer.search');
337 337
                 if (is_null($page_no)) {
338 338
                     $page_no = intval($session->get('eccube.admin.order.customer.search.page_no'));
339 339
                 } else {
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
                 $session->set('eccube.admin.order.product.search', $searchData);
490 490
                 $session->set('eccube.admin.order.product.search.page_no', $page_no);
491 491
             } else {
492
-                $searchData = (array)$session->get('eccube.admin.order.product.search');
492
+                $searchData = (array) $session->get('eccube.admin.order.product.search');
493 493
                 if (is_null($page_no)) {
494 494
                     $page_no = intval($session->get('eccube.admin.order.product.search.page_no'));
495 495
                 } else {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 
24 24
 namespace Eccube\Controller\Admin\Order;
25 25
 
26
-use Doctrine\Common\Collections\ArrayCollection;
27 26
 use Doctrine\ORM\EntityManager;
28 27
 use Eccube\Annotation\Inject;
29 28
 use Eccube\Application;
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/Paginator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     /**
58 58
      * Constructor.
59 59
      *
60
-     * @param Query|QueryBuilder $query               A Doctrine ORM query or query builder.
60
+     * @param Query $query               A Doctrine ORM query or query builder.
61 61
      * @param boolean            $fetchJoinCollection Whether the query joins a collection (true by default).
62 62
      */
63 63
     public function __construct($query, $fetchJoinCollection = true)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         if ($this->count === null) {
122 122
             try {
123 123
                 $this->count = array_sum(array_map('current', $this->getCountQuery()->getScalarResult()));
124
-            } catch(NoResultException $e) {
124
+            } catch (NoResultException $e) {
125 125
                 $this->count = 0;
126 126
             }
127 127
         }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         /* @var $countQuery Query */
242 242
         $countQuery = $this->cloneQuery($this->query);
243 243
 
244
-        if ( ! $countQuery->hasHint(CountWalker::HINT_DISTINCT)) {
244
+        if (!$countQuery->hasHint(CountWalker::HINT_DISTINCT)) {
245 245
             $countQuery->setHint(CountWalker::HINT_DISTINCT, true);
246 246
         }
247 247
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         foreach ($parameters as $key => $parameter) {
268 268
             $parameterName = $parameter->getName();
269 269
 
270
-            if( ! (isset($parameterMappings[$parameterName]) || array_key_exists($parameterName, $parameterMappings))) {
270
+            if (!(isset($parameterMappings[$parameterName]) || array_key_exists($parameterName, $parameterMappings))) {
271 271
                 unset($parameters[$key]);
272 272
             }
273 273
         }
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/WhereInWalker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $pathType = PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION;
90 90
         }
91 91
 
92
-        $pathExpression       = new PathExpression(PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, $identifierFieldName);
92
+        $pathExpression       = new PathExpression(PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias, $identifierFieldName);
93 93
         $pathExpression->type = $pathType;
94 94
 
95 95
         $count = $this->_getQuery()->getHint(self::HINT_PAGINATOR_ID_COUNT);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 array($pathExpression)
101 101
             );
102 102
             $expression = new InExpression($arithmeticExpression);
103
-            $expression->literals[] = new InputParameter(":" . self::PAGINATOR_ID_ALIAS);
103
+            $expression->literals[] = new InputParameter(":".self::PAGINATOR_ID_ALIAS);
104 104
 
105 105
         } else {
106 106
             $expression = new NullComparisonExpression($pathExpression);
Please login to merge, or discard this patch.
src/Eccube/Doctrine/ORM/Tools/Pagination/CountWalker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         }
70 70
 
71 71
         $pathExpression = new PathExpression(
72
-            PathExpression::TYPE_STATE_FIELD | PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias,
72
+            PathExpression::TYPE_STATE_FIELD|PathExpression::TYPE_SINGLE_VALUED_ASSOCIATION, $rootAlias,
73 73
             $identifierFieldName
74 74
         );
75 75
         $pathExpression->type = $pathType;
Please login to merge, or discard this patch.