Passed
Push — master ( 71d572...f9884e )
by Béla
03:44
created
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/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/UriProcessor/QueryProcessor/OrderByParser/OrderByParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     private static function _mock($resourceType): object {
82 82
 		$instanceType = $resourceType->getInstanceType();
83 83
 		$reflection = new \ReflectionClass($instanceType->name);
84
-		if($reflection->isAbstract()) {
84
+		if ($reflection->isAbstract()) {
85 85
 			return new stdClass();
86 86
 		}
87 87
 		$mock = $reflection->newInstanceWithoutConstructor();
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
 			$property->setAccessible(true);
91 91
 
92 92
 			$type = $property->getType();
93
-			if($resourceType instanceof ResourceProperty) {
94
-				$resourceType  = $resourceType->getResourceType();
93
+			if ($resourceType instanceof ResourceProperty) {
94
+				$resourceType = $resourceType->getResourceType();
95 95
 			}
96 96
 			$resourceProperty = $resourceType->resolveProperty($property->getName());
97
-			if(is_null($resourceProperty)) continue;
97
+			if (is_null($resourceProperty)) continue;
98 98
 
99 99
 			$resourcePropertyType = $resourceProperty->getResourceType();
100 100
 			$resourceKind = $resourcePropertyType->getResourceTypeKind();
Please login to merge, or discard this patch.