Passed
Push — master ( ccdac1...a3c626 )
by Jan
04:20
created
src/Entity/Parts/PartLot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
      */
294 294
     public function getAmount(): float
295 295
     {
296
-        if ($this->part instanceof Part && ! $this->part->useFloatAmount()) {
296
+        if ($this->part instanceof Part && !$this->part->useFloatAmount()) {
297 297
             return round($this->amount);
298 298
         }
299 299
 
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 
329 329
     public function __clone()
330 330
     {
331
-        if($this->id) {
331
+        if ($this->id) {
332 332
             $this->addedDate = null;
333 333
         }
334 334
         parent::__clone();
Please login to merge, or discard this patch.
src/Controller/PartController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             $timeTravel->revertEntityToTimestamp($part, $timeTravel_timestamp);
111 111
         }
112 112
 
113
-        if ($this->isGranted('show_history', $part) ) {
113
+        if ($this->isGranted('show_history', $part)) {
114 114
             $table = $dataTable->createFromType(LogDataTable::class, [
115 115
                 'filter_elements' => $historyHelper->getAssociatedElements($part),
116 116
                 'mode' => 'element_history'
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             $this->addFlash('info', 'part.edited_flash');
183 183
             //Reload form, so the SIUnitType entries use the new part unit
184 184
             $form = $this->createForm(PartBaseType::class, $part);
185
-        } elseif ($form->isSubmitted() && ! $form->isValid()) {
185
+        } elseif ($form->isSubmitted() && !$form->isValid()) {
186 186
             $this->addFlash('error', 'part.edited_flash.invalid');
187 187
         }
188 188
 
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
      * @return Response
235 235
      */
236 236
     public function new(Request $request, EntityManagerInterface $em, TranslatorInterface $translator,
237
-        AttachmentManager $attachmentHelper, AttachmentSubmitHandler $attachmentSubmitHandler, ?Part $part = null): Response
237
+        AttachmentManager $attachmentHelper, AttachmentSubmitHandler $attachmentSubmitHandler, ?Part $part = null) : Response
238 238
     {
239
-        if($part === null) {
239
+        if ($part === null) {
240 240
             $new_part = new Part();
241 241
         } else {
242 242
             $new_part = clone $part;
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
             return $this->redirectToRoute('part_edit', ['id' => $new_part->getID()]);
285 285
         }
286 286
 
287
-        if ($form->isSubmitted() && ! $form->isValid()) {
287
+        if ($form->isSubmitted() && !$form->isValid()) {
288 288
             $this->addFlash('error', 'part.created_flash.invalid');
289 289
         }
290 290
 
Please login to merge, or discard this patch.