@@ -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 | } |
@@ -44,12 +44,12 @@ |
||
44 | 44 | * |
45 | 45 | * @param array $options |
46 | 46 | */ |
47 | - public function __construct(array $options = []) |
|
47 | + public function __construct(array $options = [ ]) |
|
48 | 48 | { |
49 | 49 | $initOptions = [ |
50 | - array_key_exists('serializerManager', $options) ? $options['serializerManager'] : null |
|
50 | + array_key_exists('serializerManager', $options) ? $options[ 'serializerManager' ] : null |
|
51 | 51 | ]; |
52 | - call_user_func_array([$this, 'init'], $initOptions); |
|
52 | + call_user_func_array([ $this, 'init' ], $initOptions); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |