@@ -51,6 +51,6 @@ |
||
51 | 51 | */ |
52 | 52 | public function getConfig(): array |
53 | 53 | { |
54 | - return require __DIR__ . '/../config/module.config.php'; |
|
54 | + return require __DIR__.'/../config/module.config.php'; |
|
55 | 55 | } |
56 | 56 | } |
@@ -36,10 +36,10 @@ |
||
36 | 36 | 'messages' => [], // Array of validation failure messages |
37 | 37 | 'messageTemplates' => [], // Array of validation failure message templates |
38 | 38 | |
39 | - 'translator' => null, // Translation object to used -> Translator\TranslatorInterface |
|
40 | - 'translatorTextDomain' => null, // Translation text domain |
|
41 | - 'translatorEnabled' => true, // Is translation enabled? |
|
42 | - 'valueObscured' => false, // Flag indicating whether or not value should be obfuscated |
|
39 | + 'translator' => null, // Translation object to used -> Translator\TranslatorInterface |
|
40 | + 'translatorTextDomain' => null, // Translation text domain |
|
41 | + 'translatorEnabled' => true, // Is translation enabled? |
|
42 | + 'valueObscured' => false, // Flag indicating whether or not value should be obfuscated |
|
43 | 43 | ]; |
44 | 44 | |
45 | 45 | /** |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | if (!is_array($criteria)) { |
77 | 77 | throw new RuntimeException( |
78 | 78 | sprintf( |
79 | - 'The expected validation for \'%s\' field values could not be found for ' . |
|
79 | + 'The expected validation for \'%s\' field values could not be found for '. |
|
80 | 80 | 'numerically index array in \'%s\'.', |
81 | 81 | $entityName, |
82 | 82 | __METHOD__ |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | } elseif ( |
124 | 124 | is_scalar($values) |
125 | 125 | && (count($this->fieldNames) > 1 |
126 | - || (bool)$this->getOption('useContext') ?: true) |
|
126 | + || (bool) $this->getOption('useContext') ?: true) |
|
127 | 127 | ) { |
128 | 128 | /** |
129 | 129 | * @note if we have a scalar value and more than one field in the match criteria then we have to use |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $values = $context; |
133 | 133 | } |
134 | 134 | |
135 | - if (! is_array($values)) { |
|
135 | + if (!is_array($values)) { |
|
136 | 136 | throw new RuntimeException( |
137 | 137 | sprintf( |
138 | 138 | 'The \'values\' argument of type \'%s\' could not be resolved \'array\' in \'%s\'.', |
@@ -54,7 +54,7 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | $strategies = $options['strategies'] ?? []; |
57 | - if (! empty($strategies) && $hydrator instanceof StrategyEnabledInterface) { |
|
57 | + if (!empty($strategies) && $hydrator instanceof StrategyEnabledInterface) { |
|
58 | 58 | foreach ($strategies as $name => $strategy) { |
59 | 59 | if (is_string($strategy)) { |
60 | 60 | $strategy = $this->getService($container, $strategy, $requestedName); |
@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | { |
34 | 34 | $options = $options ?? $this->getServiceOptions($container, $requestedName, 'validators'); |
35 | 35 | |
36 | - $className = $options['class_name'] ?? $this->defaultClassName; |
|
36 | + $className = $options['class_name'] ?? $this->defaultClassName; |
|
37 | 37 | $entityName = $options['entity_name'] ?? null; |
38 | 38 | $fieldNames = $options['field_names'] ?? null; |
39 | 39 | $options = $options['options'] ?? []; |
40 | 40 | |
41 | - if (null === $entityName || ! is_string($entityName)) { |
|
41 | + if (null === $entityName || !is_string($entityName)) { |
|
42 | 42 | throw new ServiceNotCreatedException( |
43 | 43 | sprintf( |
44 | 44 | 'The required \'entity_name\' configuration option is missing or invalid for service \'%s\'', |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $fieldNames[] = 'id'; |
59 | 59 | } |
60 | 60 | |
61 | - if (! array_key_exists('useContext', $options)) { |
|
61 | + if (!array_key_exists('useContext', $options)) { |
|
62 | 62 | $options['useContext'] = true; |
63 | 63 | } |
64 | 64 |
@@ -36,10 +36,10 @@ |
||
36 | 36 | { |
37 | 37 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
38 | 38 | |
39 | - $className = $options['class_name'] ?? $this->defaultClassName; |
|
39 | + $className = $options['class_name'] ?? $this->defaultClassName; |
|
40 | 40 | $entityName = $options['entity_name'] ?? null; |
41 | 41 | |
42 | - if (null === $entityName || ! is_string($entityName)) { |
|
42 | + if (null === $entityName || !is_string($entityName)) { |
|
43 | 43 | throw new ServiceNotCreatedException( |
44 | 44 | sprintf('The required \'entity_name\' configuration option is missing for service %s', $requestedName) |
45 | 45 | ); |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | $className = $options['class_name'] ?? null; |
44 | 44 | $entityName = $options['entity_name'] ?? $requestedName; |
45 | 45 | |
46 | - if (! is_a($entityName, EntityInterface::class, true)) { |
|
46 | + if (!is_a($entityName, EntityInterface::class, true)) { |
|
47 | 47 | throw new ServiceNotCreatedException( |
48 | 48 | sprintf( |
49 | - 'The \'entity_name\' configuration option must reference a class ' . |
|
49 | + 'The \'entity_name\' configuration option must reference a class '. |
|
50 | 50 | 'of type \'%s\' : \'%s\' provided for service \'%s\'', |
51 | 51 | EntityInterface::class, |
52 | 52 | $entityName, |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | } |
67 | 67 | |
68 | - if (! is_a($className, EntityRepositoryInterface::class, true)) { |
|
68 | + if (!is_a($className, EntityRepositoryInterface::class, true)) { |
|
69 | 69 | throw new ServiceNotCreatedException( |
70 | 70 | sprintf( |
71 | 71 | 'The \'class_name\' option must be of type \'%s\'; \'%s\' provided for entity repository \'%s\'', |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
54 | 54 | |
55 | 55 | $className = $options['class_name'] ?? $this->defaultClassName; |
56 | - if (! is_a($className, ListenerProviderInterface::class, true)) { |
|
56 | + if (!is_a($className, ListenerProviderInterface::class, true)) { |
|
57 | 57 | throw new ServiceNotCreatedException( |
58 | 58 | sprintf( |
59 | 59 | 'The \'class_name\' option must be a class of type \'%s\'; \'%s\' provided in \'%s\'', |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | try { |
77 | 77 | $listenerConfig = array_replace_recursive($this->defaultListenerConfig, $options['listeners'] ?? []); |
78 | 78 | |
79 | - if (! empty($listenerConfig)) { |
|
79 | + if (!empty($listenerConfig)) { |
|
80 | 80 | $this->registerCallableListeners($container, $listenerProvider, $listenerConfig, $requestedName); |
81 | 81 | } |
82 | 82 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $options['aggregate_listeners'] ?? [] |
86 | 86 | ); |
87 | 87 | |
88 | - if (! empty($listenerConfig)) { |
|
88 | + if (!empty($listenerConfig)) { |
|
89 | 89 | $this->registerAggregateListeners($container, $listenerProvider, $listenerConfig, $requestedName); |
90 | 90 | } |
91 | 91 | } catch (EventListenerException $e) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | if (!is_callable($eventListener)) { |
126 | 126 | throw new ServiceNotCreatedException( |
127 | 127 | sprintf( |
128 | - 'The event listener registered for event \'%s\' at index \'%d\'' . |
|
128 | + 'The event listener registered for event \'%s\' at index \'%d\''. |
|
129 | 129 | 'at priority \'%d\' cannot be resolved for \'%s\'', |
130 | 130 | $index, |
131 | 131 | $eventName, |