Completed
Pull Request — master (#269)
by Christopher
14:37
created
src/POData/Readers/Atom/Processors/FeedProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME,
85 85
             ''
86 86
         );
87
-        $prop                     = $rel === ODataConstants::ATOM_SELF_RELATION_ATTRIBUTE_VALUE ? 'setSelfLink' : 'setNextPageLink';
87
+        $prop = $rel === ODataConstants::ATOM_SELF_RELATION_ATTRIBUTE_VALUE ? 'setSelfLink' : 'setNextPageLink';
88 88
         $this->oDataFeed->{$prop}(new ODataLink(
89 89
             $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME, ''),
90 90
             $this->arrayKeyOrDefault($attributes, ODataConstants::ATOM_TITLE_ELELMET_NAME, ''),
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     public function handleStartMetadataCount()
98 98
     {
99 99
         $this->enqueueEnd(function () {
100
-            $this->oDataFeed->rowCount = (int)$this->popCharData();
100
+            $this->oDataFeed->rowCount = (int) $this->popCharData();
101 101
         });
102 102
     }
103 103
 
Please login to merge, or discard this patch.
src/POData/ObjectModel/ODataFeed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     {
44 44
         parent::__construct($id, $title, $selfLink, $updated, $baseURI);
45 45
         $this->setNextPageLink($nextPageLink)->setEntries($entries);
46
-        $this->rowCount     = $rowCount;
46
+        $this->rowCount = $rowCount;
47 47
     }
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
src/POData/ObjectModel/CynicDeserialiser.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             $hasExpanded = null !== $link->getExpandedResult();
92 92
 
93 93
             $isEntry = ($link->getExpandedResult() ? $link->getExpandedResult()->getData() : null)
94
-                       instanceof ODataEntry;
94
+                        instanceof ODataEntry;
95 95
 
96 96
             if ($hasExpanded) {
97 97
                 if ($isEntry) {
Please login to merge, or discard this patch.
src/POData/ObjectModel/ODataLink.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
     {
225 225
         return !array_reduce(
226 226
             ['isExpanded', 'isCollection', 'expandedResult', 'title', 'type', 'name', 'url'],
227
-            function ($carry, $value){
227
+            function ($carry, $value) {
228 228
                 return $carry || isset($this->{$value});
229 229
             }, false);
230 230
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
     {
225 225
         return !array_reduce(
226 226
             ['isExpanded', 'isCollection', 'expandedResult', 'title', 'type', 'name', 'url'],
227
-            function ($carry, $value){
227
+            function ($carry, $value) {
228 228
                 return $carry || isset($this->{$value});
229 229
             }, false);
230 230
     }
Please login to merge, or discard this patch.
src/POData/Readers/Atom/Processors/Entry/PropertyProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         assert($tagNamespace === ODataConstants::ODATA_NAMESPACE ||
51 51
             $tagNamespace === ODataConstants::ODATA_METADATA_NAMESPACE);
52 52
 
53
-        $property           = new ODataProperty(
53
+        $property = new ODataProperty(
54 54
             $tagName,
55 55
             $this->arrayKeyOrDefault(
56 56
                 $attributes,
Please login to merge, or discard this patch.
POData/UriProcessor/ResourcePathProcessor/SegmentParser/KeyDescriptor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -590,13 +590,13 @@
 block discarded – undo
590 590
         foreach ($values as $propName => $propDeets) {
591 591
             assert(2 == count($propDeets));
592 592
             assert($propDeets[1] instanceof IType);
593
-            $property           = new ODataProperty(
593
+            $property = new ODataProperty(
594 594
                 strval($propName),
595 595
                 $propDeets[1]->getFullTypeName(),
596 596
                 $propDeets[1]->convert($propDeets[0])
597 597
 
598 598
             );
599
-            $result[$propName]  = $property;
599
+            $result[$propName] = $property;
600 600
         }
601 601
 
602 602
         return $result;
Please login to merge, or discard this patch.
src/POData/ObjectModel/CynicSerialiser.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $relativeUri = $this->getRequest()->getIdentifier();
143 143
         $absoluteUri = $this->getRequest()->getRequestUrl()->getUrlAsString();
144 144
 
145
-        $selfLink        = new ODataLink('self', $title, null, $relativeUri);
145
+        $selfLink = new ODataLink('self', $title, null, $relativeUri);
146 146
 
147 147
         $odata               = new ODataFeed();
148 148
         $odata->title        = new ODataTitle($title);
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 
297 297
         $resourceSet = $resourceType->getCustomState();
298 298
         assert($resourceSet instanceof ResourceSet);
299
-        $type  = $resourceType->getFullName();
299
+        $type = $resourceType->getFullName();
300 300
 
301 301
         $relativeUri = $this->getEntryInstanceKey(
302 302
             $entryObject->results,
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
             $name = $propName;
698 698
             $typeName = null;
699 699
             $value = null;
700
-            $raw                    = $result->{$propName};
700
+            $raw = $result->{$propName};
701 701
             if (static::isMatchPrimitive($resourceKind)) {
702 702
                 $iType = $prop->getInstanceType();
703 703
                 if (!$iType instanceof IType) {
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
                     $value = $this->primitiveToString($rType, $raw);
715 715
                 }
716 716
             } elseif (ResourcePropertyKind::COMPLEX_TYPE() == $resourceKind) {
717
-                $rType                      = $prop->getResourceType();
717
+                $rType = $prop->getResourceType();
718 718
                 $typeName = $rType->getFullName();
719 719
                 if (null !== $raw) {
720 720
                     $value = $this->writeComplexValue($rType, $raw, $propName);
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
             return false;
745 745
         }
746 746
 
747
-        return 0 == ($value % 4);
747
+        return 0 == ($value%4);
748 748
     }
749 749
 
750 750
     /**
@@ -808,7 +808,7 @@  discard block
 block discarded – undo
808 808
                         $nuLink->setType('application/atom+xml;type=feed');
809 809
                         $expandedResult = $this->writeTopLevelElements($result);
810 810
                     }
811
-                    if(null !== $expandedResult) {
811
+                    if (null !== $expandedResult) {
812 812
                         $nuLink->setExpandedResult(new ODataExpandedResult($expandedResult));
813 813
                     }
814 814
                 }
@@ -819,7 +819,7 @@  discard block
 block discarded – undo
819 819
                 $result                  = new ODataEntry();
820 820
                 $result->resourceSetName = $type->getName();
821 821
             } else {
822
-                $result                 = new ODataFeed();
822
+                $result = new ODataFeed();
823 823
                 $result->setSelfLink(new ODataLink(ODataConstants::ATOM_SELF_RELATION_ATTRIBUTE_VALUE));
824 824
             }
825 825
             $nuLink->setExpandedResult(new ODataExpandedResult($result));
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
             ODataConstants::HTTPQUERY_STRING_EXPAND,
877 877
             ODataConstants::HTTPQUERY_STRING_ORDERBY,
878 878
             ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
879
-            ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) {
879
+            ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
880 880
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
881 881
             if (null !== $value) {
882 882
                 if (null !== $queryParameterString) {
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
             if (!is_object($result)) {
1021 1021
                 throw new InvalidOperationException('Supplied $customObject must be an object');
1022 1022
             }
1023
-            $internalContent      = $this->writeComplexValue($resourceType, $result);
1023
+            $internalContent = $this->writeComplexValue($resourceType, $result);
1024 1024
             $value = $internalContent;
1025 1025
         }
1026 1026
 
@@ -1046,7 +1046,7 @@  discard block
 block discarded – undo
1046 1046
     {
1047 1047
         $result = $bagValue->results;
1048 1048
 
1049
-        $odataProperty           = new ODataProperty(
1049
+        $odataProperty = new ODataProperty(
1050 1050
             $propertyName,
1051 1051
             'Collection(' . $resourceType->getFullName() . ')',
1052 1052
             $this->writeBagValue($resourceType, $result)
Please login to merge, or discard this patch.