Completed
Push — master ( 575f81...c32bd7 )
by Hannes
02:51
created
src/Command/TestCommand.php 2 patches
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.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
26 26
                 ['README.md']
27 27
             )
28 28
             ->addOption(
29
-               'format',
30
-               'f',
31
-               InputOption::VALUE_REQUIRED,
32
-               'Force input file format'
29
+                'format',
30
+                'f',
31
+                InputOption::VALUE_REQUIRED,
32
+                'Force input file format'
33 33
             )
34 34
         ;
35 35
     }
Please login to merge, or discard this patch.
src/ExampleFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * Check if line is a ignore anntotation
80 80
      *
81 81
      * @param  string $line
82
-     * @return boolean
82
+     * @return boolean|null
83 83
      */
84 84
     private function isIgnoreAnnotation($line)
85 85
     {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      * Parse expectation from line
93 93
      *
94 94
      * @param  string $line
95
-     * @return Expectation|null
95
+     * @return Expectation\ExpectationInterface
96 96
      */
97 97
     private function readExpectation($line)
98 98
     {
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
             case 'object':
32 32
             case 'resource':
33 33
             case 'null':
34
-                $this->strategy = function (Result $result) use ($type) {
34
+                $this->strategy = function(Result $result) use ($type) {
35 35
                     return 0 == strcasecmp(gettype($result->getReturnValue()), $type);
36 36
                 };
37 37
                 break;
38 38
             default:
39
-                $this->strategy = function (Result $result) use ($type) {
39
+                $this->strategy = function(Result $result) use ($type) {
40 40
                     return $result->getReturnValue() instanceof $type;
41 41
                 };
42 42
                 break;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $strategy = $this->strategy;
56 56
         if (!$strategy($result)) {
57 57
             throw new UnexpectedValueException(
58
-                "Failed asserting return type, found: " . gettype($result->getReturnValue())
58
+                "Failed asserting return type, found: ".gettype($result->getReturnValue())
59 59
             );
60 60
         }
61 61
     }
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
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
         if (!$exception instanceof $this->exceptionClass) {
44 44
             throw new UnexpectedValueException(
45
-                "Failed asserting that exception {$this->exceptionClass} is thrown, found: " . get_class($exception)
45
+                "Failed asserting that exception {$this->exceptionClass} is thrown, found: ".get_class($exception)
46 46
             );
47 47
         }
48 48
     }
Please login to merge, or discard this patch.