Passed
Push — master ( a27a6e...e6a3c4 )
by Jan
04:52
created
src/Form/Type/CurrencyEntityType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         // This options allows you to override the currency shown for the null value
73 73
         $resolver->setDefault('base_currency', null);
74 74
 
75
-        $resolver->setDefault('empty_message', function (Options $options) {
75
+        $resolver->setDefault('empty_message', function(Options $options) {
76 76
             //By default we use the global base currency:
77 77
             $iso_code = $this->base_currency;
78 78
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         //Similar to StructuralEntityType, but we use the currency symbol instead if available
90 90
 
91
-        if (! $choice instanceof Currency) {
91
+        if (!$choice instanceof Currency) {
92 92
             throw new \InvalidArgumentException('$choice must be an currency object!');
93 93
         }
94 94
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         /** @var Currency $choice */
118 118
         $tmp = [];
119 119
 
120
-        if (! empty($choice->getIsoCode())) {
120
+        if (!empty($choice->getIsoCode())) {
121 121
             //Show the name of the currency
122 122
             $tmp += ['data-subtext' => $choice->getName()];
123 123
         }
Please login to merge, or discard this patch.
src/Repository/LogEntryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
         $query = $qb->getQuery();
172 172
         $count = $query->getSingleScalarResult();
173 173
 
174
-        return ! ($count > 0);
174
+        return !($count > 0);
175 175
     }
176 176
 
177 177
     /**
Please login to merge, or discard this patch.
src/DataTables/Column/LogEntryTargetColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         $tmp = '';
99 99
 
100 100
         //The element is existing
101
-        if ($target instanceof NamedElementInterface && ! empty($target->getName())) {
101
+        if ($target instanceof NamedElementInterface && !empty($target->getName())) {
102 102
             try {
103 103
                 $tmp = sprintf(
104 104
                     '<a href="%s">%s</a>',
Please login to merge, or discard this patch.
src/Services/EntityURLGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -381,7 +381,7 @@
 block discarded – undo
381 381
         $class = get_class($entity);
382 382
 
383 383
         //Check if we have an direct mapping for the given class
384
-        if (! array_key_exists($class, $map)) {
384
+        if (!array_key_exists($class, $map)) {
385 385
             //Check if we need to check inheritance by looping through our map
386 386
             foreach (array_keys($map) as $key) {
387 387
                 if (is_a($entity, $key)) {
Please login to merge, or discard this patch.
src/Services/Parameters/ParameterExtractor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function extractParameters(string $input, string $class = PartParameter::class): array
42 42
     {
43
-        if (! is_a($class, AbstractParameter::class, true)) {
43
+        if (!is_a($class, AbstractParameter::class, true)) {
44 44
             throw new \InvalidArgumentException('$class must be a child class of AbstractParameter!');
45 45
         }
46 46
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         $matches = [];
70 70
         \preg_match($regex, $input, $matches);
71
-        if (! empty($matches)) {
71
+        if (!empty($matches)) {
72 72
             [, $name, $value] = $matches;
73 73
             $value = trim($value);
74 74
 
Please login to merge, or discard this patch.
tests/Controller/AdminPages/AbstractAdminControllerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $client->request('GET', static::$base_path.'/new');
91 91
         $this->assertFalse($client->getResponse()->isRedirect());
92 92
         $this->assertSame($read, $client->getResponse()->isSuccessful(), 'Controller was not successful!');
93
-        $this->assertSame($read, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
93
+        $this->assertSame($read, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
94 94
     }
95 95
 
96 96
     /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $client->request('GET', static::$base_path.'/1');
116 116
         $this->assertFalse($client->getResponse()->isRedirect());
117 117
         $this->assertSame($read, $client->getResponse()->isSuccessful(), 'Controller was not successful!');
118
-        $this->assertSame($read, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
118
+        $this->assertSame($read, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
119 119
     }
120 120
 
121 121
     public function deleteDataProvider(): array
@@ -152,6 +152,6 @@  discard block
 block discarded – undo
152 152
 
153 153
         //Page is redirected to '/new', when delete was successful
154 154
         $this->assertSame($delete, $client->getResponse()->isRedirect(static::$base_path.'/new'));
155
-        $this->assertSame($delete, ! $client->getResponse()->isForbidden(), 'Permission Checking not working!');
155
+        $this->assertSame($delete, !$client->getResponse()->isForbidden(), 'Permission Checking not working!');
156 156
     }
157 157
 }
Please login to merge, or discard this patch.
src/EventSubscriber/SymfonyDebugToolbarSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
     public function onKernelResponse(ResponseEvent $event): void
83 83
     {
84
-        if (! $this->kernel_debug) {
84
+        if (!$this->kernel_debug) {
85 85
             return;
86 86
         }
87 87
 
Please login to merge, or discard this patch.
src/Security/Voter/ExtendedVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         }
77 77
 
78 78
         // if the user is anonymous, we use the anonymous user.
79
-        if (! $user instanceof User) {
79
+        if (!$user instanceof User) {
80 80
             /** @var UserRepository $repo */
81 81
             $repo = $this->entityManager->getRepository(User::class);
82 82
             $user = $repo->getAnonymousUser();
Please login to merge, or discard this patch.
src/Services/GitVersionInfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             $git = file($this->project_dir.'/.git/HEAD');
65 65
             $head = explode('/', $git[0], 3);
66 66
 
67
-            if (! isset($head[2])) {
67
+            if (!isset($head[2])) {
68 68
                 return null;
69 69
             }
70 70
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         if (is_file($filename)) {
90 90
             $head = file($filename);
91 91
 
92
-            if (! isset($head[0])) {
92
+            if (!isset($head[0])) {
93 93
                 return null;
94 94
             }
95 95
 
Please login to merge, or discard this patch.