Test Setup Failed
Push — master ( 3debc5...181c40 )
by Alex
03:18
created
src/POData/UriProcessor/QueryProcessor/OrderByParser/OrderByParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -410,7 +410,7 @@
 block discarded – undo
410 410
             $this->topLevelComparisonFunction = $this->comparisonFunctions[0];
411 411
         } else {
412 412
             $funcList = $this->comparisonFunctions;
413
-            $this->topLevelComparisonFunction = function ($object1, $object2) use ($funcList) {
413
+            $this->topLevelComparisonFunction = function($object1, $object2) use ($funcList) {
414 414
                 $ret = 0;
415 415
                 foreach ($funcList as $f) {
416 416
                     $ret = $f($object1, $object2);
Please login to merge, or discard this patch.
src/POData/Providers/Metadata/ResourceAssociationType.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
      * @param ResourceEntityType    $resourceType     Resource type for the source end
125 125
      * @param ResourceProperty      $resourceProperty Resource property for the source end
126 126
      *
127
-     * @return ResourceAssociationTypeEndRelated Association type end for the
127
+     * @return ResourceAssociationTypeEnd|null Association type end for the
128 128
      *                                           given parameters
129 129
      */
130 130
     public function getRelatedResourceAssociationSetEnd(
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.
src/POData/Providers/Metadata/SimpleMetadataProvider.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,13 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace POData\Providers\Metadata;
4 4
 
5
-use AlgoWeb\ODataMetadata\IsOK;
6 5
 use AlgoWeb\ODataMetadata\MetadataManager;
7 6
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TComplexTypeType;
8 7
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType;
9 8
 use Illuminate\Support\Str;
10 9
 use POData\Common\InvalidOperationException;
11
-use POData\Common\NotImplementedException;
12 10
 use POData\Providers\Metadata\Type\IType;
13 11
 use POData\Providers\Metadata\Type\TypeCode;
14 12
 
Please login to merge, or discard this 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);
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
             );
585 585
         }
586 586
         if (!in_array($resourceMult, $allowedMult)) {
587
-            throw new InvalidOperationException("Supplied multiplicity ".$resourceMult." not valid");
587
+            throw new InvalidOperationException("Supplied multiplicity " . $resourceMult . " not valid");
588 588
         }
589 589
 
590 590
         $resourcePropertyKind = ('*' == $resourceMult)
@@ -852,12 +852,12 @@  discard block
 block discarded – undo
852 852
             throw new \InvalidArgumentException($msg);
853 853
         }
854 854
         if (array_key_exists($name, $this->resourceSets)) {
855
-            $msg = "Resource set with same name, ". $name. ", exists";
855
+            $msg = "Resource set with same name, " . $name . ", exists";
856 856
             throw new \InvalidArgumentException($msg);
857 857
         }
858 858
         $typeName = $returnType->getName();
859 859
         if (!array_key_exists($typeName, $this->OdataEntityMap)) {
860
-            $msg = "Mapping not defined for ".$typeName;
860
+            $msg = "Mapping not defined for " . $typeName;
861 861
             throw new \InvalidArgumentException($msg);
862 862
         }
863 863
         $metaReturn = $this->OdataEntityMap[$typeName];
Please login to merge, or discard this patch.