Passed
Push — master ( 6e7907...da7151 )
by Alex
01:01
created
src/POData/Common/Messages/resourceAssociationSet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public static function resourceAssociationSetPropertyMustBeNullOrInstanceofResourceProperty($argumentName)
16 16
     {
17
-        return 'The argument \''.$argumentName.'\' must be either null or instance of \'ResourceProperty\'.';
17
+        return 'The argument \'' . $argumentName . '\' must be either null or instance of \'ResourceProperty\'.';
18 18
     }
19 19
 
20 20
     /**
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public static function resourceAssociationSetEndPropertyMustBeNavigationProperty($propertyName, $resourceTypeName)
30 30
     {
31
-        return 'The property '.$propertyName.' must be a navigation property of the resource type '.$resourceTypeName;
31
+        return 'The property ' . $propertyName . ' must be a navigation property of the resource type ' . $resourceTypeName;
32 32
     }
33 33
 
34 34
     /**
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public static function resourceAssociationSetEndResourceTypeMustBeAssignableToResourceSet($resourceTypeName, $resourceSetName)
44 44
     {
45
-        return 'The resource type '.$resourceTypeName.' must be assignable to the resource set '.$resourceSetName.'.';
45
+        return 'The resource type ' . $resourceTypeName . ' must be assignable to the resource set ' . $resourceSetName . '.';
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/request.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     public static function requestVersionTooLow($requestedVersion, $requiredVersion)
18 18
     {
19 19
         return 'Request version \''.$requestedVersion.'\' is not supported for the request payload. The only'
20
-               .' supported version is \''.$requiredVersion.'\'.';
20
+                .' supported version is \''.$requiredVersion.'\'.';
21 21
     }
22 22
 
23 23
     /**
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public static function requestVersionIsBiggerThanProtocolVersion($requiredVersion, $configuredVersion)
33 33
     {
34 34
         return 'The response requires that version '.$requiredVersion.' of the protocol be used, but the'
35
-               .' MaxProtocolVersion of the data service is set to '.$configuredVersion.'.';
35
+                .' MaxProtocolVersion of the data service is set to '.$configuredVersion.'.';
36 36
     }
37 37
 
38 38
     /**
@@ -62,6 +62,6 @@  discard block
 block discarded – undo
62 62
     public static function requestDescriptionUnSupportedVersion($requestHeaderName, $requestedVersion, $availableVersions)
63 63
     {
64 64
         return 'The version value '.$requestedVersion.' in the header '.$requestHeaderName.' is not'
65
-               .' supported, available versions are '.$availableVersions;
65
+                .' supported, available versions are '.$availableVersions;
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public static function requestVersionTooLow($requestedVersion, $requiredVersion)
18 18
     {
19
-        return 'Request version \''.$requestedVersion.'\' is not supported for the request payload. The only'
20
-               .' supported version is \''.$requiredVersion.'\'.';
19
+        return 'Request version \'' . $requestedVersion . '\' is not supported for the request payload. The only'
20
+               .' supported version is \'' . $requiredVersion . '\'.';
21 21
     }
22 22
 
23 23
     /**
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public static function requestVersionIsBiggerThanProtocolVersion($requiredVersion, $configuredVersion)
33 33
     {
34
-        return 'The response requires that version '.$requiredVersion.' of the protocol be used, but the'
35
-               .' MaxProtocolVersion of the data service is set to '.$configuredVersion.'.';
34
+        return 'The response requires that version ' . $requiredVersion . ' of the protocol be used, but the'
35
+               .' MaxProtocolVersion of the data service is set to ' . $configuredVersion . '.';
36 36
     }
37 37
 
38 38
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public static function requestDescriptionInvalidVersionHeader($versionAsString, $headerName)
48 48
     {
49
-        return 'The header '.$headerName.' has malformed version value '.$versionAsString;
49
+        return 'The header ' . $headerName . ' has malformed version value ' . $versionAsString;
50 50
     }
51 51
 
52 52
     /**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public static function requestDescriptionUnSupportedVersion($requestHeaderName, $requestedVersion, $availableVersions)
63 63
     {
64
-        return 'The version value '.$requestedVersion.' in the header '.$requestHeaderName.' is not'
65
-               .' supported, available versions are '.$availableVersions;
64
+        return 'The version value ' . $requestedVersion . ' in the header ' . $requestHeaderName . ' is not'
65
+               .' supported, available versions are ' . $availableVersions;
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/metadataResourceType.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     public static function metadataResourceTypeSetNamedStreamsOnDerivedEntityTypesNotSupported($entitySetName, $derivedTypeName)
17 17
     {
18 18
         return 'Named streams are not supported on derived entity types. Entity Set \''.$entitySetName
19
-               .'\' has an instance of type \''.$derivedTypeName.'\', which is a derived entity type and has'
20
-               .' named streams. Please remove all named streams from type \''.$derivedTypeName.'\'.';
19
+                .'\' has an instance of type \''.$derivedTypeName.'\', which is a derived entity type and has'
20
+                .' named streams. Please remove all named streams from type \''.$derivedTypeName.'\'.';
21 21
     }
22 22
 
23 23
     /**
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
     public static function metadataResourceTypeSetBagOfComplexTypeWithDerivedTypes($complexTypeName)
33 33
     {
34 34
         return 'Complex type \''.$complexTypeName.'\' has derived types and is used as the item type in a bag.'
35
-               .' Only bags containing complex types without derived types are supported.';
35
+                .' Only bags containing complex types without derived types are supported.';
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public static function metadataResourceTypeSetNamedStreamsOnDerivedEntityTypesNotSupported($entitySetName, $derivedTypeName)
17 17
     {
18
-        return 'Named streams are not supported on derived entity types. Entity Set \''.$entitySetName
19
-               .'\' has an instance of type \''.$derivedTypeName.'\', which is a derived entity type and has'
20
-               .' named streams. Please remove all named streams from type \''.$derivedTypeName.'\'.';
18
+        return 'Named streams are not supported on derived entity types. Entity Set \'' . $entitySetName
19
+               .'\' has an instance of type \'' . $derivedTypeName . '\', which is a derived entity type and has'
20
+               .' named streams. Please remove all named streams from type \'' . $derivedTypeName . '\'.';
21 21
     }
22 22
 
23 23
     /**
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public static function metadataResourceTypeSetBagOfComplexTypeWithDerivedTypes($complexTypeName)
33 33
     {
34
-        return 'Complex type \''.$complexTypeName.'\' has derived types and is used as the item type in a bag.'
34
+        return 'Complex type \'' . $complexTypeName . '\' has derived types and is used as the item type in a bag.'
35 35
                .' Only bags containing complex types without derived types are supported.';
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/POData/OperationContext/ServiceHost.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -519,7 +519,7 @@
 block discarded – undo
519 519
             $this->getOperationContext()->outgoingResponse()->setContentLength($value);
520 520
         } else {
521 521
             throw ODataException::notAcceptableError(
522
-                'ContentLength:'.$value.' is invalid'
522
+                'ContentLength:' . $value . ' is invalid'
523 523
             );
524 524
         }
525 525
     }
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/ResourceFunctionType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $expectedParms = count($baseParms);
136 136
         $actualParms = count($parms);
137 137
         if ($expectedParms != $actualParms) {
138
-            $msg = 'Was expecting '. $expectedParms. ' arguments, received '.$actualParms.' instead';
138
+            $msg = 'Was expecting ' . $expectedParms . ' arguments, received ' . $actualParms . ' instead';
139 139
             throw new \InvalidArgumentException($msg);
140 140
         }
141 141
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     private function checkBlacklist($func, $fromArray = false)
150 150
     {
151 151
         if (in_array($func, $this->blacklist) || in_array(strtolower($func), $this->blacklist)) {
152
-            $msg = (true === $fromArray ? 'First element of ' : '').'FunctionName blacklisted';
152
+            $msg = (true === $fromArray ? 'First element of ' : '') . 'FunctionName blacklisted';
153 153
             throw new \InvalidArgumentException($msg);
154 154
         }
155 155
     }
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/SimpleMetadataProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
         $type = null;
296 296
         if ($typeKind == ResourceTypeKind::ENTITY) {
297 297
             list($oet, $entitySet) = $this->metadataManager->addEntityType($name);
298
-            assert($oet instanceof TEntityTypeType, 'Entity type '.$name. ' not successfully added');
298
+            assert($oet instanceof TEntityTypeType, 'Entity type ' . $name . ' not successfully added');
299 299
             $type = new ResourceEntityType($refClass, $oet, $this);
300 300
             $typeName = $type->getFullName();
301 301
             $returnName = Str::plural($typeName);
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
             );
596 596
         }
597 597
         if (!in_array($resourceMult, $allowedMult)) {
598
-            throw new InvalidOperationException('Supplied multiplicity '.$resourceMult.' not valid');
598
+            throw new InvalidOperationException('Supplied multiplicity ' . $resourceMult . ' not valid');
599 599
         }
600 600
 
601 601
         $resourcePropertyKind = ('*' == $resourceMult)
@@ -889,12 +889,12 @@  discard block
 block discarded – undo
889 889
             throw new \InvalidArgumentException($msg);
890 890
         }
891 891
         if (array_key_exists($name, $this->resourceSets)) {
892
-            $msg = 'Resource set with same name, '. $name. ', exists';
892
+            $msg = 'Resource set with same name, ' . $name . ', exists';
893 893
             throw new \InvalidArgumentException($msg);
894 894
         }
895 895
         $typeName = $returnType->getName();
896 896
         if (!array_key_exists($typeName, $this->OdataEntityMap)) {
897
-            $msg = 'Mapping not defined for '.$typeName;
897
+            $msg = 'Mapping not defined for ' . $typeName;
898 898
             throw new \InvalidArgumentException($msg);
899 899
         }
900 900
         $metaReturn = $this->OdataEntityMap[$typeName];
Please login to merge, or discard this patch.