Passed
Pull Request — master (#227)
by Alex
05:50
created
src/POData/ObjectModel/CynicSerialiser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1113,6 +1113,6 @@
 block discarded – undo
1113 1113
             return false;
1114 1114
         }
1115 1115
 
1116
-        return 0 == ($resourceKind % 4);
1116
+        return 0 == ($resourceKind%4);
1117 1117
     }
1118 1118
 }
Please login to merge, or discard this patch.
src/POData/ObjectModel/ODataEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
         if (null !== $type) {
181 181
             $rawTerm               = $type->term;
182 182
             $termArray             = explode('.', $rawTerm);
183
-            $final                 = $termArray[count($termArray)-1];
183
+            $final                 = $termArray[count($termArray) - 1];
184 184
             $this->resourceSetName = MetadataManager::getResourceSetNameFromResourceType($final);
185 185
         }
186 186
     }
Please login to merge, or discard this patch.
src/POData/BatchProcessor/BatchProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     public function getResponse()
74 74
     {
75 75
         $response = '';
76
-        $splitter =  '--' . $this->batchBoundary . "\r\n";
76
+        $splitter = '--' . $this->batchBoundary . "\r\n";
77 77
         $raw      = $this->changeSetProcessors;
78 78
         foreach ($raw as $contentID => &$workingObject) {
79 79
             $response .= $splitter;
Please login to merge, or discard this patch.
src/POData/BatchProcessor/ChangeSetParser.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     protected $changeSetBoundary;
20 20
     protected $rawRequests = [];
21 21
     protected $service;
22
-    protected $contentIDToLocationLookup =[];
22
+    protected $contentIDToLocationLookup = [];
23 23
 
24 24
     /**
25 25
      * ChangeSetParser constructor.
@@ -108,8 +108,7 @@  discard block
 block discarded – undo
108 108
         $response .= false === $this->changeSetBoundary ? "\r\n" : "--\r\n";
109 109
         $response = 'Content-Length: ' . strlen($response) . "\r\n\r\n" . $response;
110 110
         $response = false === $this->changeSetBoundary ?
111
-            $response :
112
-            'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;
111
+            $response : 'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;
113 112
         return $response;
114 113
     }
115 114
 
@@ -193,7 +192,7 @@  discard block
 block discarded – undo
193 192
             if ($contentIDinit == $contentID) {
194 193
                 $contentIDinit--;
195 194
             }
196
-            $this->rawRequests[$contentID] = (object)[
195
+            $this->rawRequests[$contentID] = (object) [
197 196
                 'RequestVerb' => $requestPathParts[0],
198 197
                 'RequestURL' => $requestPathParts[1],
199 198
                 'ServerParams' => $serverParts,
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/SimpleMetadataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -693,7 +693,7 @@
 block discarded – undo
693 693
         ResourceEntityType $concreteType = null
694 694
     ) {
695 695
         $allowedMult   = ['*', '1', '0..1'];
696
-        $backMultArray = [ '*' => '*', '1' => '0..1', '0..1' => '1'];
696
+        $backMultArray = ['*' => '*', '1' => '0..1', '0..1' => '1'];
697 697
         $this->checkInstanceProperty($name, $sourceResourceType);
698 698
 
699 699
         // check that property and resource name don't up and collide - would violate OData spec
Please login to merge, or discard this patch.
src/POData/Common/Messages/httpProcessUtility.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     public static function httpProcessUtilityClosingQuoteNotFound($parameterName)
100 100
     {
101 101
         return 'Value for MIME type parameter \'' . $parameterName . '\' is incorrect because the closing quote ' .
102
-               'character could not be found while the parameter value started with a quote character.';
102
+                'character could not be found while the parameter value started with a quote character.';
103 103
     }
104 104
 
105 105
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/resourceSet.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
     public static function resourceSetContainerMustBeAssociatedWithEntityType()
20 20
     {
21 21
         return 'The ResourceTypeKind property of a ResourceType instance associated with a ResourceSet'
22
-               . ' must be equal to \'EntityType\'';
22
+                . ' must be equal to \'EntityType\'';
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/streamProviderWrapper.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public static function streamProviderWrapperMustImplementIStreamProviderToSupportStreaming()
59 59
     {
60 60
         return 'To support streaming, the data service must implement IService::getStreamProviderX() to return'
61
-               . ' an implementation of IStreamProvider or IStreamProvider2';
61
+                . ' an implementation of IStreamProvider or IStreamProvider2';
62 62
     }
63 63
 
64 64
     /**
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public static function streamProviderWrapperMaxProtocolVersionMustBeV3OrAboveToSupportNamedStreams()
70 70
     {
71 71
         return 'To support named streams, the MaxProtocolVersion of the data service must be set to'
72
-               . ' ProtocolVersion.V3 or above.';
72
+                . ' ProtocolVersion.V3 or above.';
73 73
     }
74 74
 
75 75
     /**
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     public static function streamProviderWrapperMustImplementStreamProvider2ToSupportNamedStreams()
82 82
     {
83 83
         return 'To support named streams, the data service must implement IServiceProvider.GetService() to'
84
-               . ' return an implementation of IStreamProvider2 or the data source must implement IStreamProvider2.';
84
+                . ' return an implementation of IStreamProvider2 or the data source must implement IStreamProvider2.';
85 85
     }
86 86
 
87 87
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/queryProcessor.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public static function queryProcessorNoQueryOptionsApplicable()
32 32
     {
33 33
         return 'Query options $select, $expand, $filter, $orderby, $inlinecount, $skip, $skiptoken and $top are not' .
34
-               ' supported by this request method or cannot be applied to the requested resource.';
34
+                ' supported by this request method or cannot be applied to the requested resource.';
35 35
     }
36 36
 
37 37
     /**
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     public static function queryProcessorSkipTokenCannotBeAppliedForNonPagedResourceSet($resourceSetName)
129 129
     {
130 130
         return '$skiptoken cannot be applied to the resource set \'' . $resourceSetName
131
-               . '\', since paging is not enabled for this resource set';
131
+                . '\', since paging is not enabled for this resource set';
132 132
     }
133 133
 
134 134
     /**
Please login to merge, or discard this patch.