Passed
Pull Request — master (#269)
by Christopher
03:17
created
src/POData/BatchProcessor/IncomingChangeSetRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
         $inboundRequestHeaders = $this->setupHeaders(strtok("\n"));
22 22
 
23
-        $RequestBody                                        = trim($RequestBody);
23
+        $RequestBody = trim($RequestBody);
24 24
 
25 25
         $host     = $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME'] ?? $_SERVER['SERVER_ADDR'] ?? 'localhost';
26 26
         $protocol = $_SERVER['PROTOCOL'] = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ? 'https' : 'http';
Please login to merge, or discard this patch.
src/POData/HttpProcessUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@
 block discarded – undo
414 414
 
415 415
         $textLen = strlen($text);
416 416
         if ($textIndex >= $textLen || '.' != $text[$textIndex]) {
417
-            return $qualityValue * 1000;
417
+            return $qualityValue*1000;
418 418
         }
419 419
 
420 420
         ++$textIndex;
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/Type/Binary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     public static function validateWithoutPrefix(string $value, &$outValue)
103 103
     {
104 104
         $length = strlen($value);
105
-        if (0 == $length || 0 != $length % 2) {
105
+        if (0 == $length || 0 != $length%2) {
106 106
             return false;
107 107
         }
108 108
 
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/ResourceAssociationSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $type1 = $end1->getResourceType();
67 67
         $type2 = $end2->getResourceType();
68 68
 
69
-        if ($type1 === $type2  && $prop1 === $prop2) {
69
+        if ($type1 === $type2 && $prop1 === $prop2) {
70 70
             throw new InvalidArgumentException(
71 71
                 Messages::resourceAssociationSetSelfReferencingAssociationCannotBeBiDirectional()
72 72
             );
Please login to merge, or discard this patch.
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/CynicSerialiser.php 1 patch
Spacing   +4 added lines, -4 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);
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
             return false;
744 744
         }
745 745
 
746
-        return 0 == ($value % 4);
746
+        return 0 == ($value%4);
747 747
     }
748 748
 
749 749
     /**
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
                 $result                  = new ODataEntry();
817 817
                 $result->resourceSetName = $type->getName();
818 818
             } else {
819
-                $result                 = new ODataFeed();
819
+                $result = new ODataFeed();
820 820
                 $result->setSelfLink(new ODataLink(ODataConstants::ATOM_SELF_RELATION_ATTRIBUTE_VALUE));
821 821
             }
822 822
             $nuLink->setExpandedResult(new ODataExpandedResult($result));
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
             ODataConstants::HTTPQUERY_STRING_EXPAND,
874 874
             ODataConstants::HTTPQUERY_STRING_ORDERBY,
875 875
             ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
876
-            ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) {
876
+            ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
877 877
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
878 878
             if (null !== $value) {
879 879
                 if (null !== $queryParameterString) {
Please login to merge, or discard this patch.