@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function setOrderQuantity(int $new_order_quantity) : self |
| 114 | 114 | { |
| 115 | - if($new_order_quantity < 0) |
|
| 115 | + if ($new_order_quantity < 0) |
|
| 116 | 116 | { |
| 117 | 117 | throw new \InvalidArgumentException("The new order quantity must not be negative!"); |
| 118 | 118 | } |
@@ -139,6 +139,6 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | public function getIDString(): string |
| 141 | 141 | { |
| 142 | - return 'D' . sprintf('%09d', $this->getID()); |
|
| 142 | + return 'D'.sprintf('%09d', $this->getID()); |
|
| 143 | 143 | } |
| 144 | 144 | } |
| 145 | 145 | \ No newline at end of file |
@@ -67,6 +67,6 @@ |
||
| 67 | 67 | */ |
| 68 | 68 | public function getIDString(): string |
| 69 | 69 | { |
| 70 | - return 'M' . sprintf('%06d', $this->getID()); |
|
| 70 | + return 'M'.sprintf('%06d', $this->getID()); |
|
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | \ No newline at end of file |
@@ -105,6 +105,6 @@ |
||
| 105 | 105 | */ |
| 106 | 106 | public function getIDString(): string |
| 107 | 107 | { |
| 108 | - return 'C' . sprintf('%09d', $this->getID()); |
|
| 108 | + return 'C'.sprintf('%09d', $this->getID()); |
|
| 109 | 109 | } |
| 110 | 110 | } |
@@ -116,6 +116,6 @@ |
||
| 116 | 116 | */ |
| 117 | 117 | public function getIDString(): string |
| 118 | 118 | { |
| 119 | - return 'L' . sprintf('%06d', $this->getID()); |
|
| 119 | + return 'L'.sprintf('%06d', $this->getID()); |
|
| 120 | 120 | } |
| 121 | 121 | } |
| 122 | 122 | \ No newline at end of file |
@@ -75,8 +75,8 @@ |
||
| 75 | 75 | ->createAdapter(ORMAdapter::class, [ |
| 76 | 76 | 'entity' => Part::class, |
| 77 | 77 | 'criteria' => [ |
| 78 | - function (QueryBuilder $builder) use($options) { |
|
| 79 | - if(isset($options['cid'])) { |
|
| 78 | + function(QueryBuilder $builder) use($options) { |
|
| 79 | + if (isset($options['cid'])) { |
|
| 80 | 80 | $builder->andWhere('part.category = :cid') |
| 81 | 81 | ->setParameter('cid', $options['cid']); |
| 82 | 82 | } |