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.
src/MetadataV3/Edm/Schema.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
  * The following is an example of the Schema element:
20 20
  *
21 21
  *     <Schema Alias="Model" Namespace="Test.Simple.Model" xmlns:edm="http://schemas.microsoft.com/ado/2009/11/edm" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
22
-
23 22
  * The following rules apply to the Schema element.
24 23
  * - The CSDL document MUST have the Schema element as its root element.
25 24
  * - The Namespace attribute is defined for each Schema element. Namespace is of type QualifiedName. A namespace is a
Please login to merge, or discard this patch.
src/MetadataV3/Edm/EntityContainer/AssociationSet/End.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
  *   by the related EntitySet. An End element can contain a maximum of one Documentation element.
29 29
  * - End can contain any number of AnnotationElement elements.
30 30
  * - The child elements of End are to appear in this sequence: Documentation, AnnotationElement.
31
-
32 31
  * @link https://www.odata.org/documentation/odata-version-3-0/common-schema-definition-language-csdl/#csdl12.3.1
33 32
  */
34 33
 class End extends EdmBase
Please login to merge, or discard this patch.
src/MetadataV3/Edm/AssociationEnd.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,6 @@
 block discarded – undo
35 35
 {
36 36
     /**
37 37
      * End can contain a maximum of one Documentation element.
38
-
39
-
40 38
      */
41 39
     use HasDocumentation;
42 40
     /**
Please login to merge, or discard this patch.