@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * |
| 122 | 122 | * @return Response |
| 123 | 123 | */ |
| 124 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?User $entity = null): Response |
|
| 124 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?User $entity = null) : Response |
|
| 125 | 125 | { |
| 126 | 126 | return $this->_new($request, $em, $importer, $entity); |
| 127 | 127 | } |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | //If no user id was passed, then we show info about the current user |
| 172 | 172 | if (null === $user) { |
| 173 | 173 | $tmp = $this->getUser(); |
| 174 | - if (! $tmp instanceof User) { |
|
| 174 | + if (!$tmp instanceof User) { |
|
| 175 | 175 | throw new InvalidArgumentException('Userinfo only works for database users!'); |
| 176 | 176 | } |
| 177 | 177 | $user = $tmp; |
@@ -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 | } |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | * |
| 96 | 96 | * @return Response |
| 97 | 97 | */ |
| 98 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Footprint $entity = null): Response |
|
| 98 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Footprint $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, ?Device $entity = null): Response |
|
| 98 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Device $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, ?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 | } |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | * |
| 95 | 95 | * @return Response |
| 96 | 96 | */ |
| 97 | - public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Manufacturer $entity = null): Response |
|
| 97 | + public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Manufacturer $entity = null) : Response |
|
| 98 | 98 | { |
| 99 | 99 | return $this->_new($request, $em, $importer, $entity); |
| 100 | 100 | } |