@@ -24,6 +24,6 @@ |
||
24 | 24 | { |
25 | 25 | public function process(ContainerBuilder $container) |
26 | 26 | { |
27 | - DoctrineOrmMappingsPass::createAnnotationMappingDriver([__NAMESPACE__.'\\Entity'], [__DIR__.'/Entity']); |
|
27 | + DoctrineOrmMappingsPass::createAnnotationMappingDriver([__NAMESPACE__ . '\\Entity'], [__DIR__ . '/Entity']); |
|
28 | 28 | } |
29 | 29 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $loader = new PhpFileLoader( |
64 | 64 | $container, |
65 | - new FileLocator(__DIR__.'/../Resources/config') |
|
65 | + new FileLocator(__DIR__ . '/../Resources/config') |
|
66 | 66 | ); |
67 | 67 | $loader->load('services.php'); |
68 | 68 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | private function prependLiipConfig(ContainerBuilder $container) |
113 | 113 | { |
114 | 114 | $projectDir = $container->getParameter('kernel.project_dir'); |
115 | - $uploadsDir = $projectDir.'/var/uploads'; |
|
115 | + $uploadsDir = $projectDir . '/var/uploads'; |
|
116 | 116 | if (!@mkdir($uploadsDir) && !is_dir($uploadsDir)) { |
117 | 117 | throw new RuntimeException(sprintf('Directory "%s" was not created', $uploadsDir)); |
118 | 118 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'filesystem' => [ |
125 | 125 | 'data_root' => [ |
126 | 126 | 'uploads' => $uploadsDir, |
127 | - 'default' => $projectDir.'/public', |
|
127 | + 'default' => $projectDir . '/public', |
|
128 | 128 | ], |
129 | 129 | ], |
130 | 130 | ], |
@@ -15,5 +15,5 @@ |
||
15 | 15 | public ?string $uiComponent; |
16 | 16 | |
17 | 17 | /** @ORM\Column(type="json", nullable=true) */ |
18 | - public ?array $uiClassNames; |
|
18 | + public ? array $uiClassNames; |
|
19 | 19 | } |
@@ -48,13 +48,13 @@ |
||
48 | 48 | ] |
49 | 49 | ); |
50 | 50 | $this->context |
51 | - ->buildViolation($constraint->message.$conditionsStr) |
|
51 | + ->buildViolation($constraint->message . $conditionsStr) |
|
52 | 52 | ->setParameter('{{ string }}', $value) |
53 | 53 | ->addViolation(); |
54 | 54 | } |
55 | 55 | } catch (InvalidArgumentException $exception) { |
56 | 56 | $this->context |
57 | - ->buildViolation($constraint->message.' '.$exception->getMessage()) |
|
57 | + ->buildViolation($constraint->message . ' ' . $exception->getMessage()) |
|
58 | 58 | ->setParameter('{{ string }}', $value) |
59 | 59 | ->addViolation(); |
60 | 60 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function addDiscriminatorMap(ClassMetadata $classMetadata): void |
48 | 48 | { |
49 | - if ($classMetadata->isRootEntity() && ! $classMetadata->isInheritanceTypeNone()) { |
|
49 | + if ($classMetadata->isRootEntity() && !$classMetadata->isInheritanceTypeNone()) { |
|
50 | 50 | $this->addDefaultDiscriminatorMap($classMetadata); |
51 | 51 | } |
52 | 52 | } |
@@ -43,14 +43,14 @@ |
||
43 | 43 | $converter = new CamelCaseToSnakeCaseNameConverter(); |
44 | 44 | if (!$classMetadata->isInheritanceTypeSingleTable() || $classMetadata->getName() === $classMetadata->rootEntityName) { |
45 | 45 | $classMetadata->setPrimaryTable([ |
46 | - 'name' => $this->prefix.$converter->normalize($classMetadata->getTableName()), |
|
46 | + 'name' => $this->prefix . $converter->normalize($classMetadata->getTableName()), |
|
47 | 47 | ]); |
48 | 48 | } |
49 | 49 | |
50 | 50 | foreach ($classMetadata->getAssociationMappings() as $fieldName => $mapping) { |
51 | 51 | if (ClassMetadataInfo::MANY_TO_MANY === $mapping['type'] && $mapping['isOwningSide']) { |
52 | 52 | $mappedTableName = $mapping['joinTable']['name']; |
53 | - $classMetadata->associationMappings[$fieldName]['joinTable']['name'] = $this->prefix.$mappedTableName; |
|
53 | + $classMetadata->associationMappings[$fieldName]['joinTable']['name'] = $this->prefix . $mappedTableName; |
|
54 | 54 | } |
55 | 55 | } |
56 | 56 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | private ?string $fileExtension; |
14 | 14 | private ?int $fileSize; |
15 | 15 | private ?ImageMetadata $imageData; |
16 | - private ?array $imagineData; |
|
16 | + private ? array $imagineData; |
|
17 | 17 | |
18 | 18 | public function __construct( |
19 | 19 | ?string $publicPath, |