Test Failed
Push — master ( 82a449...816bff )
by Hannes
02:14
created
src/Expectation/ReturnTypeExpectation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
             case 'object':
33 33
             case 'resource':
34 34
             case 'null':
35
-                $this->strategy = function (Result $result) use ($type) {
35
+                $this->strategy = function(Result $result) use ($type) {
36 36
                     return 0 == strcasecmp(gettype($result->getReturnValue()), $type);
37 37
                 };
38 38
                 break;
39 39
             default:
40
-                $this->strategy = function (Result $result) use ($type) {
40
+                $this->strategy = function(Result $result) use ($type) {
41 41
                     return $result->getReturnValue() instanceof $type;
42 42
                 };
43 43
                 break;
Please login to merge, or discard this patch.
features/bootstrap/FeatureContext.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     }
70 70
 
71 71
 
72
-   /**
72
+    /**
73 73
      * @Given the command line argument :argument
74 74
      */
75 75
     public function theCommandLineArgument($argument)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function __construct()
45 45
     {
46
-        $this->sourceDir = sys_get_temp_dir() . '/readmetester-behat-' . rand() . '/';
46
+        $this->sourceDir = sys_get_temp_dir().'/readmetester-behat-'.rand().'/';
47 47
         mkdir($this->sourceDir);
48 48
     }
49 49
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function aMarkdownFile(PyStringNode $string)
59 59
     {
60
-        file_put_contents($this->sourceDir . rand() . '.md', (string)$string);
60
+        file_put_contents($this->sourceDir.rand().'.md', (string)$string);
61 61
     }
62 62
 
63 63
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function aSourceFile($filename, PyStringNode $string)
67 67
     {
68
-        file_put_contents($this->sourceDir . $filename, (string)$string);
68
+        file_put_contents($this->sourceDir.$filename, (string)$string);
69 69
     }
70 70
 
71 71
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function iRunReadmeTester()
85 85
     {
86
-        $command = realpath('bin/readme-tester') . " test {$this->sourceDir} " . implode(' ', $this->args);
86
+        $command = realpath('bin/readme-tester')." test {$this->sourceDir} ".implode(' ', $this->args);
87 87
 
88 88
         $cwd = getcwd();
89 89
         chdir($this->sourceDir);
Please login to merge, or discard this patch.
src/SourceFileIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->filename)) as $fileInfo) {
30 30
             $basePath = realpath($this->filename);
31 31
             if (in_array(strtolower($fileInfo->getExtension()), ['md', 'mdown', 'markdown'])) {
32
-                $displayPath = rtrim($this->filename, '/') . str_replace($basePath, '', $fileInfo->getRealPath());
32
+                $displayPath = rtrim($this->filename, '/').str_replace($basePath, '', $fileInfo->getRealPath());
33 33
                 yield $displayPath => $this->readFile($fileInfo->getRealPath());
34 34
             }
35 35
         }
Please login to merge, or discard this patch.
bob_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 desc('Build parser');
41 41
 task('build_parser', ['src/Parser/Parser.php']);
42 42
 
43
-$parserFiles = fileList('*.peg')->in([__DIR__ . '/src/Parser']);
43
+$parserFiles = fileList('*.peg')->in([__DIR__.'/src/Parser']);
44 44
 
45 45
 fileTask('src/Parser/Parser.php', $parserFiles, function() {
46 46
     sh('vendor/bin/phpeg generate src/Parser/Parser.peg', null, ['failOnError' => true]);
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
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     private function isRegexp(string $input): bool
42 42
     {
43
-        set_error_handler(function () {
43
+        set_error_handler(function() {
44 44
         });
45 45
         $result = preg_match($input, '');
46 46
         restore_error_handler();
Please login to merge, or discard this patch.