@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function register(Container $pimple) |
26 | 26 | { |
27 | - $pimple['apiAlias'] = function () { |
|
27 | + $pimple['apiAlias'] = function() { |
|
28 | 28 | return new ApiAlias(); |
29 | 29 | }; |
30 | 30 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $t = $this->timCloud(); |
34 | 34 | |
35 | - $this->assertTrue(file_exists($t['path.cert'] . '/cacert.pem')); |
|
35 | + $this->assertTrue(file_exists($t['path.cert'].'/cacert.pem')); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function testFormatKey() |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | public function testRequestApiSuccess() |
186 | 186 | { |
187 | 187 | $t = $this->timCloud(); |
188 | - $t->offsetSet('im', function () { |
|
188 | + $t->offsetSet('im', function() { |
|
189 | 189 | $m = Mockery::mock('im'); |
190 | 190 | $m->shouldReceive('handle')->withAnyArgs()->andReturn(new ResponseBag([ |
191 | 191 | 'ActionStatus' => 'OK', |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | public function testRequestApiError() |
213 | 213 | { |
214 | 214 | $t = $this->timCloud([ |
215 | - 'im' => function () { |
|
215 | + 'im' => function() { |
|
216 | 216 | $m = Mockery::mock(IMCloud::class); |
217 | 217 | $return = new ResponseBag([ |
218 | 218 | 'ErrorCode' => 80002, |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | 'cli_on' => false |
254 | 254 | ] |
255 | 255 | ], array_merge([ |
256 | - 'TLSSig' => function () { |
|
256 | + 'TLSSig' => function() { |
|
257 | 257 | $m = Mockery::mock('TLSSig'); |
258 | 258 | $m->shouldReceive('genSig')->withAnyArgs()->andReturn('test usersig'); |
259 | 259 | return $m; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $app = new ServiceContainer(); |
74 | 74 | |
75 | 75 | $this->assertSame(PROJECT_ROOT, $app->basePath()); |
76 | - $this->assertSame(PROJECT_ROOT . DIRECTORY_SEPARATOR . 'Cert', $app->basePath('Cert')); |
|
76 | + $this->assertSame(PROJECT_ROOT.DIRECTORY_SEPARATOR.'Cert', $app->basePath('Cert')); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | { |
100 | 100 | public function register(Container $pimple) |
101 | 101 | { |
102 | - $pimple['foo'] = function () { |
|
102 | + $pimple['foo'] = function() { |
|
103 | 103 | return 'foo'; |
104 | 104 | }; |
105 | 105 | } |