Passed
Pull Request — master (#156)
by Alex
03:37
created
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/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/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/Validation/ValidationRules/IPrimitiveValue/PrimitiveValueRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
 {
13 13
     public function getValidatedType(): string
14 14
     {
15
-        return IPrimitiveValue::class ;
15
+        return IPrimitiveValue::class;
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
src/Util/UnmanagedByteArray.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function offsetExists($offset)
41 41
     {
42
-        return is_int($offset) && 0 <= $offset  && $offset < $this->length;
42
+        return is_int($offset) && 0 <= $offset && $offset < $this->length;
43 43
     }
44 44
 
45 45
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function offsetSet($offset, $value)
61 61
     {
62
-        if (!is_int($value) || $value <0 || $value > 255) {
62
+        if (!is_int($value) || $value < 0 || $value > 255) {
63 63
             throw new \InvalidArgumentException(sprintf('%s is an invalid value for a ByteArray', $value));
64 64
         }
65 65
         if ($this->readonly) {
Please login to merge, or discard this patch.
src/Interfaces/Values/IDateTimeValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,5 +19,5 @@
 block discarded – undo
19 19
     /**
20 20
      * @return DateTime gets the definition of this datetime value
21 21
      */
22
-    public function getValue(): DateTime ;
22
+    public function getValue(): DateTime;
23 23
 }
Please login to merge, or discard this patch.
src/Interfaces/Values/IFloatingValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
     /**
18 18
      * @return float gets the definition of this floating   value
19 19
      */
20
-    public function getValue(): float ;
20
+    public function getValue(): float;
21 21
 }
Please login to merge, or discard this patch.
src/Interfaces/Values/IBooleanValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
     /**
18 18
      * @return bool gets a value indicating whether the value of this boolean value is true or false
19 19
      */
20
-    public function getValue(): bool ;
20
+    public function getValue(): bool;
21 21
 }
Please login to merge, or discard this patch.