Passed
Pull Request — master (#227)
by Christopher
06:22
created
src/POData/Readers/Atom/Processors/EntryProcessor.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/Entry/PropertyProcessor.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.