Passed
Pull Request — master (#44)
by
unknown
02:03
created
src/LTDBeget/sphinx/configurator/configurationEntities/base/Definition.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * @internal
199 199
      *
200
-     * @param $name
200
+     * @param string $name
201 201
      *
202 202
      * @return bool
203 203
      */
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     /**
210 210
      * @internal
211 211
      *
212
-     * @return Definition[]
212
+     * @return \Generator
213 213
      * @throws LogicException
214 214
      */
215 215
     private function getSelfTypeIterator()
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/informer/Informer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     private function getOptionName(eSection $section, string $optionName) : eOption
135 135
     {
136
-        $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e" . ucfirst((string) $section) . 'Option';
136
+        $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e".ucfirst((string) $section).'Option';
137 137
 
138 138
         /**
139 139
          * @var eOption $enumClassName
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      */
284 284
     private function getDocumentationDirectoryPath() : string
285 285
     {
286
-        return __DIR__ . '/../../../../sphinx/docs';
286
+        return __DIR__.'/../../../../sphinx/docs';
287 287
     }
288 288
 
289 289
     /**
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
      */
294 294
     private function getDocumentationFilePath() : string
295 295
     {
296
-        return $this->getDocumentationDirectoryPath() . "/documentation_{$this->version}.yaml";
296
+        return $this->getDocumentationDirectoryPath()."/documentation_{$this->version}.yaml";
297 297
     }
298 298
 
299 299
     /**
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      */
304 304
     private function getRemovedListFilePath() : string
305 305
     {
306
-        return $this->getDocumentationDirectoryPath() . "/permanently_removed_options_{$this->version}.yaml";
306
+        return $this->getDocumentationDirectoryPath()."/permanently_removed_options_{$this->version}.yaml";
307 307
     }
308 308
 
309 309
     /**
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/configurator/configurationEntities/base/Section.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     {
70 70
         try {
71 71
             $string = '';
72
-            $string .= $this->renderDefineBlock() . PHP_EOL;
72
+            $string .= $this->renderDefineBlock().PHP_EOL;
73 73
             $string .= $this->renderOptions();
74 74
         } catch (\Exception $e) {
75 75
             $string = '';
@@ -184,11 +184,11 @@  discard block
 block discarded – undo
184 184
     protected function renderOptions() : string
185 185
     {
186 186
         $string = '';
187
-        $string .= '{' . PHP_EOL;
187
+        $string .= '{'.PHP_EOL;
188 188
         foreach ($this->iterateOptions() as $option) {
189
-            $string .= "\t{$option}" . PHP_EOL;
189
+            $string .= "\t{$option}".PHP_EOL;
190 190
         }
191
-        $string .= '}' . PHP_EOL . PHP_EOL;
191
+        $string .= '}'.PHP_EOL.PHP_EOL;
192 192
 
193 193
         return $string;
194 194
     }
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/configurator/ConfigurationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LTDBeget\sphinx\configurator;
6 6
 
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/configurator/ConfigurationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LTDBeget\sphinx\configurator;
6 6
 
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/configurator/serializers/PlainSerializer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     private function serializeIndexer()
95 95
     {
96 96
         if ($this->object->hasIndexer()) {
97
-            $this->string .= (string)ConfigurationHelper::getOrCreateIndexer($this->object);
97
+            $this->string .= (string) ConfigurationHelper::getOrCreateIndexer($this->object);
98 98
         }
99 99
     }
100 100
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     private function serializeSearchd()
105 105
     {
106 106
         if ($this->object->hasSearchd()) {
107
-            $this->string .= (string)ConfigurationHelper::getOrCreateSearchd($this->object);
107
+            $this->string .= (string) ConfigurationHelper::getOrCreateSearchd($this->object);
108 108
         }
109 109
     }
110 110
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     private function serializeCommon()
116 116
     {
117 117
         if ($this->object->hasCommon()) {
118
-            $this->string .= (string)ConfigurationHelper::getOrCreateCommon($this->object);
118
+            $this->string .= (string) ConfigurationHelper::getOrCreateCommon($this->object);
119 119
         }
120 120
     }
121 121
 }
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/configurator/configurationEntities/sections/Index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,17 +43,17 @@
 block discarded – undo
43 43
 
44 44
         do {
45 45
             foreach ($index->iterateOptions() as $option) {
46
-                if(eIndexOption::SOURCE()->is($option->getName()) ) {
46
+                if (eIndexOption::SOURCE()->is($option->getName())) {
47 47
                     $source_name = $option->getValue();
48 48
                 }
49 49
             }
50
-            if($index->isHasInheritance()) {
50
+            if ($index->isHasInheritance()) {
51 51
                 $index = $index->getInheritance();
52 52
             }
53
-        } while($index->isHasInheritance());
53
+        } while ($index->isHasInheritance());
54 54
 
55 55
         foreach ($this->getConfiguration()->iterateSources() as $source) {
56
-            if($source->getName() === $source_name) {
56
+            if ($source->getName() === $source_name) {
57 57
                 return $source;
58 58
             }
59 59
         }
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/configurator/ConfigurationSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace LTDBeget\sphinx\configurator;
6 6
 
Please login to merge, or discard this patch.