Completed
Pull Request — master (#91)
by Christopher
04:09
created
src/POData/Providers/Metadata/SimpleMetadataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         $type = null;
279 279
         if ($typeKind == ResourceTypeKind::ENTITY) {
280 280
             list($oet, $entitySet) = $this->metadataManager->addEntityType($name);
281
-            assert($oet instanceof TEntityTypeType, "Entity type ".$name. " not successfully added");
281
+            assert($oet instanceof TEntityTypeType, "Entity type " . $name . " not successfully added");
282 282
             $type = new ResourceEntityType($refClass, $oet, $this);
283 283
             $typeName = $type->getFullName();
284 284
             $returnName = Str::plural($typeName);
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
             );
568 568
         }
569 569
         if (!in_array($resourceMult, $allowedMult)) {
570
-            throw new InvalidOperationException("Supplied multiplicity ".$resourceMult." not valid");
570
+            throw new InvalidOperationException("Supplied multiplicity " . $resourceMult . " not valid");
571 571
         }
572 572
 
573 573
         $resourcePropertyKind = ('*' == $resourceMult)
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
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         $expectedParms = count($baseParms);
124 124
         $actualParms = count($parms);
125 125
         if ($expectedParms != $actualParms) {
126
-            $msg = "Was expecting ". $expectedParms. " arguments, received ".$actualParms." instead";
126
+            $msg = "Was expecting " . $expectedParms . " arguments, received " . $actualParms . " instead";
127 127
             throw new \InvalidArgumentException($msg);
128 128
         }
129 129
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     private function checkBlacklist($func, $fromArray = false)
138 138
     {
139 139
         if (in_array($func, $this->blacklist) || in_array(strtolower($func), $this->blacklist)) {
140
-            $msg = (true === $fromArray ? "First element of " : "")."FunctionName blacklisted";
140
+            $msg = (true === $fromArray ? "First element of " : "") . "FunctionName blacklisted";
141 141
             throw new \InvalidArgumentException($msg);
142 142
         }
143 143
     }
Please login to merge, or discard this patch.