@@ -425,7 +425,7 @@ |
||
425 | 425 | */ |
426 | 426 | public function collectData($attributes = null, $options = []) |
427 | 427 | { |
428 | - $data = []; |
|
428 | + $data = []; |
|
429 | 429 | foreach ($this->models as $model) { |
430 | 430 | /* @var $model ActiveRecord */ |
431 | 431 | $key = $model->getPrimaryKey(); |
@@ -100,7 +100,7 @@ |
||
100 | 100 | if (!empty($traces)) { |
101 | 101 | $traceString .= Html::ul($traces, [ |
102 | 102 | 'class' => 'trace', |
103 | - 'item' => function ($trace) { |
|
103 | + 'item' => function($trace) { |
|
104 | 104 | return "<li>{$trace['file']}({$trace['line']})</li>"; |
105 | 105 | }, |
106 | 106 | ]); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | 'config' => [ |
48 | 48 | 'base_uri' => $this->site, |
49 | 49 | ], |
50 | - 'errorChecker' => function ($res) { |
|
50 | + 'errorChecker' => function($res) { |
|
51 | 51 | return null; |
52 | 52 | }, |
53 | 53 | ]); |
@@ -61,15 +61,15 @@ discard block |
||
61 | 61 | { |
62 | 62 | $result = $this->object->get($this->url, [], $this->body, false); |
63 | 63 | $this->assertSame($this->result, $result); |
64 | - $this->assertSame('request', $this->mock->name); |
|
65 | - $this->assertSame('GET', $this->mock->args[0]); |
|
66 | - $this->assertSame($this->url, $this->mock->args[1]); |
|
64 | + $this->assertSame('request', $this->mock->name); |
|
65 | + $this->assertSame('GET', $this->mock->args[0]); |
|
66 | + $this->assertSame($this->url, $this->mock->args[1]); |
|
67 | 67 | $this->assertSame($this->body, $this->mock->args[2]['form_params']); |
68 | 68 | } |
69 | 69 | |
70 | 70 | public function testErrorChecker() |
71 | 71 | { |
72 | - $this->object->setErrorChecker(function ($res) { return $res; }); |
|
72 | + $this->object->setErrorChecker(function($res) { return $res; }); |
|
73 | 73 | $this->setExpectedException('hiqdev\hiart\ErrorResponseException', $this->result); |
74 | 74 | $this->object->get($this->url, [], $this->body, false); |
75 | 75 | } |