@@ -90,7 +90,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -81,7 +81,7 @@ |
||
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 |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function format(float $value, ?MeasurementUnit $unit = null, array $options = []) |
76 | 76 | { |
77 | - if (! is_numeric($value)) { |
|
77 | + if (!is_numeric($value)) { |
|
78 | 78 | throw new InvalidArgumentException('$value must be an numeric value!'); |
79 | 79 | } |
80 | 80 | $value = (float) $value; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | //Otherwise just output it |
99 | - if (! empty($options['unit'])) { |
|
99 | + if (!empty($options['unit'])) { |
|
100 | 100 | $format_string = '%.'.$options['decimals'].'f '.$options['unit']; |
101 | 101 | } else { //Dont add space after number if no unit was specified |
102 | 102 | $format_string = '%.'.$options['decimals'].'f'; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | protected function configureOptions(OptionsResolver $resolver): void |
109 | 109 | { |
110 | 110 | $resolver->setDefaults([ |
111 | - 'show_prefix' => function (Options $options) { |
|
111 | + 'show_prefix' => function(Options $options) { |
|
112 | 112 | if (null !== $options['measurement_unit']) { |
113 | 113 | /** @var MeasurementUnit $unit */ |
114 | 114 | $unit = $options['measurement_unit']; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | return false; |
120 | 120 | }, |
121 | - 'is_integer' => function (Options $options) { |
|
121 | + 'is_integer' => function(Options $options) { |
|
122 | 122 | if (null !== $options['measurement_unit']) { |
123 | 123 | /** @var MeasurementUnit $unit */ |
124 | 124 | $unit = $options['measurement_unit']; |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | return true; |
130 | 130 | }, |
131 | - 'unit' => function (Options $options) { |
|
131 | + 'unit' => function(Options $options) { |
|
132 | 132 | if (null !== $options['measurement_unit']) { |
133 | 133 | /** @var MeasurementUnit $unit */ |
134 | 134 | $unit = $options['measurement_unit']; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | $resolver->setAllowedTypes('decimals', 'int'); |
148 | 148 | |
149 | - $resolver->setNormalizer('decimals', function (Options $options, $value) { |
|
149 | + $resolver->setNormalizer('decimals', function(Options $options, $value) { |
|
150 | 150 | // If the unit is integer based, then dont show any decimals |
151 | 151 | if ($options['is_integer']) { |
152 | 152 | return 0; |
@@ -76,7 +76,7 @@ |
||
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(); |