@@ -13,7 +13,6 @@ |
||
13 | 13 | */ |
14 | 14 | namespace Xpressengine\Database; |
15 | 15 | |
16 | -use Xpressengine\Support\Singleton; |
|
17 | 16 | use Illuminate\Database\Connection; |
18 | 17 | |
19 | 18 | /** |
@@ -14,10 +14,8 @@ |
||
14 | 14 | |
15 | 15 | namespace Xpressengine\Routing; |
16 | 16 | |
17 | -use Illuminate\Http\Request as LaravelRequest; |
|
18 | -use Illuminate\Routing\Matching\ValidatorInterface; |
|
19 | 17 | use Illuminate\Http\Request; |
20 | -use Illuminate\Routing\Route; |
|
18 | +use Illuminate\Routing\Matching\ValidatorInterface; |
|
21 | 19 | use Illuminate\Routing\Route as LaravelRoute; |
22 | 20 | |
23 | 21 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function matches(Route $route, Request $request) |
45 | 45 | { |
46 | - $path = $request->path() == '/' ? '/' : '/' . $request->path(); |
|
46 | + $path = $request->path() == '/' ? '/' : '/'.$request->path(); |
|
47 | 47 | $firstSegment = $request->segment(1); |
48 | 48 | if ($firstSegment === null) { |
49 | 49 | return true; |
@@ -13,7 +13,6 @@ |
||
13 | 13 | */ |
14 | 14 | namespace Xpressengine\Widget; |
15 | 15 | |
16 | -use Closure; |
|
17 | 16 | use Exception; |
18 | 17 | use Illuminate\Contracts\Support\Renderable; |
19 | 18 | use Illuminate\Contracts\View\Factory; |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Xpressengine\Tests\Interception; |
3 | 3 | |
4 | -use Xpressengine\Interception\Advisor; |
|
5 | 4 | use Xpressengine\Interception\AdvisorList; |
6 | 5 | |
7 | 6 | class AdvisorListTest extends \PHPUnit_Framework_TestCase |
@@ -4,9 +4,6 @@ |
||
4 | 4 | use Xpressengine\Interception\Advisor; |
5 | 5 | use Xpressengine\Interception\AdvisorCollection; |
6 | 6 | use Xpressengine\Interception\InterceptionHandler; |
7 | -use Xpressengine\Interception\Proxy\Loader\EvalLoader; |
|
8 | -use Xpressengine\Interception\Proxy\Loader\FileLoader; |
|
9 | -use Xpressengine\Interception\Proxy\Loader\Loader; |
|
10 | 7 | use Xpressengine\Interception\Proxy\ProxyGenerator; |
11 | 8 | |
12 | 9 | class InterceptionHandlerTest extends \PHPUnit_Framework_TestCase |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $advisor = $interceptor->addAdvisor( |
44 | 44 | 'Xpressengine\Tests\Interception\Document@insertDocument', |
45 | 45 | 'spamfilter', |
46 | - function ($target, $args) { |
|
46 | + function($target, $args) { |
|
47 | 47 | return $target($args); |
48 | 48 | } |
49 | 49 | ); |
@@ -15,7 +15,6 @@ |
||
15 | 15 | namespace Xpressengine\Tests\Menu; |
16 | 16 | |
17 | 17 | use PHPUnit_Framework_TestCase; |
18 | -use Mockery as m; |
|
19 | 18 | use Xpressengine\Menu\MenuType\DirectLink; |
20 | 19 | |
21 | 20 | /** |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace Xpressengine\Tests\Plugin; |
3 | 3 | |
4 | 4 | use Mockery; |
5 | -use Mockery\MockInterface; |
|
6 | 5 | use Xpressengine\Plugin\PluginCollection; |
7 | 6 | use Xpressengine\Plugin\PluginEntity; |
8 | 7 |
@@ -145,14 +145,14 @@ |
||
145 | 145 | */ |
146 | 146 | public function testGetters($entity) |
147 | 147 | { |
148 | - $this->assertEquals('title',$entity->getTitle()); |
|
149 | - $this->assertEquals(__DIR__.'/plugins/plugin_sample',$entity->getPath()); |
|
148 | + $this->assertEquals('title', $entity->getTitle()); |
|
149 | + $this->assertEquals(__DIR__.'/plugins/plugin_sample', $entity->getPath()); |
|
150 | 150 | $this->assertEquals('khongchi plugin.', $entity->getDescription()); |
151 | 151 | $this->assertCount(6, $entity->getSupport()); |
152 | 152 | $this->assertEquals('khongchi/plugin_sample', $entity->getName()); |
153 | 153 | $this->assertEquals(['xpressengine', 'board'], $entity->getKeywords()); |
154 | - $this->assertEquals('khongchi',$entity->getAuthors()[0]['name']); |
|
155 | - $this->assertEquals('LGPL-2.0',$entity->getLicense()); |
|
154 | + $this->assertEquals('khongchi', $entity->getAuthors()[0]['name']); |
|
155 | + $this->assertEquals('LGPL-2.0', $entity->getLicense()); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | private function getMetaData() |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | use Mockery as m; |
4 | -use Xpressengine\Translation\LangData; |
|
5 | 4 | use Xpressengine\Translation\Loaders\LangFileLoader; |
6 | 5 | |
7 | 6 | class LangFileLoaderTest extends PHPUnit_Framework_TestCase |
@@ -4,7 +4,6 @@ |
||
4 | 4 | */ |
5 | 5 | namespace Xpressengine\Tests\Trash; |
6 | 6 | |
7 | -use Mockery as M; |
|
8 | 7 | use PHPUnit_Framework_TestCase; |
9 | 8 | use Xpressengine\Trash\TrashManager; |
10 | 9 | use Xpressengine\Trash\WasteInterface; |