@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 6 | 6 | |
| 7 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 7 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 8 | 8 | $containerConfigurator->extension('doctrine_migrations', [ |
| 9 | 9 | 'migrations_paths' => [ |
| 10 | 10 | 'OcMigrations' => '%kernel.project_dir%/migrations' |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | use Symfony\Component\Security\Core\Role\RoleHierarchyInterface; |
| 8 | 8 | use function Symfony\Component\DependencyInjection\Loader\Configurator\service; |
| 9 | 9 | |
| 10 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 10 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 11 | 11 | $services = $containerConfigurator->services(); |
| 12 | 12 | |
| 13 | 13 | $services->defaults() |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; |
| 6 | 6 | |
| 7 | -return static function (RoutingConfigurator $routingConfigurator): void { |
|
| 7 | +return static function(RoutingConfigurator $routingConfigurator): void { |
|
| 8 | 8 | $routingConfigurator->import('@FrameworkBundle/Resources/config/routing/errors.xml') |
| 9 | 9 | ->prefix('/_error'); |
| 10 | 10 | }; |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; |
| 6 | 6 | |
| 7 | -return static function (RoutingConfigurator $routingConfigurator): void { |
|
| 7 | +return static function(RoutingConfigurator $routingConfigurator): void { |
|
| 8 | 8 | $routingConfigurator->import('@WebProfilerBundle/Resources/config/routing/wdt.xml') |
| 9 | 9 | ->prefix('/_wdt'); |
| 10 | 10 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; |
| 6 | 6 | |
| 7 | -return static function (RoutingConfigurator $routingConfigurator): void { |
|
| 7 | +return static function(RoutingConfigurator $routingConfigurator): void { |
|
| 8 | 8 | $routingConfigurator->import('../../src/Controller/App', 'annotation') |
| 9 | 9 | ->namePrefix('app_'); |
| 10 | 10 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function index(): Response |
| 15 | 15 | { |
| 16 | - return $this->render('kitchensink/index.html.twig'); |
|
| 16 | + return $this->render('kitchensink/index.html.twig'); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | |
| 105 | 105 | $arr = preg_split('/\s+/', $searchtext); |
| 106 | 106 | |
| 107 | - $this->coordinatesRepository->setLatLon((float) $arr[0], (float) $arr[1]); |
|
| 107 | + $this->coordinatesRepository->setLatLon((float)$arr[0], (float)$arr[1]); |
|
| 108 | 108 | |
| 109 | 109 | return $this->coordinatesRepository->getAllCoordinatesFormatsAsArray(); |
| 110 | 110 | } |
@@ -19,19 +19,19 @@ |
||
| 19 | 19 | $builder |
| 20 | 20 | ->add( |
| 21 | 21 | 'content_support_searchfield', null, [ |
| 22 | - 'attr' => [ |
|
| 23 | - 'placeholder' => 'OC / GC / Name / Owner / %%%', |
|
| 24 | - 'autofocus' => 'autofocus', |
|
| 25 | - 'size' => '10%', |
|
| 26 | - 'minlength' => '3', |
|
| 27 | - 'maxlength' => '100', |
|
| 28 | - 'style' => 'width: 250px;' |
|
| 29 | - ], |
|
| 30 | - 'required' => true, |
|
| 31 | - 'disabled' => false, |
|
| 32 | - 'label' => false, |
|
| 33 | - 'trim' => true |
|
| 34 | - ] |
|
| 22 | + 'attr' => [ |
|
| 23 | + 'placeholder' => 'OC / GC / Name / Owner / %%%', |
|
| 24 | + 'autofocus' => 'autofocus', |
|
| 25 | + 'size' => '10%', |
|
| 26 | + 'minlength' => '3', |
|
| 27 | + 'maxlength' => '100', |
|
| 28 | + 'style' => 'width: 250px;' |
|
| 29 | + ], |
|
| 30 | + 'required' => true, |
|
| 31 | + 'disabled' => false, |
|
| 32 | + 'label' => false, |
|
| 33 | + 'trim' => true |
|
| 34 | + ] |
|
| 35 | 35 | ) |
| 36 | 36 | ->add( |
| 37 | 37 | 'search_All', SubmitType::class, [ |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | $databaseArray |
| 154 | 154 | ); |
| 155 | 155 | |
| 156 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 156 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 157 | 157 | |
| 158 | 158 | return $entity; |
| 159 | 159 | } |
@@ -231,11 +231,11 @@ discard block |
||
| 231 | 231 | public function getEntityFromDatabaseArray(array $data) |
| 232 | 232 | : SupportUserRelationsEntity { |
| 233 | 233 | $entity = new SupportUserRelationsEntity(); |
| 234 | - $entity->id = (int) $data['id']; |
|
| 235 | - $entity->ocUserId = (int) $data['oc_user_id']; |
|
| 236 | - $entity->nodeId = (int) $data['node_id']; |
|
| 237 | - $entity->nodeUserId = (string) $data['node_user_id']; |
|
| 238 | - $entity->nodeUsername = (string) $data['node_username']; |
|
| 234 | + $entity->id = (int)$data['id']; |
|
| 235 | + $entity->ocUserId = (int)$data['oc_user_id']; |
|
| 236 | + $entity->nodeId = (int)$data['node_id']; |
|
| 237 | + $entity->nodeUserId = (string)$data['node_user_id']; |
|
| 238 | + $entity->nodeUsername = (string)$data['node_username']; |
|
| 239 | 239 | $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]); |
| 240 | 240 | $entity->user = $this->userRepository->fetchOneById($entity->ocUserId); |
| 241 | 241 | |