Passed
Push — master ( a12802...95e0ae )
by Jan
04:21
created
tests/Controller/AdminPages/LabelProfileControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
 
54 54
         //Page is redirected to '/new', when delete was successful
55 55
         $this->assertSame($delete, $client->getResponse()->isRedirect(static::$base_path.'/new'));
56
-        $this->assertSame($delete, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
56
+        $this->assertSame($delete, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
57 57
     }
58 58
 }
59 59
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Services/Misc/RangeParserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             [[1, 2, 3, 4], "1, 2,3 -   4"],
50 50
             [[1, 2, 3], "  1; 2, 3"],
51 51
             [[-1, 0, 1, 2], "-1; 0; 1, 2"],
52
-            [[4,3, 1, 2], "4,3, 1;2"],
52
+            [[4, 3, 1, 2], "4,3, 1;2"],
53 53
             [[1, 2, 3, 4], "2-1, 3-4"],
54 54
             [[1], "1-1"],
55 55
             [[-3, -2, -1], "-3--1"],
Please login to merge, or discard this patch.
src/Helpers/LabelResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     {
47 47
         parent::prepare($request);
48 48
 
49
-        $this->headers->set('Content-Type','application/pdf');
49
+        $this->headers->set('Content-Type', 'application/pdf');
50 50
 
51 51
 
52 52
         if ('HTTP/1.0' !== $request->server->get('SERVER_PROTOCOL')) {
Please login to merge, or discard this patch.
src/Repository/LabelProfileRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
             if (!empty($type_children)) {
66 66
                 //Use default label e.g. 'part_label'. $$ marks that it will be translated in TreeViewGenerator
67
-                $tmp = new TreeViewNode('$$' . $type . '.label', null, $type_children);
67
+                $tmp = new TreeViewNode('$$'.$type.'.label', null, $type_children);
68 68
 
69 69
                 $result[] = $tmp;
70 70
             }
Please login to merge, or discard this patch.
src/Twig/Sandbox/InheritanceSecurityPolicy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     {
59 59
         $this->allowedMethods = [];
60 60
         foreach ($methods as $class => $m) {
61
-            $this->allowedMethods[$class] = array_map(function ($value) { return strtr($value, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); }, \is_array($m) ? $m : [$m]);
61
+            $this->allowedMethods[$class] = array_map(function($value) { return strtr($value, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); }, \is_array($m) ? $m : [$m]);
62 62
         }
63 63
     }
64 64
 
Please login to merge, or discard this patch.
src/Controller/AdminPages/LabelProfileController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      *
96 96
      * @return Response
97 97
      */
98
-    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?AttachmentType $entity = null): Response
98
+    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?AttachmentType $entity = null) : Response
99 99
     {
100 100
         return $this->_new($request, $em, $importer, $entity);
101 101
     }
Please login to merge, or discard this patch.
src/Controller/LabelController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,15 +146,15 @@
 block discarded – undo
146 146
 
147 147
     protected function getLabelName(AbstractDBElement $element, ?LabelProfile $profile = null): string
148 148
     {
149
-        $ret = 'label_' . $this->elementTypeNameGenerator->getLocalizedTypeLabel($element);
149
+        $ret = 'label_'.$this->elementTypeNameGenerator->getLocalizedTypeLabel($element);
150 150
         $ret .= $element->getID();
151 151
 
152
-        return $ret . '.pdf';
152
+        return $ret.'.pdf';
153 153
     }
154 154
 
155 155
     protected function findObjects(string $type, string $ids): array
156 156
     {
157
-        if(!isset(LabelGenerator::CLASS_SUPPORT_MAPPING[$type])) {
157
+        if (!isset(LabelGenerator::CLASS_SUPPORT_MAPPING[$type])) {
158 158
             throw new \InvalidArgumentException('The given type is not known and can not be mapped to a class!');
159 159
         }
160 160
 
Please login to merge, or discard this patch.
src/Validator/Constraints/Misc/ValidRangeValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             throw new UnexpectedValueException($value, 'string');
54 54
         }
55 55
 
56
-        if(!$this->rangeParser->isValidRange($value)) {
56
+        if (!$this->rangeParser->isValidRange($value)) {
57 57
             $this->context->buildViolation($constraint->message)
58 58
                 ->addViolation();
59 59
         }
Please login to merge, or discard this patch.
src/Services/LabelSystem/Barcodes/BarcodeRedirector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                 return $this->urlGenerator->generate('part_list_store_location', ['id' => $id]);
64 64
 
65 65
             default:
66
-                throw new \InvalidArgumentException('Unknown $type: ' . $type);
66
+                throw new \InvalidArgumentException('Unknown $type: '.$type);
67 67
         }
68 68
     }
69 69
 }
70 70
\ No newline at end of file
Please login to merge, or discard this patch.