Passed
Push — master ( 71d572...f9884e )
by Béla
03:44
created
src/POData/Writers/Json/JsonLightODataWriter.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -281,14 +281,14 @@
 block discarded – undo
281 281
     protected function writeNextPageLink(ODataLink $nextPageLinkUri = null)
282 282
     {
283 283
         
284
-		// "__next" : uri
285
-		if ($nextPageLinkUri != null) {
286
-			$this->_writer
287
-				->writeName(ODataConstants::JSON_NEXT_STRING)
288
-				->writeValue($nextPageLinkUri->url);
289
-		}
290
-
291
-		return $this;
284
+        // "__next" : uri
285
+        if ($nextPageLinkUri != null) {
286
+            $this->_writer
287
+                ->writeName(ODataConstants::JSON_NEXT_STRING)
288
+                ->writeValue($nextPageLinkUri->url);
289
+        }
290
+
291
+        return $this;
292 292
 		
293 293
     }
294 294
 
Please login to merge, or discard this patch.
src/POData/ObjectModel/ObjectModelSerializerBase.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,9 @@
 block discarded – undo
160 160
      */
161 161
     protected function getPropertyValue($entity, ResourceType $resourceType, ResourceProperty $resourceProperty)
162 162
     {
163
-        if (is_array($entity)) return $entity[$resourceProperty->getName()];
163
+        if (is_array($entity)) {
164
+            return $entity[$resourceProperty->getName()];
165
+        }
164 166
 
165 167
         return $entity->{$resourceProperty->getName()};
166 168
     }
Please login to merge, or discard this patch.
src/POData/UriProcessor/UriProcessor.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -719,8 +719,11 @@
 block discarded – undo
719 719
                             $projectedProperty
720 720
                         );
721 721
 
722
-                        if (is_array($entry)) $entry[$expandedPropertyName] = $result1;
723
-                        else $expandedPropertyReflection->setValue($entry, $result1);
722
+                        if (is_array($entry)) {
723
+                            $entry[$expandedPropertyName] = $result1;
724
+                        } else {
725
+                            $expandedPropertyReflection->setValue($entry, $result1);
726
+                        }
724 727
 
725 728
                         if (!is_null($result1)) {
726 729
                             $projectedProperty3 = $expandedProjectionNode->getResourceProperty();
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/UriProcessor/ResourcePathProcessor/ResourcePathProcessor.php 1 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/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/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.