Passed
Push — master ( 6b2979...464731 )
by Alex
04:00 queued 11s
created
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/OperationContext/ServiceHost.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -615,7 +615,7 @@
 block discarded – undo
615 615
      */
616 616
     public function setResponseStatusCode(int $value): void
617 617
     {
618
-        $floor = floor($value / 100);
618
+        $floor = floor($value/100);
619 619
         if ($floor >= 1 && $floor <= 5) {
620 620
             $statusDescription = HttpStatus::getStatusDescription($value);
621 621
             if (null !== $statusDescription) {
Please login to merge, or discard this patch.
src/POData/BaseService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
             MimeTypes::MIME_APPLICATION_JSON_FULL_META,
599 599
             MimeTypes::MIME_APPLICATION_JSON_NO_META,
600 600
             MimeTypes::MIME_APPLICATION_JSON_MINIMAL_META,
601
-            MimeTypes::MIME_APPLICATION_JSON_VERBOSE,];
601
+            MimeTypes::MIME_APPLICATION_JSON_VERBOSE, ];
602 602
 
603 603
         // The Accept request-header field specifies media types which are acceptable for the response
604 604
 
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
                     $requestAcceptText,
674 674
                     array_merge(
675 675
                         [MimeTypes::MIME_APPLICATION_XML,
676
-                            MimeTypes::MIME_TEXTXML,],
676
+                            MimeTypes::MIME_TEXTXML, ],
677 677
                         $baseMimeTypes
678 678
                     )
679 679
                 );
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/Type/Guid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,12 +102,12 @@
 block discarded – undo
102 102
             $patt = ['/^(\'[0-9a-fA-F]{32}\')?$/',
103 103
                 '/^(\'[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\')?$/',
104 104
                 '/^\'\{?([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}?\')?$/',
105
-                '/^\'\(?([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\)?\')?$/',];
105
+                '/^\'\(?([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\)?\')?$/', ];
106 106
         } else {
107 107
             $patt = ['/^([0-9a-fA-F]{32})?$/',
108 108
                 '/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})?$/',
109 109
                 '/^\{?([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}?)?$/',
110
-                '/^\(?([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\)?)?$/',];
110
+                '/^\(?([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\)?)?$/', ];
111 111
         }
112 112
 
113 113
         foreach ($patt as $pattern) {
Please login to merge, or discard this patch.
src/POData/ObjectModel/CynicDeserialiser.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
         assert($set instanceof ResourceSet, get_class($set));
149 149
         $type       = $set->getResourceType();
150 150
         $properties = $this->getDeserialiser()->bulkDeserialise($type, $content);
151
-        $properties = (object)$properties;
151
+        $properties = (object) $properties;
152 152
 
153 153
         if ($isCreate) {
154 154
             $result = $this->getWrapper()->createResourceforResourceSet($set, null, $properties);
Please login to merge, or discard this 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/UriProcessor/QueryProcessor/OrderByParser/OrderByLeafNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
             if ($flag1 && $flag2) {
135 135
                 return 0;
136 136
             } elseif ($flag1) {
137
-                return $ascend * -1;
137
+                return $ascend*-1;
138 138
             } elseif ($flag2) {
139
-                return $ascend * 1;
139
+                return $ascend*1;
140 140
             }
141 141
             $type = $this->resourceProperty->getInstanceType();
142 142
             if ($type instanceof DateTime) {
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
                 $result = strcmp($accessor1, $accessor2);
148 148
             } else {
149 149
                 $delta  = $accessor1 - $accessor2;
150
-                $result = (0 == $delta) ? 0 : $delta / abs($delta);
150
+                $result = (0 == $delta) ? 0 : $delta/abs($delta);
151 151
             }
152 152
 
153
-            return $ascend * $result;
153
+            return $ascend*$result;
154 154
         };
155 155
 
156 156
         return $retVal;
Please login to merge, or discard this patch.
UriProcessor/QueryProcessor/SkipTokenParser/InternalSkipTokenInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
         $searchArraySize = count($searchArray) - 1;
142 142
         $high            = $searchArraySize;
143 143
         do {
144
-            $mid    = intval($low + round(($high - $low) / 2));
144
+            $mid    = intval($low + round(($high - $low)/2));
145 145
             $result = $comparer($keyObject, $searchArray[$mid]);
146 146
             if ($result > 0) {
147 147
                 $low = $mid + 1;
Please login to merge, or discard this patch.
src/POData/UriProcessor/UriProcessorNew.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -394,8 +394,7 @@
 block discarded – undo
394 394
     private function executeGetResourceRelated(SegmentDescriptor $segment, $eagerList)
395 395
     {
396 396
         $projectedProperty     = $segment->getProjectedProperty();
397
-        $projectedPropertyKind = null !== $projectedProperty ? $projectedProperty->getKind() :
398
-            new ResourcePropertyKind(0);
397
+        $projectedPropertyKind = null !== $projectedProperty ? $projectedProperty->getKind() : new ResourcePropertyKind(0);
399 398
         $queryResult = null;
400 399
         switch ($projectedPropertyKind) {
401 400
             case ResourcePropertyKind::RESOURCE_REFERENCE():
Please login to merge, or discard this patch.
src/POData/Writers/Json/JsonWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
 
208 208
             case 'Edm.DateTime':
209 209
                 $dateTime          = new DateTime($value, new DateTimeZone('UTC'));
210
-                $formattedDateTime = $dateTime->format('U') * 1000;
210
+                $formattedDateTime = $dateTime->format('U')*1000;
211 211
                 $this->writeCore('/Date(' . $formattedDateTime . ')/', /* quotes */ true);
212 212
                 break;
213 213
 
Please login to merge, or discard this patch.