Completed
Push — master ( e289fc...cf6918 )
by Marco
7s
created
tests/DontTest/Exception/NonCloneableObjectTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace DontTest\Exception;
6 6
 
@@ -28,13 +28,13 @@  discard block
 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.
tests/DontTest/DontCloneTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Dont;
6 6
 
Please login to merge, or discard this patch.
tests/DontTestAsset/NonCloneable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Dont;
6 6
 
Please login to merge, or discard this patch.
src/Dont/DontClone.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Dont;
6 6
 
Please login to merge, or discard this patch.
src/Dont/Exception/NonCloneableObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Dont\Exception;
6 6
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public static function fromAttemptedSerialisation($object) : self
19 19
     {
20
-        if (! is_object($object)) {
20
+        if (!is_object($object)) {
21 21
             throw TypeError::fromNonObject($object);
22 22
         }
23 23
 
Please login to merge, or discard this patch.