@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | private function serializeIndexer() |
| 99 | 99 | { |
| 100 | - if ($this->objectConfiguration->isHasIndexer() && ! $this->objectConfiguration->getIndexer()->isDeleted()) { |
|
| 100 | + if ($this->objectConfiguration->isHasIndexer() && !$this->objectConfiguration->getIndexer()->isDeleted()) { |
|
| 101 | 101 | $this->serializeSettings($this->objectConfiguration->getIndexer()); |
| 102 | 102 | } |
| 103 | 103 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | private function serializeSearchhd() |
| 111 | 111 | { |
| 112 | - if ($this->objectConfiguration->isHasSearchd() && ! $this->objectConfiguration->getSearchd()->isDeleted()) { |
|
| 112 | + if ($this->objectConfiguration->isHasSearchd() && !$this->objectConfiguration->getSearchd()->isDeleted()) { |
|
| 113 | 113 | $this->serializeSettings($this->objectConfiguration->getSearchd()); |
| 114 | 114 | } |
| 115 | 115 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | private function serializeCommon() |
| 124 | 124 | { |
| 125 | - if ($this->objectConfiguration->isHasCommon() && ! $this->objectConfiguration->getCommon()->isDeleted()) { |
|
| 125 | + if ($this->objectConfiguration->isHasCommon() && !$this->objectConfiguration->getCommon()->isDeleted()) { |
|
| 126 | 126 | $this->serializeSettings($this->objectConfiguration->getCommon()); |
| 127 | 127 | } |
| 128 | 128 | } |
@@ -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/18/16 |
|
| 5 | - * @time: 5:43 PM |
|
| 6 | - */ |
|
| 3 | + * @author: Viskov Sergey |
|
| 4 | + * @date: 3/18/16 |
|
| 5 | + * @time: 5:43 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: 19.03.16 |
|
| 5 | - * @time: 0:04 |
|
| 6 | - */ |
|
| 3 | + * @author: Viskov Sergey |
|
| 4 | + * @date: 19.03.16 |
|
| 5 | + * @time: 0:04 |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace LTDBeget\sphinx\configurator\configurationEntities\base; |
| 9 | 9 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | $this->defineName($name); |
| 51 | 51 | |
| 52 | - if (! empty($inheritance)) { |
|
| 52 | + if (!empty($inheritance)) { |
|
| 53 | 53 | $this->defineInheritance($inheritance); |
| 54 | 54 | } |
| 55 | 55 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | public function delete() |
| 111 | 111 | { |
| 112 | 112 | foreach ($this->getSelfTypeIterator() as $definition) { |
| 113 | - if($definition->isHasInheritance() && $definition->getInheritance() === $this) { |
|
| 113 | + if ($definition->isHasInheritance() && $definition->getInheritance() === $this) { |
|
| 114 | 114 | $definition->delete(); |
| 115 | 115 | } |
| 116 | 116 | } |
@@ -132,12 +132,12 @@ discard block |
||
| 132 | 132 | throw new SectionException("Name of section {$this->getType()} can't be empty."); |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - if(! $this->isValidName($name)) { |
|
| 135 | + if (!$this->isValidName($name)) { |
|
| 136 | 136 | throw new SectionException('Name of definition must contains only A-Za-z and _ symbols'); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | foreach ($this->getSelfTypeIterator() as $definition) { |
| 140 | - if($definition->getName() === $name) { |
|
| 140 | + if ($definition->getName() === $name) { |
|
| 141 | 141 | throw new SectionException("Duplicate name {$name} found in {$this->getType()} section"); |
| 142 | 142 | } |
| 143 | 143 | } |
@@ -155,17 +155,17 @@ discard block |
||
| 155 | 155 | { |
| 156 | 156 | $inheritance = trim($inheritance); |
| 157 | 157 | |
| 158 | - if(! $this->isValidName($inheritance)) { |
|
| 158 | + if (!$this->isValidName($inheritance)) { |
|
| 159 | 159 | throw new SectionException('Inheritance of definition must contains only A-Za-z and _ symbols'); |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | foreach ($this->getSelfTypeIterator() as $definition) { |
| 163 | - if($definition->getName() === $inheritance) { |
|
| 163 | + if ($definition->getName() === $inheritance) { |
|
| 164 | 164 | $this->inheritance = $definition; |
| 165 | 165 | } |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - if (! $this->isHasInheritance()) { |
|
| 168 | + if (!$this->isHasInheritance()) { |
|
| 169 | 169 | throw new SectionException("Inheritance with name {$inheritance} of section {$this->getType()} doesn't exists in configuration"); |
| 170 | 170 | } |
| 171 | 171 | |