@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author: Viskov Sergey |
|
4 | - * @date: 3/18/16 |
|
5 | - * @time: 5:11 PM |
|
6 | - */ |
|
3 | + * @author: Viskov Sergey |
|
4 | + * @date: 3/18/16 |
|
5 | + * @time: 5:11 PM |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace LTDBeget\sphinx\configurator\configurationEntities\base; |
9 | 9 |
@@ -97,13 +97,13 @@ |
||
97 | 97 | /** |
98 | 98 | * @var Option $multiOption |
99 | 99 | */ |
100 | - if(! $multiOption->isDeleted()) { |
|
100 | + if (!$multiOption->isDeleted()) { |
|
101 | 101 | yield $multiOption; |
102 | 102 | } |
103 | 103 | |
104 | 104 | } |
105 | 105 | } else { |
106 | - if(! $option->isDeleted()) { |
|
106 | + if (!$option->isDeleted()) { |
|
107 | 107 | yield $option; |
108 | 108 | } |
109 | 109 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public function isSectionExist(eSection $section) : bool |
75 | 75 | { |
76 | - if($section == eSection::COMMON && version_compare( (string) $this->version, eVersion::V_2_2_1, '<')) { |
|
76 | + if ($section == eSection::COMMON && version_compare((string) $this->version, eVersion::V_2_2_1, '<')) { |
|
77 | 77 | return false; |
78 | 78 | } |
79 | 79 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function iterateOptionInfo(eSection $section) |
90 | 90 | { |
91 | - if (! $this->isSectionExist($section)) { |
|
91 | + if (!$this->isSectionExist($section)) { |
|
92 | 92 | throw new \LogicException("Sphinx of version {$this->version} does't have section {$section}"); |
93 | 93 | } |
94 | 94 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | private function getOptionName(eSection $section, string $optionName) : eOption |
108 | 108 | { |
109 | - $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e".ucfirst( (string) $section)."Option"; |
|
109 | + $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e" . ucfirst((string) $section) . "Option"; |
|
110 | 110 | /** |
111 | 111 | * @var eOption $enumClassName |
112 | 112 | */ |
@@ -186,7 +186,7 @@ |
||
186 | 186 | public function getCommon() : Common |
187 | 187 | { |
188 | 188 | $section = eSection::COMMON(); |
189 | - if(! $this->isAllowedSection($section)) { |
|
189 | + if (!$this->isAllowedSection($section)) { |
|
190 | 190 | throw new \LogicException("Sphinx of version {$this->version} does't have section {$section}"); |
191 | 191 | } |
192 | 192 |
@@ -102,7 +102,7 @@ |
||
102 | 102 | */ |
103 | 103 | private function serializeSection(Section $section) |
104 | 104 | { |
105 | - if($section->isDeleted()) { |
|
105 | + if ($section->isDeleted()) { |
|
106 | 106 | return; |
107 | 107 | } |
108 | 108 |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | private function serializeSource() |
65 | 65 | { |
66 | 66 | foreach ($this->objectConfiguration->iterateSource() as $source) { |
67 | - if($source->isDeleted()) { |
|
67 | + if ($source->isDeleted()) { |
|
68 | 68 | continue; |
69 | 69 | } |
70 | 70 | $this->serializeDefinition($source); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | private function serializeIndex() |
79 | 79 | { |
80 | 80 | foreach ($this->objectConfiguration->iterateIndex() as $index) { |
81 | - if($index->isDeleted()) { |
|
81 | + if ($index->isDeleted()) { |
|
82 | 82 | continue; |
83 | 83 | } |
84 | 84 | $this->serializeDefinition($index); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | private function serializeIndexer() |
92 | 92 | { |
93 | - if ($this->objectConfiguration->isHasIndexer() && ! $this->objectConfiguration->getIndexer()->isDeleted()) { |
|
93 | + if ($this->objectConfiguration->isHasIndexer() && !$this->objectConfiguration->getIndexer()->isDeleted()) { |
|
94 | 94 | $this->serializeSettings($this->objectConfiguration->getIndexer()); |
95 | 95 | } |
96 | 96 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | private function serializeSearchhd() |
102 | 102 | { |
103 | - if ($this->objectConfiguration->isHasSearchd() && ! $this->objectConfiguration->getSearchd()->isDeleted()) { |
|
103 | + if ($this->objectConfiguration->isHasSearchd() && !$this->objectConfiguration->getSearchd()->isDeleted()) { |
|
104 | 104 | $this->serializeSettings($this->objectConfiguration->getSearchd()); |
105 | 105 | } |
106 | 106 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | private function serializeCommon() |
112 | 112 | { |
113 | - if ($this->objectConfiguration->isHasCommon() && ! $this->objectConfiguration->getCommon()->isDeleted()) { |
|
113 | + if ($this->objectConfiguration->isHasCommon() && !$this->objectConfiguration->getCommon()->isDeleted()) { |
|
114 | 114 | $this->serializeSettings($this->objectConfiguration->getCommon()); |
115 | 115 | } |
116 | 116 | } |