@@ -54,7 +54,7 @@ |
||
| 54 | 54 | }; |
| 55 | 55 | $this->functionDescriptionParsers[ODataConstants::STRFUN_ENDSWITH] = function ($params) { |
| 56 | 56 | return '(strcmp(substr(' . $params[0] . ', strlen(' . $params[0] . ') - strlen(' . $params[1] . ')), ' |
| 57 | - .$params[1] . ') === 0)'; |
|
| 57 | + .$params[1] . ') === 0)'; |
|
| 58 | 58 | }; |
| 59 | 59 | $this->functionDescriptionParsers[ODataConstants::STRFUN_INDEXOF] = function ($params) { |
| 60 | 60 | return 'strpos(' . $params[0] . ', ' . $params[1] . ')'; |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $others = $this->getRelationsByRelationName($className, $relName); |
| 71 | 71 | if ($stub instanceof AssociationStubMonomorphic) { |
| 72 | 72 | $msg = 'Monomorphic relation stub on ' . $className . ' ' . $relName |
| 73 | - . ' should point to at most 1 other stub'; |
|
| 73 | + . ' should point to at most 1 other stub'; |
|
| 74 | 74 | if (!(1 >= count($others))) { |
| 75 | 75 | throw new InvalidOperationException($msg); |
| 76 | 76 | } |
@@ -110,8 +110,8 @@ |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | - * @return IMetadataProvider |
|
| 114 | - */ |
|
| 113 | + * @return IMetadataProvider |
|
| 114 | + */ |
|
| 115 | 115 | protected function getMetadata() |
| 116 | 116 | { |
| 117 | 117 | if (null == $this->metaProvider) { |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $targClass = $resourceType->getInstanceType()->getName(); |
| 152 | 152 | if (!($res instanceof $targClass)) { |
| 153 | 153 | $msg = 'Object being serialised not instance of expected class, ' |
| 154 | - . $targClass . ', is actually ' . $payloadClass; |
|
| 154 | + . $targClass . ', is actually ' . $payloadClass; |
|
| 155 | 155 | throw new InvalidOperationException($msg); |
| 156 | 156 | } |
| 157 | 157 | |
@@ -748,10 +748,10 @@ discard block |
||
| 748 | 748 | /** @var string|null $queryParameterString */ |
| 749 | 749 | $queryParameterString = null; |
| 750 | 750 | foreach ([ODataConstants::HTTPQUERY_STRING_FILTER, |
| 751 | - ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
| 752 | - ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
| 753 | - ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
| 754 | - ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
| 751 | + ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
| 752 | + ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
| 753 | + ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
| 754 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
| 755 | 755 | /** @var string|null $value */ |
| 756 | 756 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
| 757 | 757 | if (null !== $value) { |
@@ -953,7 +953,7 @@ discard block |
||
| 953 | 953 | $kVal = $typeKind; |
| 954 | 954 | if (!(ResourceTypeKind::PRIMITIVE() == $kVal || ResourceTypeKind::COMPLEX() == $kVal)) { |
| 955 | 955 | $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE' |
| 956 | - .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
| 956 | + .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
| 957 | 957 | throw new InvalidOperationException($msg); |
| 958 | 958 | } |
| 959 | 959 | if (null == $result) { |
@@ -1106,7 +1106,7 @@ discard block |
||
| 1106 | 1106 | if (!(ResourcePropertyKind::RESOURCESET_REFERENCE == $propKind |
| 1107 | 1107 | || ResourcePropertyKind::RESOURCE_REFERENCE == $propKind)) { |
| 1108 | 1108 | $msg = '$propKind != ResourcePropertyKind::RESOURCESET_REFERENCE &&' |
| 1109 | - . ' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE'; |
|
| 1109 | + . ' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE'; |
|
| 1110 | 1110 | throw new InvalidOperationException($msg); |
| 1111 | 1111 | } |
| 1112 | 1112 | $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed'; |