Completed
Pull Request — master (#1504)
by Kentaro
41:35
created
src/Eccube/Controller/Admin/Product/ProductController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
         $form = $builder->getForm();
259 259
 
260 260
         if (!$has_class) {
261
-            $ProductClass->setStockUnlimited((boolean)$ProductClass->getStockUnlimited());
261
+            $ProductClass->setStockUnlimited((boolean) $ProductClass->getStockUnlimited());
262 262
             $form['class']->setData($ProductClass);
263 263
         }
264 264
 
Please login to merge, or discard this patch.
src/Eccube/Form/Type/Admin/SecurityType.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
                     new Assert\Length(array('max' => $this->config['stext_len'])),
57 57
                     new Assert\Regex(array(
58 58
                         'pattern' => "/^[0-9a-zA-Z]+$/",
59
-                   )),
59
+                    )),
60 60
                 ),
61 61
             ))
62 62
             ->add('admin_allow_host', 'textarea', array(
Please login to merge, or discard this patch.
src/Eccube/Repository/PluginEventHandlerRepository.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
         $qb = $this->createQueryBuilder('e')
42 42
             ->innerJoin('e.Plugin', 'p')
43 43
             ->andWhere('e.del_flg = 0 ')
44
-            ->Orderby('e.event','ASC')
45
-            ->addOrderby('e.priority','DESC');
44
+            ->Orderby('e.event', 'ASC')
45
+            ->addOrderby('e.priority', 'DESC');
46 46
         ;
47 47
 
48 48
         return $qb->getQuery()->getResult();
@@ -60,20 +60,20 @@  discard block
 block discarded – undo
60 60
             $range_start = PluginEventHandler::EVENT_PRIORITY_NORMAL_START;
61 61
             $range_end = PluginEventHandler::EVENT_PRIORITY_NORMAL_END;
62 62
         }
63
-        return array($range_start,$range_end);
63
+        return array($range_start, $range_end);
64 64
     }
65 65
 
66
-    public function calcNewPriority($event , $type)
66
+    public function calcNewPriority($event, $type)
67 67
     {
68
-        list($range_start,$range_end) = $this->getPriorityRange($type);
68
+        list($range_start, $range_end) = $this->getPriorityRange($type);
69 69
 
70 70
         $qb = $this->createQueryBuilder('e');
71 71
         $qb->andWhere("e.priority >= $range_end ")
72 72
             ->andWhere("e.priority <= $range_start ")
73 73
             ->andWhere('e.event = :event')
74
-            ->setParameter('event',$event)
74
+            ->setParameter('event', $event)
75 75
             ->setMaxResults(1)
76
-            ->orderBy('e.priority','ASC');
76
+            ->orderBy('e.priority', 'ASC');
77 77
 
78 78
         $result = $qb->getQuery()->getResult();
79 79
         if (count($result)) {
@@ -83,21 +83,21 @@  discard block
 block discarded – undo
83 83
         }
84 84
     }
85 85
 
86
-    public function upPriority($pluginEventHandler,$up = true)
86
+    public function upPriority($pluginEventHandler, $up = true)
87 87
     {
88
-        list($range_start,$range_end) = $this->getPriorityRange($pluginEventHandler->getHandlerType());
88
+        list($range_start, $range_end) = $this->getPriorityRange($pluginEventHandler->getHandlerType());
89 89
 
90 90
         $qb = $this->createQueryBuilder('e');
91 91
 
92 92
         $qb->andWhere("e.priority >= $range_end ")
93 93
             ->andWhere("e.priority <= $range_start ")
94 94
             ->andWhere("e.del_flg = 0 ")
95
-            ->andWhere('e.priority '.($up ?  '>' : '<' ).' :pri')
95
+            ->andWhere('e.priority '.($up ? '>' : '<').' :pri')
96 96
             ->andWhere('e.event = :event')
97
-            ->setParameter('event',$pluginEventHandler->getEvent())
98
-            ->setParameter('pri',  $pluginEventHandler->getPriority()  )
97
+            ->setParameter('event', $pluginEventHandler->getEvent())
98
+            ->setParameter('pri', $pluginEventHandler->getPriority())
99 99
             ->setMaxResults(1)
100
-            ->orderBy('e.priority', ($up ? 'ASC':'DESC' )  );
100
+            ->orderBy('e.priority', ($up ? 'ASC' : 'DESC'));
101 101
 
102 102
         $result = $qb->getQuery()->getResult();
103 103
 
Please login to merge, or discard this patch.