Passed
Push — master ( 71d572...f9884e )
by Béla
03:44
created
src/POData/UriProcessor/ResourcePathProcessor/ResourcePathProcessor.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         }
71 71
 
72 72
 
73
-        $lambda = function(RequestDescription &$request) use (&$service) {
73
+        $lambda = function(RequestDescription & $request) use (&$service) {
74 74
             $kind = $request->getTargetKind();
75 75
             $segments = $request->getSegments();
76 76
 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      *                        or in case of any version incompatibility.
34 34
      */
35 35
     public static function process(IService $service)
36
-	{
36
+    {
37 37
         $host = $service->getHost();
38 38
         $fullAbsoluteRequestUri = $host->getFullAbsoluteRequestUri();
39 39
         $absoluteRequestUri = $host->getAbsoluteRequestUri();
Please login to merge, or discard this patch.
src/POData/Providers/ProvidersWrapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -946,8 +946,8 @@
 block discarded – undo
946 946
      * @throws ODataException
947 947
      */
948 948
     private function _validateEntityInstance($entityInstance,
949
-        ResourceSet &$resourceSet,
950
-        KeyDescriptor &$keyDescriptor,
949
+        ResourceSet & $resourceSet,
950
+        KeyDescriptor & $keyDescriptor,
951 951
         $methodName
952 952
     ) {
953 953
         if (is_null($entityInstance)) {
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
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
      * @return string|null The ETag for the entry object if it has eTag properties
731 731
      *                     NULL otherwise.
732 732
      */
733
-    protected function compareETag(&$entryObject, ResourceType &$resourceType,
733
+    protected function compareETag(&$entryObject, ResourceType & $resourceType,
734 734
         &$needToSerializeResponse
735 735
     ) {
736 736
         $needToSerializeResponse = true;
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
      *                     for use in a URI) there are etag properties, NULL if
824 824
      *                     there is no etag property.
825 825
      */
826
-    protected function getETagForEntry(&$entryObject, ResourceType &$resourceType)
826
+    protected function getETagForEntry(&$entryObject, ResourceType & $resourceType)
827 827
     {
828 828
         $eTag = null;
829 829
         $comma = null;
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/Type/DateTime.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      */
102 102
     public function convertToOData($value)
103 103
     {
104
-		if ($value instanceof DateTimeInterface) return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\'';
104
+        if ($value instanceof DateTimeInterface) return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\'';
105 105
         return 'datetime\'' . urlencode($value) . '\'';
106 106
     }
107 107
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,9 @@
 block discarded – undo
101 101
      */
102 102
     public function convertToOData($value)
103 103
     {
104
-		if ($value instanceof DateTimeInterface) return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\'';
104
+		if ($value instanceof DateTimeInterface) {
105
+		    return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\'';
106
+		}
105 107
         return 'datetime\'' . urlencode($value) . '\'';
106 108
     }
107 109
 
Please login to merge, or discard this patch.
src/POData/Providers/Expression/MySQLExpressionProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -357,5 +357,5 @@
 block discarded – undo
357 357
         return $operator . self::OPEN_BRACKET . $child . self::CLOSE_BRACKET;
358 358
     }
359 359
 
360
-	public function clear() {}
360
+    public function clear() {}
361 361
 }
362 362
\ No newline at end of file
Please login to merge, or discard this patch.
src/POData/Providers/Expression/IExpressionProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */    
24 24
     public function getIteratorName();
25 25
 
26
-	public function clear();
26
+    public function clear();
27 27
 
28 28
     /**
29 29
      * call-back for setting the resource type.
Please login to merge, or discard this patch.
src/POData/Providers/Query/IQueryProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -157,14 +157,14 @@  discard block
 block discarded – undo
157 157
 
158 158
     public function getCustomProperties($entryObject);
159 159
 
160
-	public function postResource(
160
+    public function postResource(
161 161
         ResourceSet $resourceSet,
162 162
         RequestDescription $request,
163 163
         $data
164 164
     );
165 165
 
166
-	public function putResource(
167
-		ResourceSet $resourceSet,
166
+    public function putResource(
167
+        ResourceSet $resourceSet,
168 168
         RequestDescription $request,
169 169
         KeyDescriptor $keyDescriptor,
170 170
         $data,
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
         $expand
173 173
     );
174 174
 
175
-	public function deleteResource(
176
-		ResourceSet $resourceSet,
175
+    public function deleteResource(
176
+        ResourceSet $resourceSet,
177 177
         RequestDescription $request,
178 178
         $keyDescriptor
179 179
     );
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/Type/StringType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,6 +100,6 @@
 block discarded – undo
100 100
      */
101 101
     public function convertToOData($value)
102 102
     {
103
-        return '\'' . str_replace('%27', "''", urlencode(mb_convert_encoding($value,'UTF-8'))) . '\'';
103
+        return '\'' . str_replace('%27', "''", urlencode(mb_convert_encoding($value, 'UTF-8'))) . '\'';
104 104
     }
105 105
 }
Please login to merge, or discard this patch.
src/POData/Writers/Json/IndentedTextWriter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     private $tabString;
34 34
 
35
-	private $_writer;
35
+    private $_writer;
36 36
 
37 37
     /**
38 38
      * Creates a new instance of IndentedTextWriter
Please login to merge, or discard this patch.