@@ -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() |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | } |
95 | 95 | } else { |
96 | 96 | $entitiesClasses = $this->getAssocEntitiesClasses(); |
97 | - if (!array_key_exists($entityType, $entitiesClasses )) { |
|
97 | + if (!array_key_exists($entityType, $entitiesClasses)) { |
|
98 | 98 | throw new \Exception('There is no such possible entity-type. Check help section for possible values'); |
99 | 99 | } |
100 | 100 | $entityClass = $entitiesClasses[$entityType]; |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | private function processRepository(EntityRepository $repository, EntityManager $em) |
137 | 137 | { |
138 | 138 | $offset = 0; |
139 | - while ($entities = $repository->findBy([],['id'=> 'asc'], self::BUNCH_COUNT, $offset)) { |
|
139 | + while ($entities = $repository->findBy([], ['id'=> 'asc'], self::BUNCH_COUNT, $offset)) { |
|
140 | 140 | foreach ($entities as $entity) { |
141 | 141 | $this->processEntity($entity); |
142 | 142 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | } |
93 | 93 | } else { |
94 | 94 | $entitiesClasses = $this->getAssocEntitiesClasses(); |
95 | - if (!array_key_exists($entityType, $entitiesClasses )) { |
|
95 | + if (!array_key_exists($entityType, $entitiesClasses)) { |
|
96 | 96 | throw new \Exception('There is no such possible entity-type. Check help section for possible values'); |
97 | 97 | } |
98 | 98 | $entityClass = $entitiesClasses[$entityType]; |