Passed
Pull Request — master (#245)
by Christopher
04:06
created
src/POData/SimpleDataService.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
         ServiceHost $host,
51 51
         IObjectSerialiser $serialiser = null,
52 52
         IStreamProvider2 $streamProvider = null
53
-    )
54
-    {
53
+    ) {
55 54
         $this->metaProvider = $metaProvider;
56 55
         if ($db instanceof IQueryProvider) {
57 56
             $this->queryProvider = $db;
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/UriProcessor/RequestDescription.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -235,8 +235,7 @@  discard block
 block discarded – undo
235 235
         $dataType = null,
236 236
         IHTTPRequest $payload = null,
237 237
         ODataReaderRegistry $readerRegistry = null
238
-    )
239
-    {
238
+    ) {
240 239
         $this->readerRegistry = $readerRegistry;
241 240
         $this->segments = $segmentDescriptors;
242 241
         $this->segmentCount = count($this->segments);
@@ -798,8 +797,7 @@  discard block
 block discarded – undo
798 797
      */
799 798
     public function setInternalSkipTokenInfo(
800 799
         InternalSkipTokenInfo &$internalSkipTokenInfo
801
-    )
802
-    {
800
+    ) {
803 801
         $this->internalSkipTokenInfo = $internalSkipTokenInfo;
804 802
     }
805 803
 
Please login to merge, or discard this patch.
src/POData/UriProcessor/RequestExpander.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -310,8 +310,7 @@  discard block
 block discarded – undo
310 310
         $expandedProjectionNode,
311 311
         $resourceType,
312 312
         $expandedPropertyName
313
-    )
314
-    {
313
+    ) {
315 314
         $internalOrderByInfo = $expandedProjectionNode->getInternalOrderByInfo();
316 315
         if (null !== $internalOrderByInfo) {
317 316
             $orderByFunction = $internalOrderByInfo->getSorterFunction();
@@ -429,8 +428,7 @@  discard block
 block discarded – undo
429 428
         $entry,
430 429
         $resourceType,
431 430
         $expandedPropertyName
432
-    )
433
-    {
431
+    ) {
434 432
         $currentResourceSet = $this->getCurrentResourceSetWrapper()->getResourceSet();
435 433
         $resourceSetOfProjectedProperty = $expandedProjectionNode
436 434
             ->getResourceSetWrapper()
Please login to merge, or discard this patch.
src/POData/Writers/Atom/AtomODataWriter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -543,8 +543,7 @@
 block discarded – undo
543 543
         $attribute,
544 544
         $attributeValue,
545 545
         $nodeValue
546
-    )
547
-    {
546
+    ) {
548 547
         $this->xmlWriter->startElement($node);
549 548
         $this->xmlWriter->writeAttribute($attribute, $attributeValue);
550 549
         $this->xmlWriter->text($nodeValue ?? '');
Please login to merge, or discard this patch.
src/POData/Writers/ResponseWriter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@
 block discarded – undo
33 33
         RequestDescription $request,
34 34
         $entityModel,
35 35
         $responseContentType
36
-    )
37
-    {
36
+    ) {
38 37
         $targetKind = $request->getTargetKind();
39 38
 
40 39
         if (TargetKind::METADATA() == $targetKind) {
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
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
 
206 206
             case 'Edm.DateTime':
207 207
                 $dateTime = new Carbon($value, new DateTimeZone('UTC'));
208
-                $formattedDateTime = $dateTime->format('U') * 1000;
208
+                $formattedDateTime = $dateTime->format('U')*1000;
209 209
                 $this->writeCore('/Date(' . $formattedDateTime . ')/', /* quotes */ true);
210 210
                 break;
211 211
 
Please login to merge, or discard this patch.
src/POData/ObjectModel/CynicSerialiser.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -877,10 +877,10 @@
 block discarded – undo
877 877
     {
878 878
         $queryParameterString = null;
879 879
         foreach ([ODataConstants::HTTPQUERY_STRING_FILTER,
880
-                     ODataConstants::HTTPQUERY_STRING_EXPAND,
881
-                     ODataConstants::HTTPQUERY_STRING_ORDERBY,
882
-                     ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
883
-                     ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) {
880
+                        ODataConstants::HTTPQUERY_STRING_EXPAND,
881
+                        ODataConstants::HTTPQUERY_STRING_ORDERBY,
882
+                        ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
883
+                        ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) {
884 884
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
885 885
             if (null !== $value) {
886 886
                 if (null !== $queryParameterString) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -748,7 +748,7 @@  discard block
 block discarded – undo
748 748
             return false;
749 749
         }
750 750
 
751
-        return 0 == ($value % 4);
751
+        return 0 == ($value%4);
752 752
     }
753 753
 
754 754
     /**
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
                      ODataConstants::HTTPQUERY_STRING_EXPAND,
881 881
                      ODataConstants::HTTPQUERY_STRING_ORDERBY,
882 882
                      ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
883
-                     ODataConstants::HTTPQUERY_STRING_SELECT,] as $queryOption) {
883
+                     ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
884 884
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
885 885
             if (null !== $value) {
886 886
                 if (null !== $queryParameterString) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -788,8 +788,7 @@
 block discarded – undo
788 788
         ODataLink $nuLink,
789 789
         ResourcePropertyKind $propKind,
790 790
         string $propName
791
-    )
792
-    {
791
+    ) {
793 792
         $nextName = $prop->getResourceType()->getName();
794 793
         $nuLink->isExpanded = true;
795 794
         $value = $entryObject->results->{$propName};
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.