Passed
Pull Request — master (#40)
by Alex
03:15
created
src/Library/EdmProperty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * @var array<IDependent>
29 29
      */
30
-    protected $dependents =[];
30
+    protected $dependents = [];
31 31
     /**
32 32
      * @var ITypeReference
33 33
      */
Please login to merge, or discard this patch.
src/Library/EdmNavigationProperty.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
         ?array $dependentProperties,
49 49
         ?bool $containsTarget,
50 50
         ?OnDeleteAction $onDelete
51
-    )
52
-    {
51
+    ) {
53 52
         parent::__construct($declaringType, $name, $type);
54 53
         $this->dependentProperties = $dependentProperties;
55 54
         $this->containsTarget      = $containsTarget ?? CsdlConstants::Default_ContainsTarget;
Please login to merge, or discard this patch.
src/Library/EdmModelBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
                 return [$element];
133 133
             }
134 134
 
135
-            return $element ;
135
+            return $element;
136 136
         }
137 137
 
138 138
         return [];
Please login to merge, or discard this patch.
src/Structure/HashSetInternal.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,24 +12,24 @@
 block discarded – undo
12 12
 
13 13
     public function __construct(iterable $wrappedDictionary = null)
14 14
     {
15
-        if(null !== $wrappedDictionary){
15
+        if (null !== $wrappedDictionary) {
16 16
             $wrappedDictionary = [];
17
-            foreach($wrappedDictionary as $item){
17
+            foreach ($wrappedDictionary as $item) {
18 18
                 $this->wrappedDictionary[] = $item;
19 19
             }
20 20
         }
21 21
     }
22 22
 
23 23
     public function add($value): bool{
24
-        if(in_array($value, $this->wrappedDictionary)){
24
+        if (in_array($value, $this->wrappedDictionary)) {
25 25
             return false;
26 26
         }
27 27
         $this->wrappedDictionary[] = $value;
28 28
         return true;
29 29
     }
30 30
 
31
-    public function tryGetValue($key, &$output){
32
-        if(isset($this->wrappedDictionary[$key])){
31
+    public function tryGetValue($key, &$output) {
32
+        if (isset($this->wrappedDictionary[$key])) {
33 33
             $output = &$this->wrappedDictionary[$key];
34 34
             return true;
35 35
         }
Please login to merge, or discard this patch.
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,24 +12,25 @@
 block discarded – undo
12 12
 
13 13
     public function __construct(iterable $wrappedDictionary = null)
14 14
     {
15
-        if(null !== $wrappedDictionary){
15
+        if(null !== $wrappedDictionary) {
16 16
             $wrappedDictionary = [];
17
-            foreach($wrappedDictionary as $item){
17
+            foreach($wrappedDictionary as $item) {
18 18
                 $this->wrappedDictionary[] = $item;
19 19
             }
20 20
         }
21 21
     }
22 22
 
23 23
     public function add($value): bool{
24
-        if(in_array($value, $this->wrappedDictionary)){
24
+        if(in_array($value, $this->wrappedDictionary)) {
25 25
             return false;
26 26
         }
27 27
         $this->wrappedDictionary[] = $value;
28 28
         return true;
29 29
     }
30 30
 
31
-    public function tryGetValue($key, &$output){
32
-        if(isset($this->wrappedDictionary[$key])){
31
+    public function tryGetValue($key, &$output)
32
+    {
33
+        if(isset($this->wrappedDictionary[$key])) {
33 34
             $output = &$this->wrappedDictionary[$key];
34 35
             return true;
35 36
         }
Please login to merge, or discard this patch.
src/ModelVisitorConcerns/VisitAnnotations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function visitAnnotations(iterable $annotations): void
30 30
     {
31
-        self::visitCollection($annotations, [$this,'visitAnnotation']);
31
+        self::visitCollection($annotations, [$this, 'visitAnnotation']);
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
src/ModelVisitorConcerns/VisitExpressions.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
                 assert($expression instanceof  IGuidConstantExpression);
105 105
                 $this->processGuidConstantExpression($expression);
106 106
                 break;
107
-            case ExpressionKind::If():
107
+            case ExpressionKind::If ():
108 108
                 assert($expression instanceof  IIfExpression);
109 109
                 $this->processIfExpression($expression);
110 110
                 break;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                 assert($expression instanceof  IGuidConstantExpression);
105 105
                 $this->processGuidConstantExpression($expression);
106 106
                 break;
107
-            case ExpressionKind::If():
107
+            case ExpressionKind::if():
108 108
                 assert($expression instanceof  IIfExpression);
109 109
                 $this->processIfExpression($expression);
110 110
                 break;
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                 assert($expression instanceof  ILabeledExpression);
129 129
                 $this->processLabeledExpression($expression);
130 130
                 break;
131
-            case ExpressionKind::Null():
131
+            case ExpressionKind::null():
132 132
                 assert($expression instanceof  INullExpression);
133 133
                 $this->processNullConstantExpression($expression);
134 134
                 break;
Please login to merge, or discard this patch.
src/ModelVisitorConcerns/VisitElements.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function visitSchemaElement(ISchemaElement $element): void
34 34
     {
35 35
         switch ($element->getSchemaElementKind()) {
36
-            case SchemaElementKind::Function():
36
+            case SchemaElementKind::Function ():
37 37
                 assert($element instanceof IFunction);
38 38
                 $this->processFunction($element);
39 39
                 break;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function visitSchemaElement(ISchemaElement $element): void
34 34
     {
35 35
         switch ($element->getSchemaElementKind()) {
36
-            case SchemaElementKind::Function():
36
+            case SchemaElementKind::function():
37 37
                 assert($element instanceof IFunction);
38 38
                 $this->processFunction($element);
39 39
                 break;
Please login to merge, or discard this patch.
src/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     private static function fillVersions()
69 69
     {
70 70
         if (null == self::$fixedVersion) {
71
-            self::$fixedVersion = [1 => new self(1, 0), 11 => new self(1, 1), 12 => new self(1, 2),2 => new self(2, 0), 3 => new self(3, 0)];
71
+            self::$fixedVersion = [1 => new self(1, 0), 11 => new self(1, 1), 12 => new self(1, 2), 2 => new self(2, 0), 3 => new self(3, 0)];
72 72
         }
73 73
     }
74 74
 
Please login to merge, or discard this patch.
src/polyfill.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if(!function_exists('mb_ord')) {
2
+if (!function_exists('mb_ord')) {
3 3
     function mb_ord($s, $encoding = null)
4 4
     {
5 5
         $getEncoding = function ($encoding) {
Please login to merge, or discard this patch.