Passed
Push — master ( 4d3ecc...216ef2 )
by Jan
02:42
created
src/Entity/Part.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
  */
47 47
 class Part extends AttachmentContainingDBElement
48 48
 {
49
-    const INSTOCK_UNKNOWN   = -2;
49
+    const INSTOCK_UNKNOWN = -2;
50 50
 
51 51
     /**
52 52
      * @var Category
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function getIDString(): string
168 168
     {
169
-        return 'P' . sprintf('%06d', $this->getID());
169
+        return 'P'.sprintf('%06d', $this->getID());
170 170
     }
171 171
 
172 172
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         }
244 244
 
245 245
         foreach ($all_orderdetails as $orderdetails) {
246
-            if (! $orderdetails->getObsolete()) {
246
+            if (!$orderdetails->getObsolete()) {
247 247
                 return false;
248 248
             }
249 249
         }
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
         $prices = array();
607 607
 
608 608
         foreach ($this->getOrderdetails($hide_obsolete) as $details) {
609
-            $prices[] = $details->getPrice(! $float_array, $quantity, $multiplier);
609
+            $prices[] = $details->getPrice(!$float_array, $quantity, $multiplier);
610 610
         }
611 611
 
612 612
         if (\is_string($delimeter)) {
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
      */
825 825
     public function setInstockUnknown(bool $new_unknown) : self
826 826
     {
827
-        if($new_unknown == true) {
827
+        if ($new_unknown == true) {
828 828
             $this->instock = self::INSTOCK_UNKNOWN;
829 829
         } else {
830 830
             //Change only if instock is currently unknown.
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
      */
845 845
     public function withdrawalParts(int $count, $comment = null) : self
846 846
     {
847
-        Assert::greaterThan($count,0, 'Count of withdrawn parts must be greater 0! Got %s!');
847
+        Assert::greaterThan($count, 0, 'Count of withdrawn parts must be greater 0! Got %s!');
848 848
         Assert::greaterThan($count, $this->instock, 'You can not withdraw more parts, than there are existing!');
849 849
 
850 850
         $old_instock = $this->getInstock();
@@ -981,7 +981,7 @@  discard block
 block discarded – undo
981 981
      */
982 982
     public function setOrderQuantity(int $new_order_quantity) : self
983 983
     {
984
-        Assert::greaterThan($new_order_quantity,0, 'The new order quantity must be greater zero. Got %s!');
984
+        Assert::greaterThan($new_order_quantity, 0, 'The new order quantity must be greater zero. Got %s!');
985 985
 
986 986
         $this->order_quantity = $new_order_quantity;
987 987
 
Please login to merge, or discard this patch.
src/Entity/Device.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Entity/Manufacturer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Entity/Category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,6 +105,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/DataTables/PartsDataTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
src/Entity/Storelocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      */
100 100
     public function getIDString(): string
101 101
     {
102
-        return 'L' . sprintf('%06d', $this->getID());
102
+        return 'L'.sprintf('%06d', $this->getID());
103 103
     }
104 104
 
105 105
 }
106 106
\ No newline at end of file
Please login to merge, or discard this patch.