@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author: Viskov Sergey |
|
4 | - * @date: 19.03.16 |
|
5 | - * @time: 1:54 |
|
6 | - */ |
|
3 | + * @author: Viskov Sergey |
|
4 | + * @date: 19.03.16 |
|
5 | + * @time: 1:54 |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace LTDBeget\sphinx\configurator\deserializers; |
9 | 9 |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | $name = $section["name"]; |
90 | 90 | $inheritanceName = !empty($section["inheritance"]) ? $section["inheritance"] : null; |
91 | - $section = $this->objectConfiguration->addSource($name, $inheritanceName); |
|
91 | + $section = $this->objectConfiguration->addSource($name, $inheritanceName); |
|
92 | 92 | break; |
93 | 93 | case eSection::INDEX(): |
94 | 94 | $name = $section["name"]; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | $inheritanceName = !empty($section["inheritance"]) ? $section["inheritance"] : null; |
101 | - $section = $this->objectConfiguration->addIndex($name, $inheritanceName); |
|
101 | + $section = $this->objectConfiguration->addIndex($name, $inheritanceName); |
|
102 | 102 | break; |
103 | 103 | case eSection::INDEXER(): |
104 | 104 | $section = $this->objectConfiguration->getIndexer(); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | */ |
156 | 156 | private function getOptionName(Section $section, string $name) : eOption |
157 | 157 | { |
158 | - switch($section->getType()) { |
|
158 | + switch ($section->getType()) { |
|
159 | 159 | case eSection::SOURCE(): |
160 | 160 | $option = eSourceOption::get($name); |
161 | 161 | break; |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author: Viskov Sergey |
|
4 | - * @date: 19.03.16 |
|
5 | - * @time: 2:00 |
|
6 | - */ |
|
3 | + * @author: Viskov Sergey |
|
4 | + * @date: 19.03.16 |
|
5 | + * @time: 2:00 |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace LTDBeget\sphinx\configurator\deserializers; |
9 | 9 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author: Viskov Sergey |
|
4 | - * @date: 3/14/16 |
|
5 | - * @time: 6:36 PM |
|
6 | - */ |
|
3 | + * @author: Viskov Sergey |
|
4 | + * @date: 3/14/16 |
|
5 | + * @time: 6:36 PM |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace LTDBeget\sphinx\configurator\serializers; |
9 | 9 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author: Viskov Sergey |
|
4 | - * @date: 3/3/16 |
|
5 | - * @time: 5:13 PM |
|
6 | - */ |
|
3 | + * @author: Viskov Sergey |
|
4 | + * @date: 3/3/16 |
|
5 | + * @time: 5:13 PM |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace LTDBeget\sphinx\configurator\serializers; |
9 | 9 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author: Viskov Sergey |
|
4 | - * @date: 3/14/16 |
|
5 | - * @time: 12:54 PM |
|
6 | - */ |
|
3 | + * @author: Viskov Sergey |
|
4 | + * @date: 3/14/16 |
|
5 | + * @time: 12:54 PM |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace LTDBeget\sphinx\configurator\serializers; |
9 | 9 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author: Viskov Sergey |
|
4 | - * @date: 3/18/16 |
|
5 | - * @time: 5:33 PM |
|
6 | - */ |
|
3 | + * @author: Viskov Sergey |
|
4 | + * @date: 3/18/16 |
|
5 | + * @time: 5:33 PM |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace LTDBeget\sphinx\configurator\configurationEntities\sections; |
9 | 9 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author: Viskov Sergey |
|
4 | - * @date: 3/18/16 |
|
5 | - * @time: 5:32 PM |
|
6 | - */ |
|
3 | + * @author: Viskov Sergey |
|
4 | + * @date: 3/18/16 |
|
5 | + * @time: 5:32 PM |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace LTDBeget\sphinx\configurator\configurationEntities\sections; |
9 | 9 |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author: Viskov Sergey |
|
4 | - * @date: 3/2/16 |
|
5 | - * @time: 8:04 PM |
|
6 | - */ |
|
3 | + * @author: Viskov Sergey |
|
4 | + * @date: 3/2/16 |
|
5 | + * @time: 8:04 PM |
|
6 | + */ |
|
7 | 7 | |
8 | 8 | namespace LTDBeget\sphinx\configurator\configurationEntities; |
9 | 9 |
@@ -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 |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | final public function getType() : eSection |
60 | 60 | { |
61 | - if(is_null($this->type)) { |
|
61 | + if (is_null($this->type)) { |
|
62 | 62 | $this->initType(); |
63 | 63 | } |
64 | 64 | |
@@ -86,9 +86,9 @@ discard block |
||
86 | 86 | */ |
87 | 87 | final public function iterateOptions() |
88 | 88 | { |
89 | - foreach($this->options as $option) { |
|
90 | - if(is_array($option)) { |
|
91 | - foreach($option as $multiOption) { |
|
89 | + foreach ($this->options as $option) { |
|
90 | + if (is_array($option)) { |
|
91 | + foreach ($option as $multiOption) { |
|
92 | 92 | yield $multiOption; |
93 | 93 | } |
94 | 94 | } else { |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | final protected function addOptionInternal(eOption $name, string $value) : Option |
108 | 108 | { |
109 | 109 | $informer = $this->getInformer(); |
110 | - if(! $informer->isKnownOption($this->getType(), $name)) { |
|
110 | + if (!$informer->isKnownOption($this->getType(), $name)) { |
|
111 | 111 | $version = $this->getConfiguration()->getVersion(); |
112 | 112 | throw new WrongContextException( |
113 | 113 | "For sphinx v. {$version} option {$name} in {$this->getType()} isn't available" |
@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | |
118 | 118 | $option = new Option($this, $name, $value, $isMultiValue); |
119 | 119 | |
120 | - if($option->isMultiValue()) { |
|
121 | - if(!array_key_exists( (string) $option->getName(), $this->options)) { |
|
120 | + if ($option->isMultiValue()) { |
|
121 | + if (!array_key_exists((string) $option->getName(), $this->options)) { |
|
122 | 122 | $this->options[(string) $option->getName()] = []; |
123 | 123 | } |
124 | 124 | $this->options[(string) $option->getName()][] = $option; |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | private function initType() |
152 | 152 | { |
153 | 153 | $section_name = strtolower($this->shortClassName()); |
154 | - switch($section_name) { |
|
154 | + switch ($section_name) { |
|
155 | 155 | case eSection::INDEX: |
156 | 156 | $this->type = eSection::INDEX(); |
157 | 157 | break; |