Completed
Pull Request — master (#102)
by Alex
04:48
created
src/MetadataV3/edm/Groups/TFunctionImportAttributesTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     public function isTFunctionImportAttributesValid(&$msg)
266 266
     {
267 267
         if (!$this->isTSimpleIdentifierValid($this->name)) {
268
-            $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this);
268
+            $msg = "Name must be a valid TSimpleIdentifier: ".get_class($this);
269 269
             return false;
270 270
         }
271 271
         if ($this->isComposable && $this->isSideEffecting) {
@@ -278,11 +278,11 @@  discard block
 block discarded – undo
278 278
             return false;
279 279
         }*/
280 280
         if (!$this->isObjectNullOrType('\AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType', $this->entitySet)) {
281
-            $msg = "Entity set must be either null or an instance of TOperandType: " . get_class($this);
281
+            $msg = "Entity set must be either null or an instance of TOperandType: ".get_class($this);
282 282
             return false;
283 283
         }
284 284
         if (null != $this->methodAccess && $this->isTAccessOk($this->methodAccess)) {
285
-            $msg = "Method access must be a valid TAccess: " . get_class($this);
285
+            $msg = "Method access must be a valid TAccess: ".get_class($this);
286 286
             return false;
287 287
         }
288 288
         if (!$this->isValidArrayOK(
Please login to merge, or discard this patch.
src/MetadataV3/edm/EntityContainer/FunctionImportAnonymousType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         }
139 139
 
140 140
         $numParms = count($this->parameter);
141
-        for ($i = 0; $i < $numParms -2; $i++) {
141
+        for ($i = 0; $i < $numParms - 2; $i++) {
142 142
             $outName = $this->parameter[$i]->getName();
143 143
             for ($j = $i + 1; $j < $numParms - 1; $j++) {
144 144
                 $inName = $this->parameter[$j]->getName();
Please login to merge, or discard this patch.
src/MetadataV3/edm/TFunctionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@
 block discarded – undo
308 308
         }
309 309
         foreach ($this->returnType as $type) {
310 310
             if (!is_string($type) || !$this->isTCommandTextValid($type)) {
311
-                $msg = implode($type) . " must be a valid TCommandText";
311
+                $msg = implode($type)." must be a valid TCommandText";
312 312
                 return false;
313 313
             }
314 314
         }
Please login to merge, or discard this patch.
tests/MetadataManagerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $ds = DIRECTORY_SEPARATOR;
33 33
 
34
-        $goodxsd = dirname(__DIR__) . $ds . "xsd" . $ds . "Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd";
34
+        $goodxsd = dirname(__DIR__).$ds."xsd".$ds."Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd";
35 35
         if (!file_exists($goodxsd)) {
36 36
             return true;
37 37
         }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $result = null;
47 47
 
48 48
         list($eType, $result) = $metadataManager->addEntityType("Category");
49
-        $this->assertNotFalse($eType, "Etype is false not type " . $metadataManager->getLastError());
49
+        $this->assertNotFalse($eType, "Etype is false not type ".$metadataManager->getLastError());
50 50
         $metadataManager->addPropertyToEntityType($eType, "CategoryID", "Int32", null, false, true, "Identity");
51 51
         $metadataManager->addPropertyToEntityType($eType, "CategoryName", "String");
52 52
         $metadataManager->addPropertyToEntityType($eType, "Description", "String");
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $result = null;
74 74
 
75 75
         list($CategoryType, $result) = $metadataManager->addEntityType("Category");
76
-        $this->assertNotFalse($CategoryType, "Etype is false not type " . $metadataManager->getLastError());
76
+        $this->assertNotFalse($CategoryType, "Etype is false not type ".$metadataManager->getLastError());
77 77
         $metadataManager->addPropertyToEntityType($CategoryType, "CategoryID", "Int32", null, false, true, "Identity");
78 78
         $metadataManager->addPropertyToEntityType($CategoryType, "CategoryName", "String");
79 79
         $metadataManager->addPropertyToEntityType($CategoryType, "Description", "String");
Please login to merge, or discard this patch.