@@ -31,11 +31,11 @@ |
||
31 | 31 | |
32 | 32 | $config = $moduleManager->getModule($moduleName)->getConfig(); |
33 | 33 | |
34 | - if (!isset($config['entity_map'])) { |
|
34 | + if (!isset($config[ 'entity_map' ])) { |
|
35 | 35 | throw new ServiceNotCreatedException("You must define |
36 | 36 | and configure $moduleName\\$entityName in 'entity_map' config entry"); |
37 | 37 | } |
38 | 38 | |
39 | - return new Config($config['entity_map']); |
|
39 | + return new Config($config[ 'entity_map' ]); |
|
40 | 40 | } |
41 | 41 | } |
42 | 42 | \ No newline at end of file |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * @var array |
22 | 22 | */ |
23 | - protected $data = []; |
|
23 | + protected $data = [ ]; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * EntityEvent constructor. |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param EntityInterface $entity |
29 | 29 | * @param array $data |
30 | 30 | */ |
31 | - public function __construct($name, EntityInterface $entity, array $data = []) { |
|
31 | + public function __construct($name, EntityInterface $entity, array $data = [ ]) { |
|
32 | 32 | $this->name = $name; |
33 | 33 | $this->entity = $entity; |
34 | 34 | $this->data = $data; |