Completed
Push — master ( 86cc7b...35a93c )
by Marco
01:44
created
tests/DontTest/Exception/NonCallableObjectTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
         self::assertInstanceOf(LogicException::class, $exception);
30 30
         self::assertInstanceOf(ExceptionInterface::class, $exception);
31 31
 
32
-        $expected = 'The given object ' . get_class($object)
33
-            . '#' . spl_object_hash($object) . " is not designed to allow any undefined or inaccessible methods to be called.\n\n"
34
-            . 'You tried to call a method called "methodName".' . "\n\n"
32
+        $expected = 'The given object '.get_class($object)
33
+            . '#'.spl_object_hash($object)." is not designed to allow any undefined or inaccessible methods to be called.\n\n"
34
+            . 'You tried to call a method called "methodName".'."\n\n"
35 35
             . 'Perhaps you made a typo in the method name, or tried to call an inaccessible method?';
36 36
 
37 37
         self::assertSame($expected, $exception->getMessage());
Please login to merge, or discard this patch.
src/Dont/Exception/NonCallableObject.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 fromAttemptedCall($object, string $method) : 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.
tests/DontTest/DontCallTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
         $this->expectException(NonCallableObject::class);
22 22
 
23
-         $object->undefinedMethod();
23
+            $object->undefinedMethod();
24 24
     }
25 25
 
26 26
     public function testCallPreventionIsFinal() : void
Please login to merge, or discard this patch.
tests/DontTest/Exception/NonStaticCallableClassTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
         self::assertInstanceOf(LogicException::class, $exception);
27 27
         self::assertInstanceOf(ExceptionInterface::class, $exception);
28 28
 
29
-        $expected = 'The given class ' . $class
29
+        $expected = 'The given class '.$class
30 30
             . " is not designed to allow any undefined or inaccessible static methods to be called.\n\n"
31
-            . 'You tried to call a static method called "methodName".' . "\n\n"
31
+            . 'You tried to call a static method called "methodName".'."\n\n"
32 32
             . 'Perhaps you made a typo in the method name, or tried to call an inaccessible method?';
33 33
 
34 34
         self::assertSame($expected, $exception->getMessage());
Please login to merge, or discard this patch.