Passed
Pull Request — master (#205)
by Alex
04:56
created
src/Serialisers/IronicSerialiser.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $targClass = $resourceType->getInstanceType()->getName();
134 134
         if (!($res instanceof $targClass)) {
135 135
             $msg = 'Object being serialised not instance of expected class, '
136
-                   . $targClass . ', is actually ' . $payloadClass;
136
+                    . $targClass . ', is actually ' . $payloadClass;
137 137
             throw new InvalidOperationException($msg);
138 138
         }
139 139
 
@@ -636,10 +636,10 @@  discard block
 block discarded – undo
636 636
         /** @var string|null $queryParameterString */
637 637
         $queryParameterString = null;
638 638
         foreach ([ODataConstants::HTTPQUERY_STRING_FILTER,
639
-                     ODataConstants::HTTPQUERY_STRING_EXPAND,
640
-                     ODataConstants::HTTPQUERY_STRING_ORDERBY,
641
-                     ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
642
-                     ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
639
+                        ODataConstants::HTTPQUERY_STRING_EXPAND,
640
+                        ODataConstants::HTTPQUERY_STRING_ORDERBY,
641
+                        ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
642
+                        ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) {
643 643
             /** @var string|null $value */
644 644
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
645 645
             if (null !== $value) {
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
         $kVal = $typeKind;
819 819
         if (!(ResourceTypeKind::PRIMITIVE() == $kVal || ResourceTypeKind::COMPLEX() == $kVal)) {
820 820
             $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE'
821
-                   .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
821
+                    .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX';
822 822
             throw new InvalidOperationException($msg);
823 823
         }
824 824
         if ($isNull) {
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
             if (!(ResourcePropertyKind::RESOURCESET_REFERENCE == $propKind
964 964
                   || ResourcePropertyKind::RESOURCE_REFERENCE == $propKind)) {
965 965
                 $msg = '$propKind != ResourcePropertyKind::RESOURCESET_REFERENCE &&'
966
-                       . ' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE';
966
+                        . ' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE';
967 967
                 throw new InvalidOperationException($msg);
968 968
             }
969 969
             $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed';
Please login to merge, or discard this patch.