Passed
Pull Request — master (#154)
by Alex
04:53
created
tests/MetadataV3/Edm/SchemaTest.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,10 +60,10 @@
 block discarded – undo
60 60
         ];
61 61
         $usingArray = UsingTest::usingTestDataProvider();
62 62
         $data = [];
63
-        foreach($usingArray as $usingItem){
63
+        foreach($usingArray as $usingItem) {
64 64
             $expected = $usingItem[0];
65 65
             $using = new Using($usingItem[1],$usingItem[2],$usingItem[3]);
66
-            foreach($base as $baseItem){
66
+            foreach($base as $baseItem) {
67 67
                 $data[] = [sprintf($baseItem[0],$expected), $baseItem[1], $baseItem[2], [$using]];
68 68
             }
69 69
 
Please login to merge, or discard this patch.
tests/MetadataV3/Edm/DocumentationTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
         $this->assertEquals($expected, $xml);
26 26
     }
27 27
 
28
-    public static function documentationTestProvider(){
28
+    public static function documentationTestProvider()
29
+    {
29 30
         return [
30 31
             [
31 32
                 '<Documentation><Summary>Short Summery</Summary></Documentation>', 'Short Summery', null
Please login to merge, or discard this patch.
tests/MetadataV3/Edmx/EdmxTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@
 block discarded – undo
23 23
         $this->assertXmlStringEqualsXmlString('<edmx:Edmx xmlns="http://schemas.microsoft.com/ado/2009/11/edm" xmlns:annotations="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:metadata="http://schemas.microsoft.com/ado/2007/08/DataServices/Metadata" Version="1.0"><edmx:DataServices metadata:DataServiceVersion="3.0"><Schema /></edmx:DataServices></edmx:Edmx>', $xml);
24 24
     }
25 25
 
26
-    public function testEdmxSerializePartialSchema(){
26
+    public function testEdmxSerializePartialSchema()
27
+    {
27 28
         $writterContext =  new WriterContext(OdataVersions::THREE());
28 29
         $edmx = new Edmx();
29 30
         $schema = new Schema('ODataWebV3.Northwind.Model');
Please login to merge, or discard this patch.
tests/MetadataV3/Edm/EntityContainerTest.php 1 patch
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@  discard block
 block discarded – undo
8 8
 class EntityContainerTest extends TestCase
9 9
 {
10 10
 
11
-    public static function getEntityContainer(){
11
+    public static function getEntityContainer()
12
+    {
12 13
         $entityContainer = new EntityContainer("NorthwindEntities", true,null,true);
13 14
 
14 15
         $entitySetarray = [
@@ -39,7 +40,7 @@  discard block
 block discarded – undo
39 40
             ['Summary_of_Sales_by_Quarters','NorthwindModel.Summary_of_Sales_by_Quarter'],
40 41
             ['Summary_of_Sales_by_Years','NorthwindModel.Summary_of_Sales_by_Year'],
41 42
         ];
42
-        foreach($entitySetarray as $es){
43
+        foreach($entitySetarray as $es) {
43 44
             $entityContainer->addToEntitySet(new EntityContainer\EntitySet($es[0],$es[1]));
44 45
         }
45 46
         $assocationSetArray = [
@@ -103,7 +104,8 @@  discard block
 block discarded – undo
103 104
         return $entityContainer;
104 105
     }
105 106
 
106
-    public function testXmlSerialize(){
107
+    public function testXmlSerialize()
108
+    {
107 109
         $domNode =  $this->TESTNODE;
108 110
         $entityContainer = self::getEntityContainer();
109 111
         $domNode = $this->writerContext->write($entityContainer, false);
Please login to merge, or discard this patch.
tests/MetadataV3/Edm/EntityType/KeyElementTest.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function testKeyElementXmlSerialize($expected, $propertyRefArray)
15 15
     {
16 16
         $key = new KeyElement();
17
-        foreach($propertyRefArray as $proRef){
17
+        foreach($propertyRefArray as $proRef) {
18 18
             $key[]=$proRef;
19 19
         }
20 20
         $domNode = $this->writerContext->write($key, false);
@@ -23,7 +23,8 @@  discard block
 block discarded – undo
23 23
         $this->assertXmlStringEqualsXmlString($expected, $xml);
24 24
     }
25 25
 
26
-    public static function KeyElementProvider(){
26
+    public static function KeyElementProvider()
27
+    {
27 28
         return [
28 29
             [
29 30
                 '<Key>' .
Please login to merge, or discard this patch.