@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $request = m::mock(Request::class)->makePartial(); |
40 | 40 | $request->shouldReceive('host')->andReturn($host); |
41 | 41 | $request->shouldReceive('pathinfo')->andReturn($path); |
42 | - $request->shouldReceive('url')->andReturn('/' . $path); |
|
42 | + $request->shouldReceive('url')->andReturn('/'.$path); |
|
43 | 43 | $request->shouldReceive('subDomain')->andReturn(''); |
44 | 44 | $request->shouldReceive('panDomain')->andReturn(''); |
45 | 45 | $request->shouldReceive('method')->andReturn(strtoupper($method)); |
@@ -48,16 +48,16 @@ discard block |
||
48 | 48 | |
49 | 49 | public function testSimpleRequest() |
50 | 50 | { |
51 | - $this->route->get('foo', function () { |
|
51 | + $this->route->get('foo', function() { |
|
52 | 52 | return 'get-foo'; |
53 | 53 | }); |
54 | 54 | |
55 | - $this->route->put('foo', function () { |
|
55 | + $this->route->put('foo', function() { |
|
56 | 56 | return 'put-foo'; |
57 | 57 | }); |
58 | 58 | |
59 | - $this->route->group(function () { |
|
60 | - $this->route->post('foo', function () { |
|
59 | + $this->route->group(function() { |
|
60 | + $this->route->post('foo', function() { |
|
61 | 61 | return 'post-foo'; |
62 | 62 | }); |
63 | 63 | }); |
@@ -75,16 +75,16 @@ discard block |
||
75 | 75 | |
76 | 76 | public function testOptionsRequest() |
77 | 77 | { |
78 | - $this->route->get('foo', function () { |
|
78 | + $this->route->get('foo', function() { |
|
79 | 79 | return 'get-foo'; |
80 | 80 | }); |
81 | 81 | |
82 | - $this->route->put('foo', function () { |
|
82 | + $this->route->put('foo', function() { |
|
83 | 83 | return 'put-foo'; |
84 | 84 | }); |
85 | 85 | |
86 | - $this->route->group(function () { |
|
87 | - $this->route->post('foo', function () { |
|
86 | + $this->route->group(function() { |
|
87 | + $this->route->post('foo', function() { |
|
88 | 88 | return 'post-foo'; |
89 | 89 | }); |
90 | 90 | }); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | public function testAllowCrossDomain() |
111 | 111 | { |
112 | - $this->route->get('foo', function () { |
|
112 | + $this->route->get('foo', function() { |
|
113 | 113 | return 'get-foo'; |
114 | 114 | })->allowCrossDomain(['some' => 'bar']); |
115 | 115 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | protected function createMiddleware($times = 1) |
163 | 163 | { |
164 | 164 | $middleware = m::mock(Str::random(5)); |
165 | - $middleware->shouldReceive('handle')->times($times)->andReturnUsing(function ($request, Closure $next) { |
|
165 | + $middleware->shouldReceive('handle')->times($times)->andReturnUsing(function($request, Closure $next) { |
|
166 | 166 | return $next($request); |
167 | 167 | }); |
168 | 168 | $this->app->shouldReceive('make')->with($middleware->mockery_getName())->andReturn($middleware); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $controller = m::mock(FooClass::class); |
178 | 178 | |
179 | 179 | $controller->middleware = [ |
180 | - $this->createMiddleware()->mockery_getName() . ":params1:params2", |
|
180 | + $this->createMiddleware()->mockery_getName().":params1:params2", |
|
181 | 181 | $this->createMiddleware(0)->mockery_getName() => ['except' => 'bar'], |
182 | 182 | $this->createMiddleware()->mockery_getName() => ['only' => 'bar'], |
183 | 183 | ]; |