Passed
Pull Request — master (#245)
by Christopher
04:06
created
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.
src/POData/ObjectModel/CynicDeserialiser.php 1 patch
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.
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.