@@ -32,6 +32,11 @@ |
||
32 | 32 | private $_current = 0; |
33 | 33 | protected $_registerNS; |
34 | 34 | |
35 | + /** |
|
36 | + * @param DOMNodeList $nodeList |
|
37 | + * @param string[] $colNodes |
|
38 | + * @param string $registerNS |
|
39 | + */ |
|
35 | 40 | public function __construct($nodeList, $colNodes, $registerNS) |
36 | 41 | { |
37 | 42 | if (!($nodeList instanceof DOMNodeList)) { |
@@ -171,7 +171,7 @@ |
||
171 | 171 | $keyName = substr($key, strrpos($key, "\0")); |
172 | 172 | $propertyName = preg_replace($this->getMethodPattern(0), $this->getMethodPattern(1), $keyName); |
173 | 173 | |
174 | - if (method_exists($object, $this->getMethodGetPrefix() . $propertyName)) { |
|
174 | + if (method_exists($object, $this->getMethodGetPrefix().$propertyName)) { |
|
175 | 175 | $result[$propertyName] = $this->buildProperty($value); |
176 | 176 | } |
177 | 177 | } else { |
@@ -80,8 +80,8 @@ |
||
80 | 80 | { |
81 | 81 | if ($obj instanceof SingleRow) { |
82 | 82 | $obj->setField($propName, $value); |
83 | - } else if (method_exists($obj, 'set' . $propName)) { |
|
84 | - $obj->{'set' . $propName}($value); |
|
83 | + } else if (method_exists($obj, 'set'.$propName)) { |
|
84 | + $obj->{'set'.$propName}($value); |
|
85 | 85 | } elseif (isset($obj->{$propName}) || $obj instanceof stdClass) { |
86 | 86 | $obj->{$propName} = $value; |
87 | 87 | } else { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | } else { |
67 | 67 | $this->propertyList = $this->getClassRefl()->getProperties( |
68 | 68 | ReflectionProperty::IS_PROTECTED | |
69 | - ReflectionProperty::IS_PRIVATE | |
|
69 | + ReflectionProperty::IS_PRIVATE | |
|
70 | 70 | ReflectionProperty::IS_PUBLIC |
71 | 71 | ); |
72 | 72 | } |
@@ -196,12 +196,12 @@ discard block |
||
196 | 196 | if (!$this->classNamespace) { |
197 | 197 | $this->classNamespace = $this->getAnnotations("namespace", []); |
198 | 198 | if (!is_array($this->classNamespace) && !empty($this->classNamespace)) { |
199 | - $this->classNamespace = [ $this->classNamespace]; |
|
199 | + $this->classNamespace = [$this->classNamespace]; |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | foreach ($this->classNamespace as $key => $value) { |
203 | 203 | $prefix = strtok($value, "!"); |
204 | - $uri = str_replace($prefix . "!", "", $value); |
|
204 | + $uri = str_replace($prefix."!", "", $value); |
|
205 | 205 | |
206 | 206 | $this->classNamespace[$key] = [ |
207 | 207 | $this->classNamespace[$key], |