@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $this->makeOptionInfo($section, $optionName); |
68 | 68 | } |
69 | 69 | |
70 | - return $this->optionsInfo[(string)$section][(string)$optionName]; |
|
70 | + return $this->optionsInfo[(string) $section][(string) $optionName]; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -80,8 +80,8 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function isKnownOption(eSection $section, eOption $optionName) |
82 | 82 | { |
83 | - return array_key_exists((string)$section, $this->documentation) && |
|
84 | - array_key_exists((string)$optionName, $this->documentation[(string)$section]); |
|
83 | + return array_key_exists((string) $section, $this->documentation) && |
|
84 | + array_key_exists((string) $optionName, $this->documentation[(string) $section]); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function isRemovedOption(eSection $section, eOption $optionName) |
96 | 96 | { |
97 | - return array_key_exists((string)$section, $this->removedOptions) && |
|
98 | - array_key_exists((string)$optionName, $this->removedOptions[(string)$section]); |
|
97 | + return array_key_exists((string) $section, $this->removedOptions) && |
|
98 | + array_key_exists((string) $optionName, $this->removedOptions[(string) $section]); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function isSectionExist(eSection $section) : bool |
109 | 109 | { |
110 | - return !$section->is(eSection::COMMON) || !version_compare((string)$this->version, eVersion::V_2_2_1, '<'); |
|
110 | + return !$section->is(eSection::COMMON) || !version_compare((string) $this->version, eVersion::V_2_2_1, '<'); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | throw new InformerRuntimeException("Sphinx of version {$this->version} does't have section {$section}"); |
127 | 127 | } |
128 | 128 | |
129 | - foreach ($this->documentation[(string)$section] as $optionName => $optionData) { |
|
129 | + foreach ($this->documentation[(string) $section] as $optionName => $optionData) { |
|
130 | 130 | yield $this->getOptionInfo($section, $this->getOptionName($section, $optionName)); |
131 | 131 | } |
132 | 132 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | */ |
146 | 146 | private function getOptionName(eSection $section, string $optionName) : eOption |
147 | 147 | { |
148 | - $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e" . ucfirst((string)$section) . 'Option'; |
|
148 | + $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e" . ucfirst((string) $section) . 'Option'; |
|
149 | 149 | |
150 | 150 | /** |
151 | 151 | * @var eOption $enumClassName |
@@ -179,8 +179,8 @@ discard block |
||
179 | 179 | */ |
180 | 180 | private function isOptionInfoInit(eSection $section, eOption $optionName) : bool |
181 | 181 | { |
182 | - return array_key_exists((string)$section, $this->optionsInfo) && |
|
183 | - array_key_exists((string)$optionName, $this->optionsInfo[(string)$section]); |
|
182 | + return array_key_exists((string) $section, $this->optionsInfo) && |
|
183 | + array_key_exists((string) $optionName, $this->optionsInfo[(string) $section]); |
|
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | if (!$this->isKnownOption($section, $optionName)) { |
197 | 197 | throw new InformerRuntimeException("For version {$this->version} {$optionName} is unknown option"); |
198 | 198 | } |
199 | - $info_data = $this->documentation[(string)$section][(string)$optionName]; |
|
199 | + $info_data = $this->documentation[(string) $section][(string) $optionName]; |
|
200 | 200 | |
201 | 201 | $optionInfo = new OptionInfo( |
202 | 202 | $optionName, |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | $info_data['link'] |
208 | 208 | ); |
209 | 209 | |
210 | - $this->optionsInfo[(string)$section][(string)$optionName] = $optionInfo; |
|
210 | + $this->optionsInfo[(string) $section][(string) $optionName] = $optionInfo; |
|
211 | 211 | } |
212 | 212 | |
213 | 213 | /** |