Completed
Push — master ( ad1530...714f57 )
by Marco
13s queued 12s
created
src/Dont/Exception/NonCloneableObject.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
     public static function fromAttemptedCloning($object) : self
29 29
     {
30
-        if (! is_object($object)) {
30
+        if (!is_object($object)) {
31 31
             throw TypeError::fromNonObject($object);
32 32
         }
33 33
 
Please login to merge, or discard this patch.
src/Dont/Exception/NonSerialisableObject.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
     public static function fromAttemptedSerialisation($object) : self
29 29
     {
30
-        if (! is_object($object)) {
30
+        if (!is_object($object)) {
31 31
             throw TypeError::fromNonObject($object);
32 32
         }
33 33
 
Please login to merge, or discard this patch.
src/Dont/Exception/NonDeserialisableObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public static function fromAttemptedDeSerialisation($object) : self
22 22
     {
23
-        if (! is_object($object)) {
23
+        if (!is_object($object)) {
24 24
             throw TypeError::fromNonObject($object);
25 25
         }
26 26
 
Please login to merge, or discard this patch.
tests/DontTest/Exception/TypeErrorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         self::assertInstanceOf(ExceptionInterface::class, $exception);
27 27
 
28 28
         self::assertSame(
29
-            'Expected object to be given, found ' . gettype($nonObject) . ' instead',
29
+            'Expected object to be given, found '.gettype($nonObject).' instead',
30 30
             $exception->getMessage()
31 31
         );
32 32
     }
Please login to merge, or discard this patch.
tests/DontTest/Exception/NonDeserialisableObjectTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
         self::assertInstanceOf(LogicException::class, $exception);
29 29
         self::assertInstanceOf(ExceptionInterface::class, $exception);
30 30
 
31
-        $expected = 'The given object ' . get_class($object)
32
-            . '#' . spl_object_hash($object) . ' is not designed to be deserialised, '
31
+        $expected = 'The given object '.get_class($object)
32
+            . '#'.spl_object_hash($object).' is not designed to be deserialised, '
33 33
             . "yet deserialisation was attempted.\n\n"
34
-            . 'This error is raised because the author of ' . get_class($object)
34
+            . 'This error is raised because the author of '.get_class($object)
35 35
             . " didn't design it to be deserialisable, nor can\n"
36 36
             . "guarantee that it will function correctly after deserialisation, nor can guarantee that all\n"
37 37
             . "its internal components are deserialisable.\n\n"
38
-            . 'Please do not use unserialize() to produce ' . get_class($object) . ' instances.';
38
+            . 'Please do not use unserialize() to produce '.get_class($object).' instances.';
39 39
 
40 40
         self::assertSame($expected, $exception->getMessage());
41 41
     }
Please login to merge, or discard this patch.
tests/DontTest/Exception/NonSerialisableObjectTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
         self::assertInstanceOf(LogicException::class, $exception);
29 29
         self::assertInstanceOf(ExceptionInterface::class, $exception);
30 30
 
31
-        $expected = 'The given object ' . get_class($object)
32
-            . '#' . spl_object_hash($object) . " is not designed to be serialised, yet serialisation was attempted.\n\n"
33
-            . 'This error is raised because the author of ' . get_class($object)
31
+        $expected = 'The given object '.get_class($object)
32
+            . '#'.spl_object_hash($object)." is not designed to be serialised, yet serialisation was attempted.\n\n"
33
+            . 'This error is raised because the author of '.get_class($object)
34 34
             . " didn't design it to be serialisable, nor can\n"
35 35
             . "guarantee that it will function correctly after serialisation, nor can guarantee that all\n"
36 36
             . "its internal components are serialisable.\n\n"
37
-            . 'Please do not serialise ' . get_class($object) . ' instances.';
37
+            . 'Please do not serialise '.get_class($object).' instances.';
38 38
 
39 39
         self::assertSame($expected, $exception->getMessage());
40 40
     }
Please login to merge, or discard this patch.
tests/DontTest/Exception/NonCloneableObjectTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
         self::assertInstanceOf(LogicException::class, $exception);
29 29
         self::assertInstanceOf(ExceptionInterface::class, $exception);
30 30
 
31
-        $expected = 'The given object ' . get_class($object)
32
-            . '#' . spl_object_hash($object) . " is not designed to be cloned, yet cloning was attempted.\n\n"
33
-            . 'This error is raised because the author of ' . get_class($object)
31
+        $expected = 'The given object '.get_class($object)
32
+            . '#'.spl_object_hash($object)." is not designed to be cloned, yet cloning was attempted.\n\n"
33
+            . 'This error is raised because the author of '.get_class($object)
34 34
             . " didn't design it to be cloneable, nor can\n"
35 35
             . "guarantee that it will function correctly after cloning, nor can guarantee that all\n"
36 36
             . "its internal components are cloneable.\n\n"
37
-            . 'Please do not clone ' . get_class($object) . ' instances.';
37
+            . 'Please do not clone '.get_class($object).' instances.';
38 38
 
39 39
         self::assertSame($expected, $exception->getMessage());
40 40
     }
Please login to merge, or discard this patch.
src/Dont/Exception/NonGettableObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public static function fromAttemptedGet($object, string $property) : self
24 24
     {
25
-        if (! is_object($object)) {
25
+        if (!is_object($object)) {
26 26
             throw TypeError::fromNonObject($object);
27 27
         }
28 28
 
Please login to merge, or discard this patch.
src/Dont/Exception/NonSettableObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public static function fromAttemptedSet($object, string $property) : self
24 24
     {
25
-        if (! is_object($object)) {
25
+        if (!is_object($object)) {
26 26
             throw TypeError::fromNonObject($object);
27 27
         }
28 28
 
Please login to merge, or discard this patch.