Passed
Push — master ( 5c3032...f1c3a5 )
by Jan
08:21
created
tests/DatatablesAvailabilityTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         ]);
61 61
         $client->catchExceptions(false);
62 62
         $client->request('GET', $url);
63
-        $this->assertTrue($client->getResponse()->isSuccessful(), 'Request not successful. Status code is '.$client->getResponse()->getStatusCode() . ' for URL '.$url);
63
+        $this->assertTrue($client->getResponse()->isSuccessful(), 'Request not successful. Status code is '.$client->getResponse()->getStatusCode().' for URL '.$url);
64 64
 
65 65
         static::ensureKernelShutdown();
66 66
         $client = static::createClient([], [
Please login to merge, or discard this patch.
tests/Twig/TwigCoreExtensionTest.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
         //Check for simple objects
48 48
         $this->assertSame([], $this->service->toArray(new \stdClass()));
49
-        $this->assertSame(['test' => 1], $this->service->toArray((object)['test' => 1]));
49
+        $this->assertSame(['test' => 1], $this->service->toArray((object) ['test' => 1]));
50 50
 
51 51
         //Only test and test4 should be available
52 52
         $obj = new class {
Please login to merge, or discard this patch.
tests/Services/Attachments/AttachmentPathResolverTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -147,16 +147,16 @@
 block discarded – undo
147 147
         $this->projectDir = str_replace('\\', '/', $this->projectDir_orig);
148 148
         $this->footprint_path = $this->projectDir.'/public/img/footprints';
149 149
 
150
-        yield [$this->footprint_path. '/Active/Diodes/THT/DIODE_P600.png', '%FOOTPRINTS%/Aktiv/Dioden/Bedrahtet/DIODE_P600.png'];
151
-        yield [$this->footprint_path . '/Passive/Resistors/THT/Carbon/RESISTOR-CARBON_0207.png', '%FOOTPRINTS%/Passiv/Widerstaende/Bedrahtet/Kohleschicht/WIDERSTAND-KOHLE_0207.png'];
152
-        yield [$this->footprint_path . '/Optics/LEDs/THT/LED-GREEN_3MM.png', '%FOOTPRINTS%/Optik/LEDs/Bedrahtet/LED-GRUEN_3MM.png'];
153
-        yield [$this->footprint_path . '/Passive/Capacitors/TrimmerCapacitors/TRIMMER_CAPACITOR-RED_TZ03F.png', '%FOOTPRINTS%/Passiv/Kondensatoren/Trimmkondensatoren/TRIMMKONDENSATOR-ROT_TZ03F.png'];
154
-        yield [$this->footprint_path . '/Active/ICs/TO/IC_TO126.png', '%FOOTPRINTS%/Aktiv/ICs/TO/IC_TO126.png'];
155
-        yield [$this->footprint_path . '/Electromechanics/Switches_Buttons/RotarySwitches/ROTARY_SWITCH_DIP10.png', '%FOOTPRINTS%/Elektromechanik/Schalter_Taster/Drehschalter/DREHSCHALTER_DIP10.png'];
156
-        yield [$this->footprint_path . '/Electromechanics/Connectors/DINConnectors/SOCKET_DIN_MAB_4.png', '%FOOTPRINTS%/Elektromechanik/Verbinder/Rundsteckverbinder/BUCHSE_DIN_MAB_4.png'];
150
+        yield [$this->footprint_path.'/Active/Diodes/THT/DIODE_P600.png', '%FOOTPRINTS%/Aktiv/Dioden/Bedrahtet/DIODE_P600.png'];
151
+        yield [$this->footprint_path.'/Passive/Resistors/THT/Carbon/RESISTOR-CARBON_0207.png', '%FOOTPRINTS%/Passiv/Widerstaende/Bedrahtet/Kohleschicht/WIDERSTAND-KOHLE_0207.png'];
152
+        yield [$this->footprint_path.'/Optics/LEDs/THT/LED-GREEN_3MM.png', '%FOOTPRINTS%/Optik/LEDs/Bedrahtet/LED-GRUEN_3MM.png'];
153
+        yield [$this->footprint_path.'/Passive/Capacitors/TrimmerCapacitors/TRIMMER_CAPACITOR-RED_TZ03F.png', '%FOOTPRINTS%/Passiv/Kondensatoren/Trimmkondensatoren/TRIMMKONDENSATOR-ROT_TZ03F.png'];
154
+        yield [$this->footprint_path.'/Active/ICs/TO/IC_TO126.png', '%FOOTPRINTS%/Aktiv/ICs/TO/IC_TO126.png'];
155
+        yield [$this->footprint_path.'/Electromechanics/Switches_Buttons/RotarySwitches/ROTARY_SWITCH_DIP10.png', '%FOOTPRINTS%/Elektromechanik/Schalter_Taster/Drehschalter/DREHSCHALTER_DIP10.png'];
156
+        yield [$this->footprint_path.'/Electromechanics/Connectors/DINConnectors/SOCKET_DIN_MAB_4.png', '%FOOTPRINTS%/Elektromechanik/Verbinder/Rundsteckverbinder/BUCHSE_DIN_MAB_4.png'];
157 157
 
158 158
         //Leave english pathes untouched
159
-        yield [$this->footprint_path . '/Passive/Capacitors/CAPACITOR_CTS_A_15MM.png', '%FOOTPRINTS%/Passive/Capacitors/CAPACITOR_CTS_A_15MM.png'];
159
+        yield [$this->footprint_path.'/Passive/Capacitors/CAPACITOR_CTS_A_15MM.png', '%FOOTPRINTS%/Passive/Capacitors/CAPACITOR_CTS_A_15MM.png'];
160 160
     }
161 161
 
162 162
     /**
Please login to merge, or discard this patch.
tests/Entity/UserSystem/UserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
         $this->assertTrue($user->isWebAuthnAuthenticatorEnabled());
144 144
 
145 145
         $result = $user->getWebauthnKeys();
146
-        if($result instanceof Collection){
146
+        if ($result instanceof Collection) {
147 147
             $result->clear();
148 148
         }
149 149
         $this->assertFalse($user->isWebAuthnAuthenticatorEnabled());
Please login to merge, or discard this patch.
src/Twig/TwigCoreExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
             /*
45 45
              * Checks if a given variable is an instance of a given class. E.g. ` x is instanceof('App\Entity\Parts\Part')`
46 46
              */
47
-            new TwigTest('instanceof', static function ($var, $instance) {
47
+            new TwigTest('instanceof', static function($var, $instance) {
48 48
                 return $var instanceof $instance;
49 49
             }),
50 50
             /* Checks if a given variable is an object. E.g. `x is object` */
51
-            new TwigTest('object', static function ($var) {
51
+            new TwigTest('object', static function($var) {
52 52
                 return is_object($var);
53 53
             }),
54 54
         ];
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function toArray($object)
66 66
     {
67
-        if(! is_object($object) && ! is_array($object)) {
67
+        if (!is_object($object) && !is_array($object)) {
68 68
             throw new \InvalidArgumentException('The given variable is not an object or array!');
69 69
         }
70 70
 
71 71
         //If it is already an array, we can just return it
72
-        if(is_array($object)) {
72
+        if (is_array($object)) {
73 73
             return $object;
74 74
         }
75 75
 
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
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         $this->allowedMethods = [];
66 66
         foreach ($methods as $class => $m) {
67 67
             $this->allowedMethods[$class] = array_map(
68
-                static function ($value) { return strtr($value, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); }, is_array($m) ? $m : [$m]);
68
+                static function($value) { return strtr($value, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); }, is_array($m) ? $m : [$m]);
69 69
         }
70 70
     }
71 71
 
Please login to merge, or discard this patch.
src/Twig/EntityExtension.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
         return [
60 60
             /* Checks if the given variable is an entitity (instance of AbstractDBElement) */
61
-            new TwigTest('entity', static function ($var) {
61
+            new TwigTest('entity', static function($var) {
62 62
                 return $var instanceof AbstractDBElement;
63 63
             }),
64 64
         ];
Please login to merge, or discard this patch.
src/Migration/AbstractMultiPlatformMigration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
     public function postUp(Schema $schema): void
131 131
     {
132 132
         parent::postUp($schema);
133
-        if($this->permissions_updated) {
133
+        if ($this->permissions_updated) {
134 134
             $this->logger->warning('<question>[!!!] Permissions were updated! Please check if they fit your expectations!</question>');
135 135
         }
136 136
 
Please login to merge, or discard this patch.
src/Controller/AdminPages/ProjectAdminController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      * @Route("/{id}/clone", name="device_clone")
71 71
      * @Route("/")
72 72
      */
73
-    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Project $entity = null): Response
73
+    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Project $entity = null) : Response
74 74
     {
75 75
         return $this->_new($request, $em, $importer, $entity);
76 76
     }
Please login to merge, or discard this patch.