@@ -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 | |
@@ -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(); |
@@ -64,7 +64,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function requestPwReset(PasswordResetManager $passwordReset, Request $request) |
| 102 | 102 | { |
| 103 | - if (! $this->allow_email_pw_reset) { |
|
| 103 | + if (!$this->allow_email_pw_reset) { |
|
| 104 | 104 | throw new AccessDeniedHttpException('The password reset via email is disabled!'); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | */ |
| 145 | 145 | public function pwResetNewPw(PasswordResetManager $passwordReset, Request $request, EntityManagerInterface $em, EventDispatcherInterface $eventDispatcher, ?string $user = null, ?string $token = null) |
| 146 | 146 | { |
| 147 | - if (! $this->allow_email_pw_reset) { |
|
| 147 | + if (!$this->allow_email_pw_reset) { |
|
| 148 | 148 | throw new AccessDeniedHttpException('The password reset via email is disabled!'); |
| 149 | 149 | } |
| 150 | 150 | |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | $data = $form->getData(); |
| 190 | 190 | //Try to set the new password |
| 191 | 191 | $success = $passwordReset->setNewPassword($data['username'], $data['token'], $data['new_password']); |
| 192 | - if (! $success) { |
|
| 192 | + if (!$success) { |
|
| 193 | 193 | $this->addFlash('error', 'pw_reset.new_pw.error'); |
| 194 | 194 | } else { |
| 195 | 195 | $this->addFlash('success', 'pw_reset.new_pw.success'); |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * |
| 98 | 98 | * @return Response |
| 99 | 99 | */ |
| 100 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Currency $entity = null): Response |
|
| 100 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Currency $entity = null) : Response |
|
| 101 | 101 | { |
| 102 | 102 | return $this->_new($request, $em, $importer, $entity); |
| 103 | 103 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | * |
| 96 | 96 | * @return Response |
| 97 | 97 | */ |
| 98 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Category $entity = null): Response |
|
| 98 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Category $entity = null) : Response |
|
| 99 | 99 | { |
| 100 | 100 | return $this->_new($request, $em, $importer, $entity); |
| 101 | 101 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | * |
| 96 | 96 | * @return Response |
| 97 | 97 | */ |
| 98 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?MeasurementUnit $entity = null): Response |
|
| 98 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?MeasurementUnit $entity = null) : Response |
|
| 99 | 99 | { |
| 100 | 100 | return $this->_new($request, $em, $importer, $entity); |
| 101 | 101 | } |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * |
| 94 | 94 | * @return Response |
| 95 | 95 | */ |
| 96 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Storelocation $entity = null): Response |
|
| 96 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Storelocation $entity = null) : Response |
|
| 97 | 97 | { |
| 98 | 98 | return $this->_new($request, $em, $importer, $entity); |
| 99 | 99 | } |