@@ -63,7 +63,7 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @return mixed|string |
|
66 | + * @return string |
|
67 | 67 | */ |
68 | 68 | public function getRawData() |
69 | 69 | { |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | if (!empty($this->traces)) { |
93 | 93 | $result .= Html::ul($this->traces, [ |
94 | 94 | 'class' => 'trace', |
95 | - 'item' => function ($trace) { |
|
96 | - return '<li>' . $this->panel->getTraceLine($trace) . '</li>'; |
|
95 | + 'item' => function($trace) { |
|
96 | + return '<li>'.$this->panel->getTraceLine($trace).'</li>'; |
|
97 | 97 | }, |
98 | 98 | ]); |
99 | 99 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | { |
116 | 116 | $uri = rtrim($this->request->getFullUri(), '?'); |
117 | 117 | $sign = strpos($uri, '?') === false ? '?' : '&'; |
118 | - $newTabUrl = rtrim($uri, '&') . $sign . $this->request->getBody(); |
|
118 | + $newTabUrl = rtrim($uri, '&').$sign.$this->request->getBody(); |
|
119 | 119 | |
120 | 120 | return Html::a('to new tab', $newTabUrl, ['target' => '_blank']); |
121 | 121 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | } elseif ($this->getVersion() === '1.0') { |
72 | 72 | $requestOptions[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_0; |
73 | 73 | } else { |
74 | - throw new RequestErrorException('Request version "' . $this->getVersion() . '" is not support by cURL', $this); |
|
74 | + throw new RequestErrorException('Request version "'.$this->getVersion().'" is not support by cURL', $this); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | return ArrayHelper::merge($this->defaultOptions, $this->getDb()->config, $requestOptions, $options); |
@@ -10,8 +10,8 @@ discard block |
||
10 | 10 | |
11 | 11 | error_reporting(-1); |
12 | 12 | |
13 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
14 | -require_once __DIR__ . '/../vendor/yiisoft/yii2/Yii.php'; |
|
13 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
14 | +require_once __DIR__.'/../vendor/yiisoft/yii2/Yii.php'; |
|
15 | 15 | |
16 | 16 | /// PHPUNIT 5 <-> 6 compatibility dirty hack |
17 | 17 | foreach ([ |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | foreach ([$old => $new, $new => $old] as $one => $other) { |
22 | 22 | if (!class_exists($one) && class_exists($other)) { |
23 | 23 | $pos = strrpos($one, '\\'); |
24 | - $class = $pos === FALSE ? $one : substr($one, $pos+1); |
|
24 | + $class = $pos === FALSE ? $one : substr($one, $pos + 1); |
|
25 | 25 | $space = $pos === FALSE ? '' : substr($one, 0, $pos); |
26 | 26 | $namespace = $space ? "namespace $space;" : ''; |
27 | 27 | eval("${namespace}abstract class $class extends \\$other {};\n"); |