Passed
Pull Request — master (#44)
by Alex
02:51
created
src/Edm/Validation/Internal/ValidationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         if (count($set1) != count($set2)) {
97 97
             return false;
98 98
         }
99
-        for ($i = count($set1) -1; $i > -1; --$i) {
99
+        for ($i = count($set1) - 1; $i > -1; --$i) {
100 100
             if ($set1[$i] !== $set2[$i]) {
101 101
                 return false;
102 102
             }
Please login to merge, or discard this patch.
src/Edm/Internal/CacheHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
     }
21 21
     public static function getCycleSentinel(): ?stdClass
22 22
     {
23
-        return (object)[];
23
+        return (object) [];
24 24
     }
25 25
     public static function getSecondPassCycleSentinel(): ?stdClass
26 26
     {
27
-        return (object)[];
27
+        return (object) [];
28 28
     }
29 29
     public static function GetBoxed(bool $value)
30 30
     {
Please login to merge, or discard this patch.
src/Csdl/Internal/Serialization/Helpers/AssociationSetAnnotations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,5 +11,5 @@
 block discarded – undo
11 11
 
12 12
     public $End1Annotations;
13 13
 
14
-    public $End2Annotations ;
14
+    public $End2Annotations;
15 15
 }
Please login to merge, or discard this patch.
src/Csdl/Internal/Serialization/Helpers/AssociationAnnotations.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * @var IDirectValueAnnotation
14 14
      */
15
-    public $Annotations ;
15
+    public $Annotations;
16 16
     /**
17 17
      * @var IDirectValueAnnotation
18 18
      */
19
-    public $End1Annotations ;
19
+    public $End1Annotations;
20 20
     /**
21 21
      * @var IDirectValueAnnotation
22 22
      */
@@ -24,5 +24,5 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @var IDirectValueAnnotation
26 26
      */
27
-    public $ConstraintAnnotations ;
27
+    public $ConstraintAnnotations;
28 28
 }
Please login to merge, or discard this patch.
src/Csdl/EdmxWriter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@
 block discarded – undo
91 91
                 $errors = [new EdmError(new CsdlLocation(0, 0), EdmErrorCode::UnknownEdmxVersion(), StringConst::Serializer_UnknownEdmxVersion())];
92 92
                 return false;
93 93
             }
94
-        } elseif (! $edmxVersion = CsdlConstants::EdmToEdmxVersions($model->GetEdmVersion() ?? Version::v3())) {
95
-            $errors = [new EdmError(new CsdlLocation(0, 0), EdmErrorCode::UnknownEdmVersion(), StringConst::Serializer_UnknownEdmVersion()) ];
94
+        } elseif (!$edmxVersion = CsdlConstants::EdmToEdmxVersions($model->GetEdmVersion() ?? Version::v3())) {
95
+            $errors = [new EdmError(new CsdlLocation(0, 0), EdmErrorCode::UnknownEdmVersion(), StringConst::Serializer_UnknownEdmVersion())];
96 96
             return false;
97 97
         }
98 98
 
Please login to merge, or discard this patch.
src/Helpers/PrimitiveTypeReferenceHelpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,6 @@
 block discarded – undo
38 38
     public function PrimitiveKind(): PrimitiveTypeKind
39 39
     {
40 40
         $primitive = $this->PrimitiveDefinition();
41
-        return $primitive !== null ? $primitive->getPrimitiveKind(): PrimitiveTypeKind::None();
41
+        return $primitive !== null ? $primitive->getPrimitiveKind() : PrimitiveTypeKind::None();
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
src/EdmModelVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
     protected function endElement(IEdmElement $element, string $method): void
117 117
     {
118 118
         $method       = $this->sanitizeMethodName($method);
119
-        $elementClone =  $this->cloneElementContainer->offsetGet($element);
119
+        $elementClone = $this->cloneElementContainer->offsetGet($element);
120 120
         foreach ($this->visitors as $visitor) {
121 121
             $visitor->{'end' . $method}($elementClone);
122 122
         }
Please login to merge, or discard this patch.
src/Internal/RegistrationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     ) {
48 48
         $qualifiedName = $element->FullName();
49 49
         switch ($element->getSchemaElementKind()) {
50
-            case SchemaElementKind::Function():
50
+            case SchemaElementKind::Function ():
51 51
                 assert($element instanceof IFunction);
52 52
                 self::AddFunction($element, $qualifiedName, $functionGroupDictionary);
53 53
                 break;
Please login to merge, or discard this patch.
Internal/InterfaceValidator/VisitorOfIParameterReferenceExpression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             $references[] = $expression->getReferencedParameter();
18 18
             return null;
19 19
         } else {
20
-            return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedParameter') ];
20
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedParameter')];
21 21
         }
22 22
     }
23 23
 
Please login to merge, or discard this patch.