Completed
Pull Request — master (#7)
by Jack
02:25
created
src/Formatter/Tags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         return implode(' ',
30 30
             array_map(
31
-                function ($tag) {
31
+                function($tag) {
32 32
                     return '@' . trim($tag);
33 33
                 },
34 34
                 $tags
Please login to merge, or discard this patch.
src/Formatter/Example.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function format(OutlineNode $scenario)
35 35
     {
36
-        if (! $scenario->hasExamples()) {
36
+        if (!$scenario->hasExamples()) {
37 37
             return;
38 38
         }
39 39
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                     $this->indent(self::INDENTATION * 2) . rtrim($scenario->getExampleTable()->getKeyword()) . ':' . PHP_EOL,
45 45
                 ],
46 46
                 array_map(
47
-                    function ($arguments) {
47
+                    function($arguments) {
48 48
                         return $this->indent(self::INDENTATION * 2 + 2) . trim($arguments) . PHP_EOL;
49 49
                     },
50 50
                     explode(PHP_EOL, $scenario->getExampleTable()->getTableAsString())
Please login to merge, or discard this patch.
src/Formatter/FeatureDescription.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
     {
35 35
         // TODO: get keyword here, can't say `feature` hardcoded
36 36
         $shortDesc   = 'Feature: ' . $shortDescription . PHP_EOL;
37
-        $longDesc    =  implode(
37
+        $longDesc    = implode(
38 38
             array_map(
39
-                function ($descriptionLine) {
39
+                function($descriptionLine) {
40 40
                     return $this->indent() . trim($descriptionLine) . PHP_EOL;
41 41
                 },
42 42
                 $descriptionLines
Please login to merge, or discard this patch.
src/Formatter/Scenario.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         return rtrim(implode(
48 48
             array_map(
49
-                function (ScenarioInterface $scenario) {
49
+                function(ScenarioInterface $scenario) {
50 50
                     return $this->getTags($scenario)
51 51
                     . $this->getScenarioDescription($scenario)
52 52
                     . $this->getSteps($scenario)
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     private function getTags(ScenarioInterface $scenario)
61 61
     {
62
-        if (! $scenario->hasTags()) {
62
+        if (!$scenario->hasTags()) {
63 63
             return $this->indent();
64 64
         }
65 65
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     private function getSteps(ScenarioInterface $scenario)
88 88
     {
89
-        if (! $scenario->hasSteps()) {
89
+        if (!$scenario->hasSteps()) {
90 90
             return;
91 91
         }
92 92
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
     private function getExamples($scenario)
99 99
     {
100
-        if (! $scenario instanceof OutlineNode) {
100
+        if (!$scenario instanceof OutlineNode) {
101 101
             return;
102 102
         }
103 103
 
Please login to merge, or discard this patch.
src/Formatter/Step.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         return implode(
54 54
             array_map(
55
-                function (StepNode $step) {
55
+                function(StepNode $step) {
56 56
                     return $this->getStepText($step) . $this->getArguments($step);
57 57
                 },
58 58
                 $steps
@@ -99,17 +99,17 @@  discard block
 block discarded – undo
99 99
      */
100 100
     private function getArguments(StepNode $step)
101 101
     {
102
-        if (! $step->hasArguments()) {
102
+        if (!$step->hasArguments()) {
103 103
             return;
104 104
         }
105 105
 
106 106
         return implode(
107 107
             array_map(
108
-                function (ArgumentInterface $argument) {
108
+                function(ArgumentInterface $argument) {
109 109
                     if (in_array($argument->getNodeType(), ['Table', 'ExampleTable'])) {
110 110
                         return implode(
111 111
                             array_map(
112
-                                function ($arguments) {
112
+                                function($arguments) {
113 113
                                     return $this->indent(self::INDENTATION * 2 + 4) . trim($arguments) . PHP_EOL;
114 114
                                 },
115 115
                                 explode(PHP_EOL, $argument->getTableAsString())
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                         return $this->encapsulateAsPyString(
122 122
                             implode(
123 123
                                 array_map(
124
-                                    function ($arguments) {
124
+                                    function($arguments) {
125 125
                                         return rtrim($this->indent(self::INDENTATION * 2 + 2) . trim($arguments)) . PHP_EOL;
126 126
                                     },
127 127
                                     $argument->getStrings()
Please login to merge, or discard this patch.
src/Command/CheckGherkinCodeStyle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
             if ($formatted !== $contentWithoutComments) {
112 112
 
113
-                if (! defined('FAILED')) {
113
+                if (!defined('FAILED')) {
114 114
                     define('FAILED', true);
115 115
                 }
116 116
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             implode(
140 140
                 array_filter(
141 141
                     array_map(
142
-                        function ($line) {
142
+                        function($line) {
143 143
                             if (0 === mb_strpos(ltrim($line), '#')) {
144 144
                                 return '';
145 145
                             }
Please login to merge, or discard this patch.