Passed
Pull Request — master (#154)
by Alex
02:36
created
tests/MetadataV3/Edm/EntityContainerTest.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -12,32 +12,32 @@  discard block
 block discarded – undo
12 12
         $entityContainer = new EntityContainer('NorthwindEntities', true, null, true);
13 13
 
14 14
         $entitySetarray = [
15
-            ['Categories','NorthwindModel.Category'],
16
-            ['CustomerDemographics','NorthwindModel.CustomerDemographic'],
17
-            ['Customers','NorthwindModel.Customer'],
18
-            ['Employees','NorthwindModel.Employee'],
19
-            ['Order_Details','NorthwindModel.Order_Detail'],
20
-            ['Orders','NorthwindModel.Order'],
21
-            ['Products','NorthwindModel.Product'],
22
-            ['Regions','NorthwindModel.Region'],
23
-            ['Shippers','NorthwindModel.Shipper'],
24
-            ['Suppliers','NorthwindModel.Supplier'],
25
-            ['Territories','NorthwindModel.Territory'],
26
-            ['Alphabetical_list_of_products','NorthwindModel.Alphabetical_list_of_product'],
27
-            ['Category_Sales_for_1997','NorthwindModel.Category_Sales_for_1997'],
28
-            ['Current_Product_Lists','NorthwindModel.Current_Product_List'],
29
-            ['Customer_and_Suppliers_by_Cities','NorthwindModel.Customer_and_Suppliers_by_City'],
30
-            ['Invoices','NorthwindModel.Invoice'],
31
-            ['Order_Details_Extendeds','NorthwindModel.Order_Details_Extended'],
32
-            ['Order_Subtotals','NorthwindModel.Order_Subtotal'],
33
-            ['Orders_Qries','NorthwindModel.Orders_Qry'],
34
-            ['Product_Sales_for_1997','NorthwindModel.Product_Sales_for_1997'],
35
-            ['Products_Above_Average_Prices','NorthwindModel.Products_Above_Average_Price'],
36
-            ['Products_by_Categories','NorthwindModel.Products_by_Category'],
37
-            ['Sales_by_Categories','NorthwindModel.Sales_by_Category'],
38
-            ['Sales_Totals_by_Amounts','NorthwindModel.Sales_Totals_by_Amount'],
39
-            ['Summary_of_Sales_by_Quarters','NorthwindModel.Summary_of_Sales_by_Quarter'],
40
-            ['Summary_of_Sales_by_Years','NorthwindModel.Summary_of_Sales_by_Year'],
15
+            ['Categories', 'NorthwindModel.Category'],
16
+            ['CustomerDemographics', 'NorthwindModel.CustomerDemographic'],
17
+            ['Customers', 'NorthwindModel.Customer'],
18
+            ['Employees', 'NorthwindModel.Employee'],
19
+            ['Order_Details', 'NorthwindModel.Order_Detail'],
20
+            ['Orders', 'NorthwindModel.Order'],
21
+            ['Products', 'NorthwindModel.Product'],
22
+            ['Regions', 'NorthwindModel.Region'],
23
+            ['Shippers', 'NorthwindModel.Shipper'],
24
+            ['Suppliers', 'NorthwindModel.Supplier'],
25
+            ['Territories', 'NorthwindModel.Territory'],
26
+            ['Alphabetical_list_of_products', 'NorthwindModel.Alphabetical_list_of_product'],
27
+            ['Category_Sales_for_1997', 'NorthwindModel.Category_Sales_for_1997'],
28
+            ['Current_Product_Lists', 'NorthwindModel.Current_Product_List'],
29
+            ['Customer_and_Suppliers_by_Cities', 'NorthwindModel.Customer_and_Suppliers_by_City'],
30
+            ['Invoices', 'NorthwindModel.Invoice'],
31
+            ['Order_Details_Extendeds', 'NorthwindModel.Order_Details_Extended'],
32
+            ['Order_Subtotals', 'NorthwindModel.Order_Subtotal'],
33
+            ['Orders_Qries', 'NorthwindModel.Orders_Qry'],
34
+            ['Product_Sales_for_1997', 'NorthwindModel.Product_Sales_for_1997'],
35
+            ['Products_Above_Average_Prices', 'NorthwindModel.Products_Above_Average_Price'],
36
+            ['Products_by_Categories', 'NorthwindModel.Products_by_Category'],
37
+            ['Sales_by_Categories', 'NorthwindModel.Sales_by_Category'],
38
+            ['Sales_Totals_by_Amounts', 'NorthwindModel.Sales_Totals_by_Amount'],
39
+            ['Summary_of_Sales_by_Quarters', 'NorthwindModel.Summary_of_Sales_by_Quarter'],
40
+            ['Summary_of_Sales_by_Years', 'NorthwindModel.Summary_of_Sales_by_Year'],
41 41
         ];
42 42
         foreach ($entitySetarray as $es) {
43 43
             $entityContainer->addToEntitySet(new EntityContainer\EntitySet($es[0], $es[1]));
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     public function testXmlSerialize()
107 107
     {
108
-        $domNode =  $this->TESTNODE;
108
+        $domNode = $this->TESTNODE;
109 109
         $entityContainer = self::getEntityContainer();
110 110
         $domNode = $this->writerContext->write($entityContainer, false);
111 111
         $this->TESTNODE->appendChild($domNode);
Please login to merge, or discard this patch.
tests/MetadataV3/Edm/EntityTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
     {
15 15
         $expected =
16 16
             '<EntityType Abstract="false" Name="Customer" OpenType="false"  metadata:HasStream="false">' .
17
-            '    <Key>'.
18
-            '        <PropertyRef Name="CustomerId" />'.
19
-            '    </Key>'.
20
-            '    <NavigationProperty Name="Orders" Relationship="Model1.CustomerOrder" FromRole="Customer" ToRole="Order"/>'.
21
-            '    <Property Name="CustomerId" Type="Int32" Nullable="false"/>'.
22
-            '    <Property Name="FirstName" Type="String" Nullable="true" Unicode="true"/>'.
23
-            '    <Property Name="LastName" Type="String" Nullable="true" Unicode="true"/>'.
24
-            '    <Property Name="AccountNumber" Type="Int32" Nullable="true"/>'.
17
+            '    <Key>' .
18
+            '        <PropertyRef Name="CustomerId" />' .
19
+            '    </Key>' .
20
+            '    <NavigationProperty Name="Orders" Relationship="Model1.CustomerOrder" FromRole="Customer" ToRole="Order"/>' .
21
+            '    <Property Name="CustomerId" Type="Int32" Nullable="false"/>' .
22
+            '    <Property Name="FirstName" Type="String" Nullable="true" Unicode="true"/>' .
23
+            '    <Property Name="LastName" Type="String" Nullable="true" Unicode="true"/>' .
24
+            '    <Property Name="AccountNumber" Type="Int32" Nullable="true"/>' .
25 25
             '</EntityType>';
26 26
 
27 27
         $entity = new Entity('Customer');
Please login to merge, or discard this patch.
tests/MetadataV3/Edm/SchemaTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
                 '<Schema/>', null, null, []
33 33
             ],
34 34
             [
35
-                '<Schema Namespace="DummyNameSpace"/>', 'DummyNameSpace', null,[]
35
+                '<Schema Namespace="DummyNameSpace"/>', 'DummyNameSpace', null, []
36 36
             ],
37 37
             [
38
-                '<Schema Alias="DummyAlias"/>', null, 'DummyAlias',[]
38
+                '<Schema Alias="DummyAlias"/>', null, 'DummyAlias', []
39 39
             ],
40 40
             [
41
-                '<Schema Namespace="DummyNameSpace" Alias="DummyAlias"/>', 'DummyNameSpace', 'DummyAlias',[]
41
+                '<Schema Namespace="DummyNameSpace" Alias="DummyAlias"/>', 'DummyNameSpace', 'DummyAlias', []
42 42
             ]
43 43
         ];
44 44
     }
@@ -46,17 +46,17 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $base = [
48 48
             [
49
-                '<Schema>%s</Schema>', null,null
49
+                '<Schema>%s</Schema>', null, null
50 50
 
51 51
             ],
52 52
             [
53 53
                 '<Schema Namespace="DummyNameSpace">%s</Schema>', 'DummyNameSpace', null
54 54
             ],
55 55
             [
56
-                '<Schema Alias="DummyAlias">%s</Schema>',null, 'DummyAlias'
56
+                '<Schema Alias="DummyAlias">%s</Schema>', null, 'DummyAlias'
57 57
             ],
58 58
             [
59
-                '<Schema Namespace="DummyNameSpace" Alias="DummyAlias">%s</Schema>','DummyNameSpace', 'DummyAlias'
59
+                '<Schema Namespace="DummyNameSpace" Alias="DummyAlias">%s</Schema>', 'DummyNameSpace', 'DummyAlias'
60 60
             ]
61 61
         ];
62 62
         $usingArray = UsingTest::usingTestDataProvider();
Please login to merge, or discard this patch.
src/MetadataV3/AccessorType.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 
10 10
 class AccessorType extends Enum
11 11
 {
12
-    protected const Public = 'Public';
12
+    protected const public = 'Public';
13 13
     protected const Internal = 'Internal';
14
-    protected const Protected = 'Protected';
15
-    protected const Private = 'Private';
14
+    protected const protected = 'Protected';
15
+    protected const private = 'Private';
16 16
 
17 17
     public static $cgNamespace = 'http://schemas.microsoft.com/ado/2006/04/codegeneration';
18 18
 }
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
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
  *   by the related EntitySet. An End element can contain a maximum of one Documentation element.
31 31
  * - End can contain any number of AnnotationElement elements.
32 32
  * - The child elements of End are to appear in this sequence: Documentation, AnnotationElement.
33
-
34 33
  * @see https://www.odata.org/documentation/odata-version-3-0/common-schema-definition-language-csdl/#csdl12.3.1
35 34
  */
36 35
 class End extends EdmBase
Please login to merge, or discard this patch.