@@ -84,12 +84,12 @@ discard block |
||
84 | 84 | $this->response = simplexml_load_string($response); |
85 | 85 | $copyXml = $this->response; |
86 | 86 | |
87 | - if ( $this->response === false || $this->checkIntegrity($this->response) === false ) |
|
87 | + if ($this->response === false || $this->checkIntegrity($this->response) === false) |
|
88 | 88 | { |
89 | 89 | return []; |
90 | 90 | } |
91 | 91 | |
92 | - $array_vars_list = get_object_vars($copyXml); |
|
92 | + $array_vars_list = get_object_vars($copyXml); |
|
93 | 93 | |
94 | 94 | if (key_exists('content', $array_vars_list)) { |
95 | 95 | return $this->arrayOne(); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function checkIntegrity($response) |
109 | 109 | { |
110 | - if ( empty($response->message) ) |
|
110 | + if (empty($response->message)) |
|
111 | 111 | { |
112 | 112 | return true; |
113 | 113 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | private function workspace() |
156 | 156 | { |
157 | 157 | foreach ($this->response->workspace->collection as $item) { |
158 | - $this->validText[] = get_object_vars($item->children( $this->namespaces['NamespaceAtom'] ))['title']; |
|
158 | + $this->validText[] = get_object_vars($item->children($this->namespaces['NamespaceAtom']))['title']; |
|
159 | 159 | } |
160 | 160 | return $this; |
161 | 161 | } |
@@ -168,8 +168,8 @@ discard block |
||
168 | 168 | private function arrayMany() |
169 | 169 | { |
170 | 170 | try { |
171 | - foreach ($this->response->children( $this->namespaces['NamespaceAtom'] )->entry as $item ) { |
|
172 | - $this->validText[] = $item->content->children( $this->namespaces['NamespaceMetadata'] ) |
|
171 | + foreach ($this->response->children($this->namespaces['NamespaceAtom'])->entry as $item) { |
|
172 | + $this->validText[] = $item->content->children($this->namespaces['NamespaceMetadata']) |
|
173 | 173 | ->children($this->namespaces['NamespaceDataServices']); |
174 | 174 | } |
175 | 175 | return $this; |
@@ -183,9 +183,9 @@ discard block |
||
183 | 183 | */ |
184 | 184 | private function arrayOne() |
185 | 185 | { |
186 | - $this->validText = $this->response->children( $this->namespaces['NamespaceAtom'] )->content |
|
187 | - ->children( $this->namespaces['NamespaceMetadata'] ) |
|
188 | - ->children( $this->namespaces['NamespaceDataServices'] ); |
|
186 | + $this->validText = $this->response->children($this->namespaces['NamespaceAtom'])->content |
|
187 | + ->children($this->namespaces['NamespaceMetadata']) |
|
188 | + ->children($this->namespaces['NamespaceDataServices']); |
|
189 | 189 | return $this; |
190 | 190 | } |
191 | 191 | |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | $xmlns_dcd->appendChild($valued); |
223 | 223 | |
224 | 224 | //---------- properties ----------// |
225 | - $properties = $dom->createElement('m:properties'); |
|
225 | + $properties = $dom->createElement('m:properties'); |
|
226 | 226 | $content->appendChild($properties); |
227 | 227 | |
228 | 228 | foreach ($data as $nameField => $valueField) { |