@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @param array $config |
| 37 | 37 | * @param ContainerBuilder $container |
| 38 | 38 | */ |
| 39 | - private function prepairConfig(array $config, ContainerBuilder $container){ |
|
| 39 | + private function prepairConfig(array $config, ContainerBuilder $container) { |
|
| 40 | 40 | $this->container = $container; |
| 41 | 41 | |
| 42 | 42 | $this->prepareConfigMappings($config); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | 'doctrs_sonata_import.encode.list' => $config['encode']['list'] |
| 52 | 52 | ]; |
| 53 | 53 | |
| 54 | - foreach($parametersArray as $parameterKey => $value){ |
|
| 54 | + foreach ($parametersArray as $parameterKey => $value) { |
|
| 55 | 55 | $container->setParameter($parameterKey, $value); |
| 56 | 56 | } |
| 57 | 57 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * @param array $config |
| 61 | 61 | */ |
| 62 | - private function prepareConfigUploadDir(array &$config){ |
|
| 62 | + private function prepareConfigUploadDir(array &$config) { |
|
| 63 | 63 | $config['upload_dir'] = $config['upload_dir'] ? |
| 64 | 64 | $config['upload_dir'] : $this->container->get('kernel')->getRootDir() . '/../web/uploads'; |
| 65 | 65 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * @param array $config |
| 69 | 69 | */ |
| 70 | - private function prepareConfigEncode(array &$config){ |
|
| 70 | + private function prepareConfigEncode(array &$config) { |
|
| 71 | 71 | if (!isset($config['encode'])) { |
| 72 | 72 | $config['encode'] = [ |
| 73 | 73 | 'default' => 'utf8', |
@@ -79,23 +79,23 @@ discard block |
||
| 79 | 79 | /** |
| 80 | 80 | * @param array $config |
| 81 | 81 | */ |
| 82 | - private function prepareConfigMappings(array &$config){ |
|
| 82 | + private function prepareConfigMappings(array &$config) { |
|
| 83 | 83 | $config['mappings'] = array_merge($config['mappings'], [[ |
| 84 | 84 | 'name' => 'date', |
| 85 | 85 | 'class' => 'doctrs.type.datetime' |
| 86 | - ],[ |
|
| 86 | + ], [ |
|
| 87 | 87 | 'name' => 'datetime', |
| 88 | 88 | 'class' => 'doctrs.type.datetime' |
| 89 | - ],[ |
|
| 89 | + ], [ |
|
| 90 | 90 | 'name' => 'boolean', |
| 91 | 91 | 'class' => 'doctrs.type.boolean' |
| 92 | - ],[ |
|
| 92 | + ], [ |
|
| 93 | 93 | 'name' => 'integer', |
| 94 | 94 | 'class' => 'doctrs.type.integer' |
| 95 | - ],[ |
|
| 95 | + ], [ |
|
| 96 | 96 | 'name' => 'entity', |
| 97 | 97 | 'class' => 'doctrs.type.entity' |
| 98 | - ],[ |
|
| 98 | + ], [ |
|
| 99 | 99 | 'name' => 'choice', |
| 100 | 100 | 'class' => 'doctrs.type.entity' |
| 101 | 101 | ]]); |