Completed
Push — master ( f916e0...664b4f )
by Hannes
02:47
created
src/Command/TestCommand.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
             ->setDescription('Test examples in readme files')
21 21
             ->addArgument(
22 22
                 'filename',
23
-                InputArgument::OPTIONAL|InputArgument::IS_ARRAY,
23
+                InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
24 24
                 'Name of file to test',
25 25
                 ['README.md']
26 26
             );
Please login to merge, or discard this patch.
src/Expectation/Regexp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     private function isRegexp($input)
48 48
     {
49
-        set_error_handler(function () {});
49
+        set_error_handler(function() {});
50 50
         $result = preg_match($input, '');
51 51
         restore_error_handler();
52 52
         return $result !== false;
Please login to merge, or discard this patch.
src/Expectation/ReturnExpectation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             return (string)$value;
50 50
         } elseif (is_null($value)) {
51 51
             return '';
52
-        } elseif (is_object($value) && method_exists($value, '__toString' )) {
52
+        } elseif (is_object($value) && method_exists($value, '__toString')) {
53 53
             return (string)$value;
54 54
         }
55 55
 
Please login to merge, or discard this patch.
src/Expectation/ReturnTypeExpectation.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
             case 'object':
31 31
             case 'resource':
32 32
             case 'null':
33
-                $this->strategy = function (Result $result) use ($type) {
33
+                $this->strategy = function(Result $result) use ($type) {
34 34
                     return 0 == strcasecmp(gettype($result->getReturnValue()), $type);
35 35
                 };
36 36
                 break;
37 37
             default:
38
-                $this->strategy = function (Result $result) use ($type) {
38
+                $this->strategy = function(Result $result) use ($type) {
39 39
                     return $result->getReturnValue() instanceof $type;
40 40
                 };
41 41
                 break;
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
 
52 52
         if (!$strategy($result)) {
53 53
             return new ReturnObj\Failure(
54
-                "Failed asserting return type, found: " . gettype($result->getReturnValue())
54
+                "Failed asserting return type, found: ".gettype($result->getReturnValue())
55 55
             );
56 56
         }
57 57
 
58 58
         return new ReturnObj\Success(
59
-            "Asserted return type " . gettype($result->getReturnValue())
59
+            "Asserted return type ".gettype($result->getReturnValue())
60 60
         );
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
src/Expectation/ExceptionExpectation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
         if (!$exception instanceof $this->exceptionClass) {
39 39
             return new ReturnObj\Failure(
40
-                "Failed asserting that exception {$this->exceptionClass} was thrown, found: " . get_class($exception)
40
+                "Failed asserting that exception {$this->exceptionClass} was thrown, found: ".get_class($exception)
41 41
             );
42 42
         }
43 43
 
Please login to merge, or discard this patch.