Completed
Pull Request — master (#126)
by Christopher
03:36
created
src/POData/Providers/Expression/PHPExpressionProvider.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
 
263 263
             case ODataConstants::STRFUN_ENDSWITH:
264 264
                 return '(strcmp(substr('.$params[0].', strlen('.$params[0].') - strlen('.$params[1].')), '
265
-                       .$params[1].') === 0)';
265
+                        .$params[1].') === 0)';
266 266
 
267 267
             case ODataConstants::STRFUN_INDEXOF:
268 268
                 return 'strpos('.$params[0].', '.$params[1].')';
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -258,81 +258,81 @@
 block discarded – undo
258 258
     {
259 259
         switch ($functionDescription->name) {
260 260
             case ODataConstants::STRFUN_COMPARE:
261
-                return 'strcmp('.$params[0].', '.$params[1].')';
261
+                return 'strcmp(' . $params[0] . ', ' . $params[1] . ')';
262 262
 
263 263
             case ODataConstants::STRFUN_ENDSWITH:
264
-                return '(strcmp(substr('.$params[0].', strlen('.$params[0].') - strlen('.$params[1].')), '
265
-                       .$params[1].') === 0)';
264
+                return '(strcmp(substr(' . $params[0] . ', strlen(' . $params[0] . ') - strlen(' . $params[1] . ')), '
265
+                       .$params[1] . ') === 0)';
266 266
 
267 267
             case ODataConstants::STRFUN_INDEXOF:
268
-                return 'strpos('.$params[0].', '.$params[1].')';
268
+                return 'strpos(' . $params[0] . ', ' . $params[1] . ')';
269 269
 
270 270
             case ODataConstants::STRFUN_REPLACE:
271
-                return 'str_replace('.$params[1].', '.$params[2].', '.$params[0].')';
271
+                return 'str_replace(' . $params[1] . ', ' . $params[2] . ', ' . $params[0] . ')';
272 272
 
273 273
             case ODataConstants::STRFUN_STARTSWITH:
274
-                return '(strpos('.$params[0].', '.$params[1].') === 0)';
274
+                return '(strpos(' . $params[0] . ', ' . $params[1] . ') === 0)';
275 275
 
276 276
             case ODataConstants::STRFUN_TOLOWER:
277
-                return 'strtolower('.$params[0].')';
277
+                return 'strtolower(' . $params[0] . ')';
278 278
 
279 279
             case ODataConstants::STRFUN_TOUPPER:
280
-                return 'strtoupper('.$params[0].')';
280
+                return 'strtoupper(' . $params[0] . ')';
281 281
 
282 282
             case ODataConstants::STRFUN_TRIM:
283
-                return 'trim('.$params[0].')';
283
+                return 'trim(' . $params[0] . ')';
284 284
 
285 285
             case ODataConstants::STRFUN_SUBSTRING:
286 286
                 return count($params) == 3 ?
287
-                    'substr('.$params[0].', '.$params[1].', '.$params[2].')' : 'substr('.$params[0].', '.$params[1].')';
287
+                    'substr(' . $params[0] . ', ' . $params[1] . ', ' . $params[2] . ')' : 'substr(' . $params[0] . ', ' . $params[1] . ')';
288 288
 
289 289
             case ODataConstants::STRFUN_SUBSTRINGOF:
290
-                return '(strpos('.$params[1].', '.$params[0].') !== false)';
290
+                return '(strpos(' . $params[1] . ', ' . $params[0] . ') !== false)';
291 291
 
292 292
             case ODataConstants::STRFUN_CONCAT:
293 293
                 return $params[0] . ' . ' . $params[1];
294 294
 
295 295
             case ODataConstants::STRFUN_LENGTH:
296
-                return 'strlen('.$params[0].')';
296
+                return 'strlen(' . $params[0] . ')';
297 297
 
298 298
             case ODataConstants::GUIDFUN_EQUAL:
299
-                return self::TYPE_NAMESPACE . 'Guid::guidEqual('.$params[0].', '.$params[1].')';
299
+                return self::TYPE_NAMESPACE . 'Guid::guidEqual(' . $params[0] . ', ' . $params[1] . ')';
300 300
 
301 301
             case ODataConstants::DATETIME_COMPARE:
302
-                return self::TYPE_NAMESPACE . 'DateTime::dateTimeCmp('.$params[0].', '.$params[1].')';
302
+                return self::TYPE_NAMESPACE . 'DateTime::dateTimeCmp(' . $params[0] . ', ' . $params[1] . ')';
303 303
 
304 304
             case ODataConstants::DATETIME_YEAR:
305
-                return self::TYPE_NAMESPACE . 'DateTime::year('.$params[0].')';
305
+                return self::TYPE_NAMESPACE . 'DateTime::year(' . $params[0] . ')';
306 306
 
307 307
             case ODataConstants::DATETIME_MONTH:
308
-                return self::TYPE_NAMESPACE . 'DateTime::month('.$params[0].')';
308
+                return self::TYPE_NAMESPACE . 'DateTime::month(' . $params[0] . ')';
309 309
 
310 310
             case ODataConstants::DATETIME_DAY:
311
-                return self::TYPE_NAMESPACE . 'DateTime::day('.$params[0].')';
311
+                return self::TYPE_NAMESPACE . 'DateTime::day(' . $params[0] . ')';
312 312
 
313 313
             case ODataConstants::DATETIME_HOUR:
314
-                return self::TYPE_NAMESPACE . 'DateTime::hour('.$params[0].')';
314
+                return self::TYPE_NAMESPACE . 'DateTime::hour(' . $params[0] . ')';
315 315
 
316 316
             case ODataConstants::DATETIME_MINUTE:
317
-                return self::TYPE_NAMESPACE . 'DateTime::minute('.$params[0].')';
317
+                return self::TYPE_NAMESPACE . 'DateTime::minute(' . $params[0] . ')';
318 318
 
319 319
             case ODataConstants::DATETIME_SECOND:
320
-                return self::TYPE_NAMESPACE . 'DateTime::second('.$params[0].')';
320
+                return self::TYPE_NAMESPACE . 'DateTime::second(' . $params[0] . ')';
321 321
 
322 322
             case ODataConstants::MATHFUN_ROUND:
323
-                return 'round('.$params[0].')';
323
+                return 'round(' . $params[0] . ')';
324 324
 
325 325
             case ODataConstants::MATHFUN_CEILING:
326
-                return 'ceil('.$params[0].')';
326
+                return 'ceil(' . $params[0] . ')';
327 327
 
328 328
             case ODataConstants::MATHFUN_FLOOR:
329
-                return 'floor('.$params[0].')';
329
+                return 'floor(' . $params[0] . ')';
330 330
 
331 331
             case ODataConstants::BINFUL_EQUAL:
332
-                return self::TYPE_NAMESPACE . 'Binary::binaryEqual('.$params[0].', '.$params[1].')';
332
+                return self::TYPE_NAMESPACE . 'Binary::binaryEqual(' . $params[0] . ', ' . $params[1] . ')';
333 333
 
334 334
             case 'is_null':
335
-                return 'is_null('.$params[0].')';
335
+                return 'is_null(' . $params[0] . ')';
336 336
 
337 337
             default:
338 338
                 throw new \InvalidArgumentException('onFunctionCallExpression');
Please login to merge, or discard this patch.
src/POData/Providers/Expression/MySQLExpressionProvider.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -249,48 +249,48 @@  discard block
 block discarded – undo
249 249
     {
250 250
         switch ($functionDescription->name) {
251 251
             case ODataConstants::STRFUN_COMPARE:
252
-                return 'STRCMP('.$params[0].', '.$params[1].')';
252
+                return 'STRCMP(' . $params[0] . ', ' . $params[1] . ')';
253 253
 
254 254
             case ODataConstants::STRFUN_ENDSWITH:
255
-                return '(STRCMP('.$params[1].',RIGHT('.$params[0].',LENGTH('.$params[1].'))) = 0)';
255
+                return '(STRCMP(' . $params[1] . ',RIGHT(' . $params[0] . ',LENGTH(' . $params[1] . '))) = 0)';
256 256
 
257 257
             case ODataConstants::STRFUN_INDEXOF:
258
-                return 'INSTR('.$params[0].', '.$params[1].') - 1';
258
+                return 'INSTR(' . $params[0] . ', ' . $params[1] . ') - 1';
259 259
 
260 260
             case ODataConstants::STRFUN_REPLACE:
261
-                return 'REPLACE('.$params[0].','.$params[1].','.$params[2].')';
261
+                return 'REPLACE(' . $params[0] . ',' . $params[1] . ',' . $params[2] . ')';
262 262
 
263 263
             case ODataConstants::STRFUN_STARTSWITH:
264
-                return '(STRCMP('.$params[1].',LEFT('.$params[0].',LENGTH('.$params[1].'))) = 0)';
264
+                return '(STRCMP(' . $params[1] . ',LEFT(' . $params[0] . ',LENGTH(' . $params[1] . '))) = 0)';
265 265
 
266 266
             case ODataConstants::STRFUN_TOLOWER:
267
-                return 'LOWER('.$params[0].')';
267
+                return 'LOWER(' . $params[0] . ')';
268 268
 
269 269
             case ODataConstants::STRFUN_TOUPPER:
270
-                return 'UPPER('.$params[0].')';
270
+                return 'UPPER(' . $params[0] . ')';
271 271
 
272 272
             case ODataConstants::STRFUN_TRIM:
273
-                return 'TRIM('.$params[0].')';
273
+                return 'TRIM(' . $params[0] . ')';
274 274
 
275 275
             case ODataConstants::STRFUN_SUBSTRING:
276 276
                 return count($params) == 3 ?
277
-                    'SUBSTRING('.$params[0].', '.$params[1].' + 1, '.$params[2].')'
278
-                    : 'SUBSTRING('.$params[0].', '.$params[1].' + 1)';
277
+                    'SUBSTRING(' . $params[0] . ', ' . $params[1] . ' + 1, ' . $params[2] . ')'
278
+                    : 'SUBSTRING(' . $params[0] . ', ' . $params[1] . ' + 1)';
279 279
 
280 280
             case ODataConstants::STRFUN_SUBSTRINGOF:
281
-                return '(LOCATE('.$params[0].', '.$params[1].') > 0)';
281
+                return '(LOCATE(' . $params[0] . ', ' . $params[1] . ') > 0)';
282 282
 
283 283
             case ODataConstants::STRFUN_CONCAT:
284
-                return 'CONCAT('.$params[0].','.$params[1].')';
284
+                return 'CONCAT(' . $params[0] . ',' . $params[1] . ')';
285 285
 
286 286
             case ODataConstants::STRFUN_LENGTH:
287
-                return 'LENGTH('.$params[0].')';
287
+                return 'LENGTH(' . $params[0] . ')';
288 288
 
289 289
             case ODataConstants::GUIDFUN_EQUAL:
290
-                return 'STRCMP('.$params[0].', '.$params[1].')';
290
+                return 'STRCMP(' . $params[0] . ', ' . $params[1] . ')';
291 291
 
292 292
             case ODataConstants::DATETIME_COMPARE:
293
-                return 'DATETIMECMP('.$params[0].'; '.$params[1].')';
293
+                return 'DATETIMECMP(' . $params[0] . '; ' . $params[1] . ')';
294 294
 
295 295
             case ODataConstants::DATETIME_YEAR:
296 296
                 return 'EXTRACT(YEAR from ' . $params[0] . ')';
@@ -311,19 +311,19 @@  discard block
 block discarded – undo
311 311
                 return 'EXTRACT(SECOND from ' . $params[0] . ')';
312 312
 
313 313
             case ODataConstants::MATHFUN_ROUND:
314
-                return 'ROUND('.$params[0].')';
314
+                return 'ROUND(' . $params[0] . ')';
315 315
 
316 316
             case ODataConstants::MATHFUN_CEILING:
317
-                return 'CEIL('.$params[0].')';
317
+                return 'CEIL(' . $params[0] . ')';
318 318
 
319 319
             case ODataConstants::MATHFUN_FLOOR:
320
-                return 'FLOOR('.$params[0].')';
320
+                return 'FLOOR(' . $params[0] . ')';
321 321
 
322 322
             case ODataConstants::BINFUL_EQUAL:
323
-                return '('.$params[0].' = '.$params[1].')';
323
+                return '(' . $params[0] . ' = ' . $params[1] . ')';
324 324
 
325 325
             case 'is_null':
326
-                return 'is_null('.$params[0].')';
326
+                return 'is_null(' . $params[0] . ')';
327 327
 
328 328
             default:
329 329
                 throw new \InvalidArgumentException('onFunctionCallExpression');
Please login to merge, or discard this patch.
src/POData/Common/Messages/metadataAssociationType.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public static function metadataAssociationTypeSetBidirectionalAssociationMustReturnSameResourceAssociationSetFromBothEnd()
16 16
     {
17 17
         return 'When the ResourceAssociationSet is bidirectional, IMetadataProvider::getResourceAssociationSet() must'.
18
-               ' return the same ResourceAssociationSet when call from both ends.';
18
+                ' return the same ResourceAssociationSet when call from both ends.';
19 19
     }
20 20
 
21 21
     /**
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
     public static function metadataAssociationTypeSetMultipleAssociationSetsForTheSameAssociationTypeMustNotReferToSameEndSets($resourceSet1Name, $resourceSet2Name, $entitySetName)
33 33
     {
34 34
         return 'ResourceAssociationSets \''.$resourceSet1Name.'\' and \''.$resourceSet2Name.'\' have a'
35
-               .' ResourceAssociationSetEnd referring to the same EntitySet \''.$entitySetName.'\' through the same'
36
-               .' AssociationType. Make sure that if two or more AssociationSets refer to the same AssociationType,'
37
-               .' the ends must not refer to the same EntitySet. (this could happen if multiple entity sets have'
38
-               .' entity types that have a common ancestor and the ancestor has a property of derived entity types)';
35
+                .' ResourceAssociationSetEnd referring to the same EntitySet \''.$entitySetName.'\' through the same'
36
+                .' AssociationType. Make sure that if two or more AssociationSets refer to the same AssociationType,'
37
+                .' the ends must not refer to the same EntitySet. (this could happen if multiple entity sets have'
38
+                .' entity types that have a common ancestor and the ancestor has a property of derived entity types)';
39 39
     }
40 40
 
41 41
     /**
@@ -49,6 +49,6 @@  discard block
 block discarded – undo
49 49
     public static function metadataAssociationTypeSetInvalidGetDerivedTypesReturnType($resourceTypeName)
50 50
     {
51 51
         return 'Return type of IDSMP::getDerivedTypes should be either null or array of \'ResourceType\', check'
52
-               .' implementation of IDSMP::getDerivedTypes for the resource type \''.$resourceTypeName.'\'.';
52
+                .' implementation of IDSMP::getDerivedTypes for the resource type \''.$resourceTypeName.'\'.';
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public static function metadataAssociationTypeSetBidirectionalAssociationMustReturnSameResourceAssociationSetFromBothEnd()
16 16
     {
17
-        return 'When the ResourceAssociationSet is bidirectional, IMetadataProvider::getResourceAssociationSet() must'.
17
+        return 'When the ResourceAssociationSet is bidirectional, IMetadataProvider::getResourceAssociationSet() must' .
18 18
                ' return the same ResourceAssociationSet when call from both ends.';
19 19
     }
20 20
 
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public static function metadataAssociationTypeSetMultipleAssociationSetsForTheSameAssociationTypeMustNotReferToSameEndSets($resourceSet1Name, $resourceSet2Name, $entitySetName)
33 33
     {
34
-        return 'ResourceAssociationSets \''.$resourceSet1Name.'\' and \''.$resourceSet2Name.'\' have a'
35
-               .' ResourceAssociationSetEnd referring to the same EntitySet \''.$entitySetName.'\' through the same'
34
+        return 'ResourceAssociationSets \'' . $resourceSet1Name . '\' and \'' . $resourceSet2Name . '\' have a'
35
+               .' ResourceAssociationSetEnd referring to the same EntitySet \'' . $entitySetName . '\' through the same'
36 36
                .' AssociationType. Make sure that if two or more AssociationSets refer to the same AssociationType,'
37 37
                .' the ends must not refer to the same EntitySet. (this could happen if multiple entity sets have'
38 38
                .' entity types that have a common ancestor and the ancestor has a property of derived entity types)';
@@ -49,6 +49,6 @@  discard block
 block discarded – undo
49 49
     public static function metadataAssociationTypeSetInvalidGetDerivedTypesReturnType($resourceTypeName)
50 50
     {
51 51
         return 'Return type of IDSMP::getDerivedTypes should be either null or array of \'ResourceType\', check'
52
-               .' implementation of IDSMP::getDerivedTypes for the resource type \''.$resourceTypeName.'\'.';
52
+               .' implementation of IDSMP::getDerivedTypes for the resource type \'' . $resourceTypeName . '\'.';
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/queryProvider.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public static function queryProviderResultCountMissing($methodName, QueryType $queryType)
26 26
     {
27 27
         return 'The implementation of the method '.$methodName.' must return a QueryResult instance with a count for '
28
-               .'queries of type '.$queryType.'.';
28
+                .'queries of type '.$queryType.'.';
29 29
     }
30 30
 
31 31
     /**
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
     public static function queryProviderResultsMissing($methodName, QueryType $queryType)
38 38
     {
39 39
         return 'The implementation of the method '.$methodName.' must return a QueryResult instance with an array'
40
-               .' of results for queries of type '.$queryType.'.';
40
+                .' of results for queries of type '.$queryType.'.';
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public static function queryProviderReturnsNonQueryResult($methodName)
15 15
     {
16
-        return 'The implementation of the method '.$methodName.' must return a QueryResult instance.';
16
+        return 'The implementation of the method ' . $methodName . ' must return a QueryResult instance.';
17 17
     }
18 18
 
19 19
     /**
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public static function queryProviderResultCountMissing($methodName, QueryType $queryType)
26 26
     {
27
-        return 'The implementation of the method '.$methodName.' must return a QueryResult instance with a count for '
28
-               .'queries of type '.$queryType.'.';
27
+        return 'The implementation of the method ' . $methodName . ' must return a QueryResult instance with a count for '
28
+               .'queries of type ' . $queryType . '.';
29 29
     }
30 30
 
31 31
     /**
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public static function queryProviderResultsMissing($methodName, QueryType $queryType)
38 38
     {
39
-        return 'The implementation of the method '.$methodName.' must return a QueryResult instance with an array'
40
-               .' of results for queries of type '.$queryType.'.';
39
+        return 'The implementation of the method ' . $methodName . ' must return a QueryResult instance with an array'
40
+               .' of results for queries of type ' . $queryType . '.';
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/objectModelSerializer.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public static function badQueryNullKeysAreNotSupported($resourceTypeName, $keyName)
32 32
     {
33 33
         return 'The serialized resource of type '.$resourceTypeName.' has a null value in key member \''.$keyName
34
-               .'\'. Null values are not supported in key members.';
34
+                .'\'. Null values are not supported in key members.';
35 35
     }
36 36
 
37 37
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public static function objectModelSerializerFailedToAccessProperty($propertyName, $parentObjectName)
47 47
     {
48 48
         return 'objectModelSerializer failed to access or initialize the property '.$propertyName.' of '
49
-               .$parentObjectName.', Please contact provider.';
49
+                .$parentObjectName.', Please contact provider.';
50 50
     }
51 51
 
52 52
     /**
@@ -60,6 +60,6 @@  discard block
 block discarded – undo
60 60
     public static function objectModelSerializerLoopsNotAllowedInComplexTypes($complexPropertyName)
61 61
     {
62 62
         return 'A circular loop was detected while serializing the property \'' . $complexPropertyName
63
-               . '\'. You must make sure that loops are not present in properties that return a bag or complex type.';
63
+                . '\'. You must make sure that loops are not present in properties that return a bag or complex type.';
64 64
     }
65 65
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public static function badProviderInconsistentEntityOrComplexTypeUsage($typeName)
17 17
     {
18
-        return 'Internal Server Error. The type \''.$typeName.'\' has inconsistent metadata and runtime type info.';
18
+        return 'Internal Server Error. The type \'' . $typeName . '\' has inconsistent metadata and runtime type info.';
19 19
     }
20 20
 
21 21
     /**
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public static function badQueryNullKeysAreNotSupported($resourceTypeName, $keyName)
32 32
     {
33
-        return 'The serialized resource of type '.$resourceTypeName.' has a null value in key member \''.$keyName
33
+        return 'The serialized resource of type ' . $resourceTypeName . ' has a null value in key member \'' . $keyName
34 34
                .'\'. Null values are not supported in key members.';
35 35
     }
36 36
 
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public static function objectModelSerializerFailedToAccessProperty($propertyName, $parentObjectName)
47 47
     {
48
-        return 'objectModelSerializer failed to access or initialize the property '.$propertyName.' of '
49
-               .$parentObjectName.', Please contact provider.';
48
+        return 'objectModelSerializer failed to access or initialize the property ' . $propertyName . ' of '
49
+               .$parentObjectName . ', Please contact provider.';
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/skipTokenInfo.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     public static function skipTokenInfoBothOrderByPathAndOrderByValuesShouldBeSetOrNotSet($orderByPathsVarName, $orderByValuesVarName)
20 20
     {
21 21
         return 'Either both the arguments '.$orderByPathsVarName.' and '.$orderByValuesVarName.' should be'
22
-               .' null or not-null';
22
+                .' null or not-null';
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public static function skipTokenInfoBothOrderByPathAndOrderByValuesShouldBeSetOrNotSet($orderByPathsVarName, $orderByValuesVarName)
20 20
     {
21
-        return 'Either both the arguments '.$orderByPathsVarName.' and '.$orderByValuesVarName.' should be'
21
+        return 'Either both the arguments ' . $orderByPathsVarName . ' and ' . $orderByValuesVarName . ' should be'
22 22
                .' null or not-null';
23 23
     }
24 24
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public static function internalSkipTokenInfoFailedToAccessOrInitializeProperty($propertyName)
34 34
     {
35
-        return 'internalSkipTokenInfo failed to access or initialize the property '.$propertyName;
35
+        return 'internalSkipTokenInfo failed to access or initialize the property ' . $propertyName;
36 36
     }
37 37
 
38 38
     /**
@@ -45,6 +45,6 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public static function internalSkipTokenInfoBinarySearchRequireArray($argumentName)
47 47
     {
48
-        return 'The argument \''.$argumentName.'\' should be an array to perfrom binary search';
48
+        return 'The argument \'' . $argumentName . '\' should be an array to perfrom binary search';
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/uriProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public static function uriProcessorResourceNotFound($segment)
15 15
     {
16
-        return 'Resource not found for the segment \''.$segment.'\'.';
16
+        return 'Resource not found for the segment \'' . $segment . '\'.';
17 17
     }
18 18
 
19 19
     /**
@@ -38,6 +38,6 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public static function uriProcessorRequestUriDoesNotHaveTheRightBaseUri($requestUri, $serviceUri)
40 40
     {
41
-        return 'The URI \''.$requestUri.'\' is not valid since it is not based on \''.$serviceUri.'\'';
41
+        return 'The URI \'' . $requestUri . '\' is not valid since it is not based on \'' . $serviceUri . '\'';
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/providersWrapper.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     public static function providersWrapperNull()
13 13
     {
14 14
         return 'For custom providers, GetService should not return null for both IMetadataProvider and'
15
-               .' IQueryProvider types.';
15
+                .' IQueryProvider types.';
16 16
     }
17 17
 
18 18
     /**
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public static function providersWrapperInvalidExpressionProviderInstance()
36 36
     {
37 37
         return 'The value returned by IQueryProvider::getExpressionProvider method must be an implementation'
38
-               .' of IExpressionProvider';
38
+                .' of IExpressionProvider';
39 39
     }
40 40
 
41 41
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     public static function providersWrapperEntitySetNameShouldBeUnique($entitySetName)
73 73
     {
74 74
         return 'More than one entity set with the name \''.$entitySetName
75
-               .'\' was found. Entity set names must be unique';
75
+                .'\' was found. Entity set names must be unique';
76 76
     }
77 77
 
78 78
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public static function providersWrapperEntityTypeNameShouldBeUnique($entityTypeName)
87 87
     {
88 88
         return 'More than one entity type with the name \''.$entityTypeName
89
-               .'\' was found. Entity type names must be unique';
89
+                .'\' was found. Entity type names must be unique';
90 90
     }
91 91
 
92 92
     /**
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
     public static function providersWrapperIDSMPGetResourceSetReturnsInvalidResourceSet($resourceSetName, $resourceTypeName, $resourcePropertyName)
103 103
     {
104 104
         return 'IDSMP::GetResourceSet retruns invalid instance of ResourceSet when invoked with params'.
105
-               ' {ResourceSet with name '.$resourceSetName.', ResourceType with name '.$resourceTypeName
106
-               .', ResourceProperty with name '.$resourcePropertyName.'}.';
105
+                ' {ResourceSet with name '.$resourceSetName.', ResourceType with name '.$resourceTypeName
106
+                .', ResourceProperty with name '.$resourcePropertyName.'}.';
107 107
     }
108 108
 
109 109
     /**
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     public static function providersWrapperIDSQPMethodReturnsUnExpectedType($entityTypeName, $methodName)
119 119
     {
120 120
         return 'The implementation of the method ' . $methodName . ' must return an instance of type described'
121
-               .' by resource set\'s type(' . $entityTypeName . ') or null if resource does not exist.';
121
+                .' by resource set\'s type(' . $entityTypeName . ') or null if resource does not exist.';
122 122
     }
123 123
 
124 124
     /**
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public static function providersWrapperEntitySetNameShouldBeUnique($entitySetName)
73 73
     {
74
-        return 'More than one entity set with the name \''.$entitySetName
74
+        return 'More than one entity set with the name \'' . $entitySetName
75 75
                .'\' was found. Entity set names must be unique';
76 76
     }
77 77
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public static function providersWrapperEntityTypeNameShouldBeUnique($entityTypeName)
87 87
     {
88
-        return 'More than one entity type with the name \''.$entityTypeName
88
+        return 'More than one entity type with the name \'' . $entityTypeName
89 89
                .'\' was found. Entity type names must be unique';
90 90
     }
91 91
 
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public static function providersWrapperIDSMPGetResourceSetReturnsInvalidResourceSet($resourceSetName, $resourceTypeName, $resourcePropertyName)
103 103
     {
104
-        return 'IDSMP::GetResourceSet retruns invalid instance of ResourceSet when invoked with params'.
105
-               ' {ResourceSet with name '.$resourceSetName.', ResourceType with name '.$resourceTypeName
106
-               .', ResourceProperty with name '.$resourcePropertyName.'}.';
104
+        return 'IDSMP::GetResourceSet retruns invalid instance of ResourceSet when invoked with params' .
105
+               ' {ResourceSet with name ' . $resourceSetName . ', ResourceType with name ' . $resourceTypeName
106
+               .', ResourceProperty with name ' . $resourcePropertyName . '}.';
107 107
     }
108 108
 
109 109
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/eTag.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public static function eTagNotAllowedForNonExistingResource()
14 14
     {
15 15
         return 'The resource targeted by the request does not exists, eTag header is not allowed for'
16
-               .' non-existing resource.';
16
+                .' non-existing resource.';
17 17
     }
18 18
 
19 19
     /**
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public static function noETagPropertiesForType()
26 26
     {
27 27
         return 'If-Match or If-None-Match headers cannot be specified if the target type does not have'
28
-               .' etag properties defined.';
28
+                .' etag properties defined.';
29 29
     }
30 30
 
31 31
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public static function eTagCannotBeSpecified($uri)
51 51
     {
52 52
         return 'If-Match or If-None-Match HTTP headers cannot be specified since the URI \''.$uri.'\' refers to a'
53
-               .' collection of resources or has a $count or $link segment or has an $expand as one of the query'
54
-               .' parameters.';
53
+                .' collection of resources or has a $count or $link segment or has an $expand as one of the query'
54
+                .' parameters.';
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public static function eTagCannotBeSpecified($uri)
51 51
     {
52
-        return 'If-Match or If-None-Match HTTP headers cannot be specified since the URI \''.$uri.'\' refers to a'
52
+        return 'If-Match or If-None-Match HTTP headers cannot be specified since the URI \'' . $uri . '\' refers to a'
53 53
                .' collection of resources or has a $count or $link segment or has an $expand as one of the query'
54 54
                .' parameters.';
55 55
     }
Please login to merge, or discard this patch.