Completed
Push — master ( 85b3c9...282c89 )
by max
03:09 queued 01:27
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/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.
Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/src/Module.php';
3
+require_once __DIR__.'/src/Module.php';
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function getConfig($env = null)
30 30
     {
31
-        return include dirname(__DIR__) . '/config/module.config.php';
31
+        return include dirname(__DIR__).'/config/module.config.php';
32 32
     }
33 33
 
34 34
     public function getAutoloaderConfig()
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         return [
37 37
             'Zend\Loader\StandardAutoloader' => [
38 38
                 'namespaces' => [
39
-                    __NAMESPACE__ => dirname(__DIR__) . '/src',
39
+                    __NAMESPACE__ => dirname(__DIR__).'/src',
40 40
                 ],
41 41
             ],
42 42
         ];
Please login to merge, or discard this patch.
src/EntityEventManagerAbstractFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
         $entityEventManager = new EntityEventManager($eventManager);
20 20
 
21 21
         $entityParams = explode('\\', $requestedName);
22
-        if (isset($entityParams[0])) {
23
-            $eventManager->setIdentifiers($entityParams[0]);
22
+        if (isset($entityParams[ 0 ])) {
23
+            $eventManager->setIdentifiers($entityParams[ 0 ]);
24 24
         }
25 25
 
26 26
         return $entityEventManager;
Please login to merge, or discard this patch.
src/EntityFactoryAbstractFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             list($moduleName, $entityName) = $namespaceParts;
32 32
             $entityClass = "$moduleName\\$entityName\\$entityName";
33 33
         } else {
34
-            $entityName = $namespaceParts[0];
34
+            $entityName = $namespaceParts[ 0 ];
35 35
 
36 36
             /** @var Config $config */
37 37
             $config = $container->get("$entityName\\Infrastructure\\Config");
Please login to merge, or discard this patch.
src/Infrastructure/ConfigAbstractFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,18 +27,18 @@
 block discarded – undo
27 27
         $namespaceParts = explode('\\', trim($namespace, "\\"));
28 28
 
29 29
         if (count($namespaceParts) > 1) {
30
-            $entityName = $namespaceParts[1];
30
+            $entityName = $namespaceParts[ 1 ];
31 31
         } else {
32
-            $entityName = $namespaceParts[0];
32
+            $entityName = $namespaceParts[ 0 ];
33 33
         }
34 34
 
35 35
         $config = $container->get('Config');
36 36
 
37
-        if (!isset($config['entity_map'])) {
37
+        if (!isset($config[ 'entity_map' ])) {
38 38
             throw new ServiceNotCreatedException("You must define
39 39
                 and configure $entityName in 'entity_map' config entry");
40 40
         }
41 41
 
42
-        return new Config($config['entity_map']);
42
+        return new Config($config[ 'entity_map' ]);
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
src/Infrastructure/CriteriaFactoryAbstractFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             list($moduleName, $entityName) = $namespaceParts;
30 30
             $config = $container->get("$moduleName\\$entityName\\Infrastructure\\Config");
31 31
         } else {
32
-            $entityName = $namespaceParts[0];
32
+            $entityName = $namespaceParts[ 0 ];
33 33
             $config = $container->get("$entityName\\Infrastructure\\Config");
34 34
         }
35 35
 
Please login to merge, or discard this patch.
src/Infrastructure/FinderAggregateRepositoryFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             $mapper = $container->get("$moduleName\\$entityName\\Infrastructure\\Mapper");
38 38
             $entityFactory = $container->get("$moduleName\\$entityName\\EntityFactory");
39 39
         } else {
40
-            $entityName = $namespaceParts[0];
40
+            $entityName = $namespaceParts[ 0 ];
41 41
             /** @var Config $config */
42 42
             $config = $container->get("$entityName\\Infrastructure\\Config");
43 43
             $repository = $container->get("$entityName\\Infrastructure\\Repository");
@@ -47,24 +47,24 @@  discard block
 block discarded – undo
47 47
 
48 48
         $appConfig = $container->get('Config');
49 49
 
50
-        if (!isset($appConfig['entity_map'])) {
50
+        if (!isset($appConfig[ 'entity_map' ])) {
51 51
             throw new ServiceNotCreatedException("You must define
52 52
                 and configure Comments\\Comment in 'entity_map' config entry");
53 53
         }
54 54
 
55
-        $relationsConfig = $appConfig['entity_map'][$entityName]['relations'];
55
+        $relationsConfig = $appConfig[ 'entity_map' ][ $entityName ][ 'relations' ];
56 56
 
57
-        $relatedRepository = [];
57
+        $relatedRepository = [ ];
58 58
         foreach ($relationsConfig as $relatedEntity => $joinRule) {
59
-            $repositoryClass = $relatedEntity . '\Infrastructure\Repository';
60
-            $relatedRepository[$relatedEntity] = $container->get($repositoryClass);
59
+            $repositoryClass = $relatedEntity.'\Infrastructure\Repository';
60
+            $relatedRepository[ $relatedEntity ] = $container->get($repositoryClass);
61 61
         }
62 62
 
63
-        $features = [];
63
+        $features = [ ];
64 64
         $tableSequence = $config->getSequence($entityName);
65 65
         $tablePrimaryKey = $config->getPrimaryKey($entityName);
66 66
         if (!empty($tableSequence) && !empty($tablePrimaryKey)) {
67
-            $features[] = new SequenceFeature($tablePrimaryKey, $tableSequence);
67
+            $features[ ] = new SequenceFeature($tablePrimaryKey, $tableSequence);
68 68
         }
69 69
 
70 70
         $dbAdapter = $container->get('Zend\Db\Adapter\Adapter');
Please login to merge, or discard this patch.