Passed
Pull Request — master (#154)
by Alex
02:36
created
src/Writer/IAttribute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function getAttributeValue(): ?string;
13 13
 
14
-    public function getAttributeNullCheck():bool ;
14
+    public function getAttributeNullCheck():bool;
15 15
 
16 16
     public function getAttributeForVersion(): OdataVersions;
17 17
 
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     protected function setUp(): void
22 22
     {
23 23
         parent::setUp();
24
-        $this->writerContext =  new WriterContext(OdataVersions::THREE());
24
+        $this->writerContext = new WriterContext(OdataVersions::THREE());
25 25
         $this->setContext($this->writerContext);
26 26
     }
27 27
 
Please login to merge, or discard this patch.
src/MetadataV3/DomBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
     /**
30 30
      * @return array|AttributeContainer[]
31 31
      */
32
-    abstract public function getAttributes(): array ;
32
+    abstract public function getAttributes(): array;
33 33
 
34 34
     /**
35 35
      * @return array|DomBase[]
36 36
      */
37
-    abstract public function getChildElements(): array ;
37
+    abstract public function getChildElements(): array;
38 38
 }
Please login to merge, or discard this patch.
src/Writer/Namespaces.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * In this specification the namespace prefix Edm is used to represent the Entity Data Model namespace, however
47 47
      * the prefix name is not prescriptive.
48 48
      */
49
-    private const V1EdmNamespace= 'http://schemas.microsoft.com/ado/2006/04/edm';
49
+    private const V1EdmNamespace = 'http://schemas.microsoft.com/ado/2006/04/edm';
50 50
     private const V2EdmNamespace = 'http://schemas.microsoft.com/ado/2008/09/edm';
51 51
     private const V3EdmNamespace = 'http://schemas.microsoft.com/ado/2009/11/edm';
52 52
     /**
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/ReferentialConstraintRole.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * @var PropertyRef $propertyRef
84 84
      */
85
-    private $propertyRef ;
85
+    private $propertyRef;
86 86
 
87 87
     public function __construct(string $role, PropertyRef $propertyRef)
88 88
     {
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function getDomName(): string
150 150
     {
151
-        return $this->isPrincipal ? 'Principal' :'Dependent';
151
+        return $this->isPrincipal ? 'Principal' : 'Dependent';
152 152
     }
153 153
 
154 154
     /**
Please login to merge, or discard this patch.
src/MetadataV3/Edm/OtherTypeConstructs/CollectionType.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,8 +97,7 @@
 block discarded – undo
97 97
             new AttributeContainer('Type', strval($containerFor))
98 98
         ];
99 99
         return $containerFor instanceof IScalarType ?
100
-            array_merge($this->getAttributesHasFacets(), $baseAttribute) :
101
-            $baseAttribute;
100
+            array_merge($this->getAttributesHasFacets(), $baseAttribute) : $baseAttribute;
102 101
     }
103 102
 
104 103
     /**
Please login to merge, or discard this patch.
src/MetadataV3/Edm/OtherTypeConstructs/TypeRef.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@
 block discarded – undo
98 98
             new AttributeContainer('Type', $this->getType()->getName())
99 99
         ];
100 100
         return $this->getType() instanceof IScalarType ?
101
-            array_merge($this->getAttributesHasFacets(), $baseAttribute) :
102
-            $baseAttribute;
101
+            array_merge($this->getAttributesHasFacets(), $baseAttribute) : $baseAttribute;
103 102
     }
104 103
 
105 104
     /**
Please login to merge, or discard this patch.
src/MetadataV3/Edm/Entity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     /**
161 161
      * @var PropertyRef[]|KeyElement $key
162 162
      */
163
-    private $key ;
163
+    private $key;
164 164
 
165 165
     /**
166 166
      * @var PropertyHolder|Property[] $property EntityTypeProperty child elements are uniquely named within the
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     /**
173 173
      * @var NavigationPropertyHolder|NavigationProperty[] $navigationProperty
174 174
      */
175
-    private $navigationProperty ;
175
+    private $navigationProperty;
176 176
 
177 177
     public function __construct(
178 178
         string $name,
Please login to merge, or discard this patch.