Completed
Push — master ( 5804cb...781b25 )
by max
03:49
created
src/EntityEventManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * @param array $data
47 47
      * @return EntityEvent
48 48
      */
49
-    public function createEvent($event, EntityInterface $entity = null, array $data = [])
49
+    public function createEvent($event, EntityInterface $entity = null, array $data = [ ])
50 50
     {
51 51
         return new EntityEvent($event, $entity, $data);
52 52
     }
Please login to merge, or discard this patch.
src/Infrastructure/RepositoryAbstractFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
         /** @var Config $config */
32 32
         $config = $serviceManager->get("$moduleName\\$entityName\\Infrastructure\\Config");
33 33
 
34
-        $features = [];
34
+        $features = [ ];
35 35
         $tableSequence = $config->getSequence($entityName);
36 36
         $tablePrimaryKey = $config->getPrimaryKey($entityName);
37 37
         if (!empty($tableSequence) && !empty($tablePrimaryKey)) {
38
-            $features[] = new SequenceFeature($tablePrimaryKey, $tableSequence);
38
+            $features[ ] = new SequenceFeature($tablePrimaryKey, $tableSequence);
39 39
         }
40 40
 
41 41
         $tableGateway = new TableGateway($config->getTable($entityName), $dbAdapter, $features);
Please login to merge, or discard this patch.
src/Infrastructure/ConfigAbstractFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/EntityEvent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @var array
23 23
      */
24
-    protected $data = [];
24
+    protected $data = [ ];
25 25
 
26 26
     /**
27 27
      * @var array
28 28
      */
29
-    protected $validData = [];
29
+    protected $validData = [ ];
30 30
 
31 31
     /**
32 32
      * @var array
33 33
      */
34
-    protected $errors = [];
34
+    protected $errors = [ ];
35 35
 
36 36
     /**
37 37
      * EntityEvent constructor.
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @param EntityInterface $entity
40 40
      * @param array $data
41 41
      */
42
-    public function __construct($name, EntityInterface $entity = null, array $data = [])
42
+    public function __construct($name, EntityInterface $entity = null, array $data = [ ])
43 43
     {
44 44
         $this->name = $name;
45 45
         $this->entity = $entity;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     public function getValidData()
102 102
     {
103 103
         if (!empty($this->errors)) {
104
-            return [];
104
+            return [ ];
105 105
         }
106 106
         return $this->validData;
107 107
     }
Please login to merge, or discard this patch.