@@ -12,17 +12,17 @@ discard block |
||
12 | 12 | |
13 | 13 | public function expectTo($prediction) |
14 | 14 | { |
15 | - return $this->comment('I expect to ' . $prediction); |
|
15 | + return $this->comment('I expect to '.$prediction); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | public function expect($prediction) |
19 | 19 | { |
20 | - return $this->comment('I expect ' . $prediction); |
|
20 | + return $this->comment('I expect '.$prediction); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function amGoingTo($argumentation) |
24 | 24 | { |
25 | - return $this->comment('I am going to ' . $argumentation); |
|
25 | + return $this->comment('I am going to '.$argumentation); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function am($role) |
@@ -30,15 +30,15 @@ discard block |
||
30 | 30 | $role = trim($role); |
31 | 31 | |
32 | 32 | if (stripos('aeiou', $role[0]) !== false) { |
33 | - return $this->comment('As an ' . $role); |
|
33 | + return $this->comment('As an '.$role); |
|
34 | 34 | } |
35 | 35 | |
36 | - return $this->comment('As a ' . $role); |
|
36 | + return $this->comment('As a '.$role); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | public function lookForwardTo($achieveValue) |
40 | 40 | { |
41 | - return $this->comment('So that I ' . $achieveValue); |
|
41 | + return $this->comment('So that I '.$achieveValue); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | public function comment($description) |
@@ -47,7 +47,7 @@ |
||
47 | 47 | if ((strpos($path, '/') === 0) || (strpos($path, ':') === 1)) { // absolute path |
48 | 48 | return $path; |
49 | 49 | } |
50 | - return $this->logDir . $path; |
|
50 | + return $this->logDir.$path; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | public function printResult(PrintResultEvent $e) |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if (!$this->isEnabled()) { |
104 | 104 | return; |
105 | 105 | } |
106 | - $coverageFile = Configuration::outputDir() . 'c3tmp/codecoverage.serialized'; |
|
106 | + $coverageFile = Configuration::outputDir().'c3tmp/codecoverage.serialized'; |
|
107 | 107 | |
108 | 108 | $retries = 5; |
109 | 109 | while (!file_exists($coverageFile) && --$retries >= 0) { |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | if (!file_exists($coverageFile)) { |
114 | - if (file_exists(Configuration::outputDir() . 'c3tmp/error.txt')) { |
|
115 | - throw new \RuntimeException(file_get_contents(Configuration::outputDir() . 'c3tmp/error.txt')); |
|
114 | + if (file_exists(Configuration::outputDir().'c3tmp/error.txt')) { |
|
115 | + throw new \RuntimeException(file_get_contents(Configuration::outputDir().'c3tmp/error.txt')); |
|
116 | 116 | } |
117 | 117 | return; |
118 | 118 | } |
@@ -130,16 +130,16 @@ discard block |
||
130 | 130 | $this->addC3AccessHeader(self::COVERAGE_HEADER, 'remote-access'); |
131 | 131 | $context = stream_context_create($this->c3Access); |
132 | 132 | $c3Url = $this->settings['c3_url'] ? $this->settings['c3_url'] : $this->module->_getUrl(); |
133 | - $contents = file_get_contents($c3Url . '/c3/report/' . $action, false, $context); |
|
133 | + $contents = file_get_contents($c3Url.'/c3/report/'.$action, false, $context); |
|
134 | 134 | |
135 | 135 | $okHeaders = array_filter( |
136 | 136 | $http_response_header, |
137 | - function ($h) { |
|
137 | + function($h) { |
|
138 | 138 | return preg_match('~^HTTP(.*?)\s200~', $h); |
139 | 139 | } |
140 | 140 | ); |
141 | 141 | if (empty($okHeaders)) { |
142 | - throw new RemoteException("Request was not successful. See response header: " . $http_response_header[0]); |
|
142 | + throw new RemoteException("Request was not successful. See response header: ".$http_response_header[0]); |
|
143 | 143 | } |
144 | 144 | if ($contents === false) { |
145 | 145 | $this->getRemoteError($http_response_header); |
@@ -155,7 +155,7 @@ |
||
155 | 155 | |
156 | 156 | $requestBody = xmlrpc_encode_request($methodName, array_values($parameters)); |
157 | 157 | |
158 | - $this->debugSection('Request', $url . PHP_EOL . $requestBody); |
|
158 | + $this->debugSection('Request', $url.PHP_EOL.$requestBody); |
|
159 | 159 | $this->client->request('POST', $url, [], [], [], $requestBody); |
160 | 160 | |
161 | 161 | $this->response = $this->client->getInternalResponse()->getContent(); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | if (!file_exists($this->config['appPath'])) { |
95 | 95 | throw new ModuleConfigException( |
96 | 96 | __CLASS__, |
97 | - "Couldn't load application config file {$this->config['appPath']}\n" . |
|
97 | + "Couldn't load application config file {$this->config['appPath']}\n". |
|
98 | 98 | "Please provide application bootstrap file configured for testing" |
99 | 99 | ); |
100 | 100 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | if (!file_exists($this->appSettings['config'])) { |
109 | 109 | throw new ModuleConfigException( |
110 | 110 | __CLASS__, |
111 | - "Couldn't load configuration file from Yii app file: {$this->appSettings['config']}\n" . |
|
111 | + "Couldn't load configuration file from Yii app file: {$this->appSettings['config']}\n". |
|
112 | 112 | "Please provide valid 'config' parameter" |
113 | 113 | ); |
114 | 114 | } |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | foreach ($parameters as $name => $value) { |
191 | 191 | $template = str_replace("#$name#", $value, $template); |
192 | 192 | } |
193 | - return '/^' . $template . '$/u'; |
|
193 | + return '/^'.$template.'$/u'; |
|
194 | 194 | } |
195 | 195 | |
196 | 196 |
@@ -26,11 +26,11 @@ |
||
26 | 26 | $argumentBackup = $this->arguments; |
27 | 27 | $lastArgAsString = ''; |
28 | 28 | $lastArg = end($this->arguments); |
29 | - if (is_string($lastArg) && strpos($lastArg, "\n") !== false) { |
|
30 | - $lastArgAsString = "\r\n " . str_replace("\n", "\n ", $lastArg); |
|
29 | + if (is_string($lastArg) && strpos($lastArg, "\n") !== false) { |
|
30 | + $lastArgAsString = "\r\n ".str_replace("\n", "\n ", $lastArg); |
|
31 | 31 | array_pop($this->arguments); |
32 | 32 | } |
33 | - $result = parent::getArgumentsAsString($maxLength) . $lastArgAsString; |
|
33 | + $result = parent::getArgumentsAsString($maxLength).$lastArgAsString; |
|
34 | 34 | $this->arguments = $argumentBackup; |
35 | 35 | return $result; |
36 | 36 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | if (count($callable) < 2) { |
51 | 51 | continue; |
52 | 52 | } |
53 | - $method = $callable[0] . '::' . $callable[1]; |
|
53 | + $method = $callable[0].'::'.$callable[1]; |
|
54 | 54 | $table->addRow([$step, $method]); |
55 | 55 | } |
56 | 56 | $table->render(); |
@@ -33,13 +33,13 @@ |
||
33 | 33 | public function produce() |
34 | 34 | { |
35 | 35 | return (new Template($this->template)) |
36 | - ->place('namespace', $this->getNamespaceHeader($this->namespace . '\\Helper\\' . $this->name)) |
|
36 | + ->place('namespace', $this->getNamespaceHeader($this->namespace.'\\Helper\\'.$this->name)) |
|
37 | 37 | ->place('name', $this->getShortClassName($this->name)) |
38 | 38 | ->produce(); |
39 | 39 | } |
40 | 40 | |
41 | 41 | public function getHelperName() |
42 | 42 | { |
43 | - return rtrim('\\' . $this->namespace, '\\') . '\\Helper\\' . $this->name; |
|
43 | + return rtrim('\\'.$this->namespace, '\\').'\\Helper\\'.$this->name; |
|
44 | 44 | } |
45 | 45 | } |
@@ -59,13 +59,13 @@ discard block |
||
59 | 59 | $this->validateStep($step); |
60 | 60 | } |
61 | 61 | if ($this->getMetadata()->getIncomplete()) { |
62 | - $this->getMetadata()->setIncomplete($this->getMetadata()->getIncomplete() . "\nRun gherkin:snippets to define missing steps"); |
|
62 | + $this->getMetadata()->setIncomplete($this->getMetadata()->getIncomplete()."\nRun gherkin:snippets to define missing steps"); |
|
63 | 63 | } |
64 | 64 | } |
65 | 65 | |
66 | 66 | public function getSignature() |
67 | 67 | { |
68 | - return basename($this->getFileName(), '.feature') . ':' . $this->getFeature(); |
|
68 | + return basename($this->getFileName(), '.feature').':'.$this->getFeature(); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | public function test() |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | public function toString() |
146 | 146 | { |
147 | - return $this->featureNode->getTitle() . ': ' . $this->getFeature(); |
|
147 | + return $this->featureNode->getTitle().': '.$this->getFeature(); |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | public function getFeature() |