Passed
Push — master ( 31cac0...d9f189 )
by Sergey
47s
created
src/LTDBeget/sphinx/configurator/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/configurator/configurationEntities/base/Section.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,13 +97,13 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/configurator/serializers/PlainSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/LTDBeget/sphinx/configurator/serializers/ArraySerializer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
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
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function getOptionInfo(eSection $section, eOption $optionName) : OptionInfo
49 49
     {
50
-        if (! $this->isSectionExist($section)) {
50
+        if (!$this->isSectionExist($section)) {
51 51
             throw new InformerRuntimeException("Sphinx of version {$this->version} does't have section {$section}");
52 52
         }
53 53
 
54
-        if (! $this->isKnownOption($section, $optionName)) {
54
+        if (!$this->isKnownOption($section, $optionName)) {
55 55
             throw new InformerRuntimeException("For sphinx v. {$this->version} option {$optionName} in {$section} isn't available");
56 56
         }
57 57
         
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function iterateOptionInfo(eSection $section)
96 96
     {
97
-        if (! $this->isSectionExist($section)) {
97
+        if (!$this->isSectionExist($section)) {
98 98
             throw new InformerRuntimeException("Sphinx of version {$this->version} does't have section {$section}");
99 99
         }
100 100
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     private function getOptionName(eSection $section, string $optionName) : eOption
116 116
     {
117
-        $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e".ucfirst( (string) $section). 'Option';
117
+        $enumClassName = "LTDBeget\\sphinx\\enums\\options\\e" . ucfirst((string) $section) . 'Option';
118 118
         /**
119 119
          * @var eOption $enumClassName
120 120
          */
Please login to merge, or discard this patch.