@@ -23,7 +23,7 @@ |
||
| 23 | 23 | switch ($this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME, null)) { |
| 24 | 24 | case ODataConstants::ATOM_EDIT_RELATION_ATTRIBUTE_VALUE: |
| 25 | 25 | case ODataConstants::ODATA_RELATED_NAMESPACE . |
| 26 | - $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_TITLE_ELELMET_NAME, ''): |
|
| 26 | + $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_TITLE_ELELMET_NAME, ''): |
|
| 27 | 27 | $object = ODataLink::class; |
| 28 | 28 | break; |
| 29 | 29 | case ODataConstants::ATOM_EDIT_MEDIA_RELATION_ATTRIBUTE_VALUE: |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | break; |
| 111 | 111 | case strtolower(ODataConstants::ATOM_LINK_ELEMENT_NAME): |
| 112 | 112 | $this->handleLink($this->subProcessor->getObjetModelObject()); |
| 113 | - $this->subProcessor = null; |
|
| 113 | + $this->subProcessor = null; |
|
| 114 | 114 | break; |
| 115 | 115 | case strtolower(ODataConstants::ATOM_CATEGORY_ELEMENT_NAME): |
| 116 | 116 | $this->oDataEntry->type = $this->objectModelSubNode; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function handleStartNode($tagNamespace, $tagName, $attributes) |
| 39 | 39 | { |
| 40 | - if(strtolower($tagNamespace) !== strtolower(ODataConstants::ATOM_NAMESPACE)){ |
|
| 40 | + if(strtolower($tagNamespace) !== strtolower(ODataConstants::ATOM_NAMESPACE)) { |
|
| 41 | 41 | $this->subProcessor->handleStartNode($tagNamespace, $tagName, $attributes); |
| 42 | 42 | return; |
| 43 | 43 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | public function handleEndNode($tagNamespace, $tagName) |
| 92 | 92 | { |
| 93 | - if(strtolower($tagNamespace) !== strtolower(ODataConstants::ATOM_NAMESPACE)){ |
|
| 93 | + if(strtolower($tagNamespace) !== strtolower(ODataConstants::ATOM_NAMESPACE)) { |
|
| 94 | 94 | $this->subProcessor->handleEndNode($tagNamespace, $tagName); |
| 95 | 95 | return; |
| 96 | 96 | } |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | if( |
| 37 | 37 | strtolower($tagNamespace) === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE) && |
| 38 | 38 | strtolower($tagName) === strtolower((ODataConstants::ATOM_PROPERTIES_ELEMENT_NAME)) |
| 39 | - ){ |
|
| 39 | + ) { |
|
| 40 | 40 | return ; |
| 41 | 41 | } |
| 42 | 42 | //TODO: this will need to be expanded with opengis namespaces as well when supported |
@@ -59,16 +59,16 @@ discard block |
||
| 59 | 59 | if( |
| 60 | 60 | strtolower($tagNamespace) === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE) && |
| 61 | 61 | strtolower($tagName) === strtolower((ODataConstants::ATOM_PROPERTIES_ELEMENT_NAME)) |
| 62 | - ){ |
|
| 62 | + ) { |
|
| 63 | 63 | return ; |
| 64 | 64 | } |
| 65 | 65 | $prop = $this->properties->pop(); |
| 66 | 66 | $propContent = $this->propertyContent->pop(); |
| 67 | 67 | $this->propertyContent->top()->properties[$prop->name] = $prop; |
| 68 | 68 | |
| 69 | - if(count($propContent->properties) == 0){ |
|
| 69 | + if(count($propContent->properties) == 0) { |
|
| 70 | 70 | $prop->value = $this->popCharData(); |
| 71 | - }else{ |
|
| 71 | + } else { |
|
| 72 | 72 | $prop->value = $propContent; |
| 73 | 73 | } |
| 74 | 74 | } |