Passed
Pull Request — master (#227)
by Christopher
06:00
created
src/POData/Readers/ODataReaderRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function reset()
24 24
     {
25
-        $this->readers  = [];
25
+        $this->readers = [];
26 26
     }
27 27
 
28 28
     /**
Please login to merge, or discard this patch.
src/POData/ObjectModel/ODataMediaLink.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,6 @@
 block discarded – undo
78 78
         $this->eTag        = $eTag;
79 79
         $this->name        = $name;
80 80
         $this->srcLink     = $srcLink;
81
-        $this->rel         = (null !== $rel) ? $rel :
82
-            ODataConstants::ATOM_MEDIA_RESOURCE_RELATION_ATTRIBUTE_VALUE . $name;
81
+        $this->rel         = (null !== $rel) ? $rel : ODataConstants::ATOM_MEDIA_RESOURCE_RELATION_ATTRIBUTE_VALUE . $name;
83 82
     }
84 83
 }
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/Entry/LinkProcessor.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,14 +43,14 @@
 block discarded – undo
43 43
     public function handleStartNode($tagNamespace, $tagName, $attributes)
44 44
     {
45 45
         //The only sub notes that will exist will be the inline ones before we process the feed or entity.
46
-        assert($tagNamespace  === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE));
46
+        assert($tagNamespace === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE));
47 47
         assert($tagName === strtolower(ODataConstants::ATOM_INLINE_ELEMENT_NAME));
48 48
     }
49 49
 
50 50
     public function handleEndNode($tagNamespace, $tagName)
51 51
     {
52 52
         //The only sub notes that will exist will be the inline ones before we process the feed or entity.
53
-        assert($tagNamespace  === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE));
53
+        assert($tagNamespace === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE));
54 54
         assert($tagName === strtolower(ODataConstants::ATOM_INLINE_ELEMENT_NAME));
55 55
     }
56 56
 
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/Entry/PropertyProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             strtolower($tagNamespace) === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE) &&
38 38
             strtolower($tagName) === strtolower((ODataConstants::ATOM_PROPERTIES_ELEMENT_NAME))
39 39
         ) {
40
-            return ;
40
+            return;
41 41
         }
42 42
         //TODO: this will need to be expanded with opengis namespaces as well when supported
43 43
         assert($tagNamespace === ODataConstants::ODATA_NAMESPACE ||
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             strtolower($tagNamespace) === strtolower(ODataConstants::ODATA_METADATA_NAMESPACE) &&
61 61
             strtolower($tagName) === strtolower((ODataConstants::ATOM_PROPERTIES_ELEMENT_NAME))
62 62
         ) {
63
-            return ;
63
+            return;
64 64
         }
65 65
         $prop                                                  = $this->properties->pop();
66 66
         $propContent                                           = $this->propertyContent->pop();
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/EntryProcessor.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
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->setType($this->objectModelSubNode);
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/BaseNodeHandler.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         return $default;
52 52
     }
53 53
 
54
-    protected final function onParseError($namespace, $startEnd, $tagName){
54
+    protected final function onParseError($namespace, $startEnd, $tagName) {
55 55
         throw new ParseError(sprintf(self::$processExceptionMessage, $namespace, $startEnd, $tagName));
56 56
 
57 57
     }
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,8 +22,9 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function handleCharacterData($characters)
24 24
     {
25
-        if (ord($characters) === 10 && empty($this->charData))
26
-            return; 
25
+        if (ord($characters) === 10 && empty($this->charData)) {
26
+                    return;
27
+        }
27 28
         $this->charData .= $characters;
28 29
     }
29 30
 
@@ -51,7 +52,8 @@  discard block
 block discarded – undo
51 52
         return $default;
52 53
     }
53 54
 
54
-    protected final function onParseError($namespace, $startEnd, $tagName){
55
+    protected final function onParseError($namespace, $startEnd, $tagName)
56
+    {
55 57
         throw new ParseError(sprintf(self::$processExceptionMessage, $namespace, $startEnd, $tagName));
56 58
 
57 59
     }
Please login to merge, or discard this patch.