@@ -18,7 +18,7 @@ |
||
18 | 18 | $configuration = new Configuration(); |
19 | 19 | $config = $this->processConfiguration($configuration, $configs); |
20 | 20 | |
21 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
21 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
22 | 22 | $loader->load('services.yml'); |
23 | 23 | $loader->load('entity-field-filters.yml'); |
24 | 24 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $operator = $entityFieldFilter->getSupportedOperator(); |
56 | 56 | |
57 | 57 | if (array_key_exists($operator, $this->operatorFieldFilterConfigMap) && is_array($this->operatorFieldFilterConfigMap[$operator])) { |
58 | - foreach($this->operatorFieldFilterConfigMap[$operator] as $filterName => $filterConfig) { |
|
58 | + foreach ($this->operatorFieldFilterConfigMap[$operator] as $filterName => $filterConfig) { |
|
59 | 59 | $entityFieldFilterInstance = clone $entityFieldFilter; |
60 | 60 | $entityFieldFilterInstance->setEntityFieldName($filterConfig['entity_field_name']); |
61 | 61 | $entityFieldFilterInstance->setEntityFieldValue($filterConfig['entity_field_value']); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | public function addServiceEntityFilter($serviceId, EntityFilterInterface $entityFilter) |
73 | 73 | { |
74 | 74 | if (is_array($this->serviceFilterConfigMap[$serviceId])) { |
75 | - foreach($this->serviceFilterConfigMap[$serviceId] as $filterName => $filterConfig) { |
|
75 | + foreach ($this->serviceFilterConfigMap[$serviceId] as $filterName => $filterConfig) { |
|
76 | 76 | if ($serviceId == $filterConfig['service']) { |
77 | 77 | $this->filters[$filterName] = $entityFilter; |
78 | 78 | } |
@@ -122,14 +122,14 @@ discard block |
||
122 | 122 | private function initFilters($filtersConfig) |
123 | 123 | { |
124 | 124 | if (array_key_exists('fields', $filtersConfig) && is_array($filtersConfig['fields'])) { |
125 | - foreach($filtersConfig['fields'] as $filterName => $filterConfig) { |
|
125 | + foreach ($filtersConfig['fields'] as $filterName => $filterConfig) { |
|
126 | 126 | $filterOperator = $filterConfig['operator']; |
127 | 127 | $this->operatorFieldFilterConfigMap[$filterOperator][$filterName] = $filterConfig; |
128 | 128 | } |
129 | 129 | } |
130 | 130 | |
131 | 131 | if (array_key_exists('services', $filtersConfig) && is_array($filtersConfig['services'])) { |
132 | - foreach($filtersConfig['services'] as $filterName => $filterConfig) { |
|
132 | + foreach ($filtersConfig['services'] as $filterName => $filterConfig) { |
|
133 | 133 | $serviceId = $filterConfig['service']; |
134 | 134 | $this->serviceFilterConfigMap[$serviceId][$filterName] = $filterConfig; |
135 | 135 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function getErrorMessage() |
21 | 21 | { |
22 | - return sprintf('The value of %s have to be matched with regexp %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue()); |
|
22 | + return sprintf('The value of %s have to be matched with regexp %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue()); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function getErrorMessage() |
21 | 21 | { |
22 | - return sprintf('The value of %s have to be great than %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue()); |
|
22 | + return sprintf('The value of %s have to be great than %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue()); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | public function getSupportedOperator() |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function getErrorMessage() |
21 | 21 | { |
22 | - return sprintf('The value of %s is not equal to %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue()); |
|
22 | + return sprintf('The value of %s is not equal to %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue()); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | public function getSupportedOperator() |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function getErrorMessage() |
21 | 21 | { |
22 | - return sprintf('The value of %s have to be great than %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue()); |
|
22 | + return sprintf('The value of %s have to be great than %s', $this->getEntityFieldName(), (string) $this->getEntityFieldValue()); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | public function getSupportedOperator() |