@@ -80,15 +80,15 @@ discard block |
||
| 80 | 80 | throw new SerializerException("Wrong array format. All sections must contain type."); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - switch($section["type"]) { |
|
| 83 | + switch ($section["type"]) { |
|
| 84 | 84 | case eSection::INDEXER(): |
| 85 | - $section = $this->objectConfiguration->getIndexer(); |
|
| 85 | + $section = $this->objectConfiguration->getIndexer(); |
|
| 86 | 86 | break; |
| 87 | 87 | case eSection::SEARCHD(): |
| 88 | - $section = $this->objectConfiguration->getSearchd(); |
|
| 88 | + $section = $this->objectConfiguration->getSearchd(); |
|
| 89 | 89 | break; |
| 90 | 90 | case eSection::COMMON(): |
| 91 | - $section = $this->objectConfiguration->getCommon(); |
|
| 91 | + $section = $this->objectConfiguration->getCommon(); |
|
| 92 | 92 | break; |
| 93 | 93 | case eSection::SOURCE(): |
| 94 | 94 | case eSection::INDEX(): |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $name = $section["name"]; |
| 100 | 100 | $inheritanceName = !empty($section["inheritance"]) ? $section["inheritance"] : null; |
| 101 | 101 | |
| 102 | - if($section["type"] == eSection::SOURCE()) { |
|
| 102 | + if ($section["type"] == eSection::SOURCE()) { |
|
| 103 | 103 | $section = $this->objectConfiguration->addSource($name, $inheritanceName); |
| 104 | 104 | } else { |
| 105 | 105 | $section = $this->objectConfiguration->addIndex($name, $inheritanceName); |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | */ |
| 151 | 151 | private function getOptionName(Section $section, string $name) : eOption |
| 152 | 152 | { |
| 153 | - switch($section->getType()) { |
|
| 153 | + switch ($section->getType()) { |
|
| 154 | 154 | case eSection::SOURCE(): |
| 155 | 155 | $option = eSourceOption::get($name); |
| 156 | 156 | break; |