@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function countByCustomerAndCoupon(CustomerInterface $customer, PromotionCouponInterface $coupon) |
83 | 83 | { |
84 | - return (int)$this->createQueryBuilder('o') |
|
84 | + return (int) $this->createQueryBuilder('o') |
|
85 | 85 | ->addSelect('count(o.id)') |
86 | 86 | ->andWhere('o.customer = :customer') |
87 | 87 | ->andWhere('o.promotionCoupon = :coupon') |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public function countByCustomer(CustomerInterface $customer) |
101 | 101 | { |
102 | - return (int)$this->createQueryBuilder('o') |
|
102 | + return (int) $this->createQueryBuilder('o') |
|
103 | 103 | ->addSelect('count(o.id)') |
104 | 104 | ->andWhere('o.customer = :customer') |
105 | 105 | ->andWhere('o.state NOT IN :states') |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function getTotalSalesForChannel(ChannelInterface $channel) |
168 | 168 | { |
169 | - return (int)$this->createQueryBuilder('o') |
|
169 | + return (int) $this->createQueryBuilder('o') |
|
170 | 170 | ->addSelect('SUM(o.total)') |
171 | 171 | ->andWhere('o.channel = :channel') |
172 | 172 | ->andWhere('o.state NOT IN :states') |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | public function countByChannel(ChannelInterface $channel) |
184 | 184 | { |
185 | - return (int)$this->createQueryBuilder('o') |
|
185 | + return (int) $this->createQueryBuilder('o') |
|
186 | 186 | ->addSelect('COUNT(o.id)') |
187 | 187 | ->andWhere('o.channel = :channel') |
188 | 188 | ->andWhere('o.state NOT IN :states') |