Passed
Pull Request — master (#156)
by Alex
02:44
created
src/Library/EdmValueTerm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function __construct(string $namespaceName, string $name, $type)
39 39
     {
40
-        $type = ($type instanceof PrimitiveTypeKind) ? EdmCoreModel::getInstance()->GetPrimitive($type, true): $type;
40
+        $type = ($type instanceof PrimitiveTypeKind) ? EdmCoreModel::getInstance()->GetPrimitive($type, true) : $type;
41 41
         assert($type instanceof ITypeReference);
42 42
         parent::__construct($name);
43 43
         $this->type          = $type;
Please login to merge, or discard this patch.
src/Library/Annotations/EdmDirectValueAnnotationsManager.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -293,8 +293,7 @@
 block discarded – undo
293 293
         }
294 294
 
295 295
         $newAnnotation = $value != null ?
296
-            new EdmDirectValueAnnotation($namespaceName, $localName, $value) :
297
-            new EdmDirectValueAnnotation($namespaceName, $localName);
296
+            new EdmDirectValueAnnotation($namespaceName, $localName, $value) : new EdmDirectValueAnnotation($namespaceName, $localName);
298 297
 
299 298
         if ($transientAnnotations == null) {
300 299
             $transientAnnotations = $newAnnotation;
Please login to merge, or discard this patch.
src/Library/Values/EdmNullExpression.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function getExpressionKind(): ExpressionKind
44 44
     {
45
-        return ExpressionKind::Null();
45
+        return ExpressionKind::null();
46 46
     }
47 47
 
48 48
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function getValueKind(): ValueKind
52 52
     {
53
-        return ValueKind::Null();
53
+        return ValueKind::null();
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
src/Library/Values/EdmEnumValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function __construct($value, ?IEnumTypeReference $type = null)
25 25
     {
26 26
         parent::__construct($type);
27
-        $value = $value instanceof IEnumMember ? $value->getValue(): $value;
27
+        $value = $value instanceof IEnumMember ? $value->getValue() : $value;
28 28
         assert($value instanceof IPrimitiveValue);
29 29
         $this->value = $value;
30 30
     }
Please login to merge, or discard this patch.
src/Library/EdmStringTypeReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         if ($isUnbounded && $maxLength !== null) {
52 52
             throw new InvalidOperationException(StringConst::EdmModel_Validator_Semantic_IsUnboundedCannotBeTrueWhileMaxLengthIsNotNull());
53 53
         }
54
-        $this->isUnbounded   =$isUnbounded;
54
+        $this->isUnbounded   = $isUnbounded;
55 55
         $this->maxLength     = $maxLength;
56 56
         $this->isFixedLength = $isFixedLength;
57 57
         $this->isUnicode     = $isUnicode;
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/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/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.
Validation/Internal/InterfaceValidator/VisitorOfIEntityReferenceType.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[] = $type->getEntityType();
18 18
             return null;
19 19
         } else {
20
-            return [ InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'EntityType') ];
20
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'EntityType')];
21 21
         }
22 22
     }
23 23
 
Please login to merge, or discard this patch.