@@ -28,9 +28,9 @@ |
||
28 | 28 | { |
29 | 29 | /** @var array $appConfig */ |
30 | 30 | $appConfig = $serviceLocator->get('config'); |
31 | - $config = []; |
|
31 | + $config = [ ]; |
|
32 | 32 | if (array_key_exists(Module::CONFIG_KEY, $appConfig)) { |
33 | - $config = $appConfig[Module::CONFIG_KEY]; |
|
33 | + $config = $appConfig[ Module::CONFIG_KEY ]; |
|
34 | 34 | } |
35 | 35 | return new ModuleOptions($config); |
36 | 36 | } |
@@ -19,17 +19,17 @@ discard block |
||
19 | 19 | /** |
20 | 20 | * @var string |
21 | 21 | */ |
22 | - const HTTP_METHOD_INVALID = 'httpMethodInvalid'; |
|
22 | + const HTTP_METHOD_INVALID = 'httpMethodInvalid'; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @var string |
26 | 26 | */ |
27 | - const VALIDATE_VALUE_INVALID = 'validateValueInvalid'; |
|
27 | + const VALIDATE_VALUE_INVALID = 'validateValueInvalid'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * @var string |
31 | 31 | */ |
32 | - const REQUEST_INVALID = 'requestInvalid'; |
|
32 | + const REQUEST_INVALID = 'requestInvalid'; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * Validation failure message template definitions |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | { |
105 | 105 | $results = null; |
106 | 106 | if (is_array($allowedHttpMethods)) { |
107 | - $results = array_map(function ($method) { |
|
107 | + $results = array_map(function($method) { |
|
108 | 108 | $method = trim($method); |
109 | 109 | $method = strtolower($method); |
110 | 110 |
@@ -17,6 +17,6 @@ |
||
17 | 17 | { |
18 | 18 | public function __construct() |
19 | 19 | { |
20 | - $this->entityMap['entry'] = ExtEntry::class; |
|
20 | + $this->entityMap[ 'entry' ] = ExtEntry::class; |
|
21 | 21 | } |
22 | 22 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | $config = [ |
9 | 9 | 'workflow_zf2_toolkit' => [ |
10 | 10 | 'rootEntityNamespace' => 'OldTown\\Workflow\\ZF2\\Toolkit\\Entity\\', |
11 | - 'entityMap' => [] |
|
11 | + 'entityMap' => [ ] |
|
12 | 12 | ] |
13 | 13 | ]; |
14 | 14 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @var array |
28 | 28 | */ |
29 | - protected $entityMap = []; |
|
29 | + protected $entityMap = [ ]; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @return string |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @return $this |
63 | 63 | */ |
64 | - public function setEntityMap(array $entityMap = []) |
|
64 | + public function setEntityMap(array $entityMap = [ ]) |
|
65 | 65 | { |
66 | 66 | $this->entityMap = $entityMap; |
67 | 67 |
@@ -61,14 +61,14 @@ |
||
61 | 61 | * |
62 | 62 | * @param array $options |
63 | 63 | */ |
64 | - public function __construct(array $options = []) |
|
64 | + public function __construct(array $options = [ ]) |
|
65 | 65 | { |
66 | 66 | $initOptions = [ |
67 | - array_key_exists('serializerManager', $options) ? $options['serializerManager'] : null, |
|
68 | - array_key_exists('moduleOptions', $options) ? $options['moduleOptions'] : null, |
|
69 | - array_key_exists('workflowService', $options) ? $options['workflowService'] : null |
|
67 | + array_key_exists('serializerManager', $options) ? $options[ 'serializerManager' ] : null, |
|
68 | + array_key_exists('moduleOptions', $options) ? $options[ 'moduleOptions' ] : null, |
|
69 | + array_key_exists('workflowService', $options) ? $options[ 'workflowService' ] : null |
|
70 | 70 | ]; |
71 | - call_user_func_array([$this, 'init'], $initOptions); |
|
71 | + call_user_func_array([ $this, 'init' ], $initOptions); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | $serializerManager = $appServiceLocator->get('SerializerAdapterManager'); |
38 | 38 | $moduleOptions = $appServiceLocator->get(ModuleOptions::class); |
39 | - $workflowService = $appServiceLocator->get(Workflow::class); |
|
39 | + $workflowService = $appServiceLocator->get(Workflow::class); |
|
40 | 40 | |
41 | 41 | return new DoctrineWorkflowStoryService( |
42 | 42 | [ |