Passed
Push — master ( 44c482...cc1bad )
by Jan
03:25
created
src/Entity/Part.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
  */
49 49
 class Part extends AttachmentContainingDBElement
50 50
 {
51
-    const INSTOCK_UNKNOWN   = -2;
51
+    const INSTOCK_UNKNOWN = -2;
52 52
 
53 53
     /**
54 54
      * @var Category
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function getIDString(): string
172 172
     {
173
-        return 'P' . sprintf('%06d', $this->getID());
173
+        return 'P'.sprintf('%06d', $this->getID());
174 174
     }
175 175
 
176 176
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         }
248 248
 
249 249
         foreach ($all_orderdetails as $orderdetails) {
250
-            if (! $orderdetails->getObsolete()) {
250
+            if (!$orderdetails->getObsolete()) {
251 251
                 return false;
252 252
             }
253 253
         }
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
         $prices = array();
611 611
 
612 612
         foreach ($this->getOrderdetails($hide_obsolete) as $details) {
613
-            $prices[] = $details->getPrice(! $float_array, $quantity, $multiplier);
613
+            $prices[] = $details->getPrice(!$float_array, $quantity, $multiplier);
614 614
         }
615 615
 
616 616
         if (\is_string($delimeter)) {
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
      */
829 829
     public function setInstockUnknown(bool $new_unknown) : self
830 830
     {
831
-        if($new_unknown == true) {
831
+        if ($new_unknown == true) {
832 832
             $this->instock = self::INSTOCK_UNKNOWN;
833 833
         } else {
834 834
             //Change only if instock is currently unknown.
Please login to merge, or discard this patch.
src/Controller/PartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             $em->persist($new_part);
108 108
             $em->flush();
109 109
             $this->addFlash('success', 'Article Created! Knowledge is power!');
110
-            return $this->redirectToRoute('part_edit',['id' => $new_part->getID()]);
110
+            return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]);
111 111
         }
112 112
 
113 113
 
Please login to merge, or discard this patch.