Passed
Branch master (0a9b8d)
by Simon
02:40
created
Category
src/Type/TypeEquality.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
  */
33 33
 interface TypeEquality
34 34
 {
35
-    const IGNORE_OBJECT_TYPE = 0b0001;
36
-    const IGNORE_OBJECT_IDENTITY = 0b0010;
35
+    const IGNORE_OBJECT_TYPE=0b0001;
36
+    const IGNORE_OBJECT_IDENTITY=0b0010;
37 37
 
38 38
     /**
39 39
      * Compare two {@link Type} objects
@@ -49,5 +49,5 @@  discard block
 block discarded – undo
49 49
      * @return bool - Returns true if objects are equal
50 50
      * @throws InvalidArgumentException - Thrown if objects cannot be compared
51 51
      */
52
-    public function equals(Type $object, int $flags = self::IGNORE_OBJECT_IDENTITY): bool;
52
+    public function equals(Type $object, int $flags=self::IGNORE_OBJECT_IDENTITY): bool;
53 53
 }
Please login to merge, or discard this patch.
src/Exceptions/ImmutableMethodCallException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,5 +23,5 @@
 block discarded – undo
23 23
     /**
24 24
      * @var string
25 25
      */
26
-    protected $message = 'Cannot change property of immutable object';
26
+    protected $message='Cannot change property of immutable object';
27 27
 }
Please login to merge, or discard this patch.
src/Helpers/TypeEqualityHelperMethods.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @return bool - Returns true if types are equal
41 41
      * @throws RuntimeException - if $this is not an instance of {@link Type}
42 42
      */
43
-    final private function isSameTypeAs(Type $type, int $flags = null): bool
43
+    final private function isSameTypeAs(Type $type, int $flags=null): bool
44 44
     {
45 45
         if ($flags & TypeEquality::IGNORE_OBJECT_TYPE) {
46 46
             return true; // Ignore this check and just return true
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param int|null $flags - optional flags enable or disable certain checks
70 70
      * @return bool - Returns true if identities are equal
71 71
      */
72
-    final private function isSameObjectAs(Type $type, int $flags = null): bool
72
+    final private function isSameObjectAs(Type $type, int $flags=null): bool
73 73
     {
74 74
         if ($flags & TypeEquality::IGNORE_OBJECT_IDENTITY) {
75 75
             return true;
Please login to merge, or discard this patch.