Completed
Pull Request — master (#1504)
by Kentaro
60:07 queued 04:12
created
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.
src/Eccube/Service/CsvImportService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,9 +116,9 @@
 block discarded – undo
116 116
 
117 117
         $this->file = $file;
118 118
         $this->file->setFlags(
119
-            \SplFileObject::READ_CSV |
120
-            \SplFileObject::SKIP_EMPTY |
121
-            \SplFileObject::READ_AHEAD |
119
+            \SplFileObject::READ_CSV|
120
+            \SplFileObject::SKIP_EMPTY|
121
+            \SplFileObject::READ_AHEAD|
122 122
             \SplFileObject::DROP_NEW_LINE
123 123
         );
124 124
         $this->file->setCsvControl(
Please login to merge, or discard this patch.