@@ -191,6 +191,10 @@ |
||
191 | 191 | $this->assertInstanceOf('Xpressengine\Tag\Tag', current($tags)); |
192 | 192 | } |
193 | 193 | |
194 | + /** |
|
195 | + * @param TagHandler $object |
|
196 | + * @param string $methodName |
|
197 | + */ |
|
194 | 198 | private function invokeMethod(&$object, $methodName, array $parameters = array()) |
195 | 199 | { |
196 | 200 | $reflection = new \ReflectionClass(get_class($object)); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $mockTag->shouldReceive('getKey')->andReturn(1); |
100 | 100 | |
101 | 101 | $mockConn->shouldReceive('table')->with('taggable')->andReturnSelf(); |
102 | - $mockConn->shouldReceive('insert')->once()->with(m::on(function ($args) { |
|
102 | + $mockConn->shouldReceive('insert')->once()->with(m::on(function($args) { |
|
103 | 103 | return $args['tagId'] === 1 |
104 | 104 | && $args['taggableId'] === 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' |
105 | 105 | && $args['position'] === 0; |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $mockTag->shouldReceive('getKey')->andReturn(1); |
125 | 125 | |
126 | 126 | $mockConn->shouldReceive('table')->with('taggable')->andReturnSelf(); |
127 | - $mockConn->shouldReceive('insert')->once()->with(m::on(function ($args) { |
|
127 | + $mockConn->shouldReceive('insert')->once()->with(m::on(function($args) { |
|
128 | 128 | return $args['tagId'] === 1 |
129 | 129 | && $args['taggableId'] === 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' |
130 | 130 | && $args['position'] === 0; |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Xpressengine\DynamicField\AbstractSkin; |
7 | 7 | use Xpressengine\Config\ConfigEntity; |
8 | 8 | use View; |
9 | -use XeCategory; |
|
10 | 9 | |
11 | 10 | class DefaultSkin extends AbstractSkin |
12 | 11 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function settings(ConfigEntity $config = null, $view = 'dynamicField/category/default/createSkin') |
34 | 34 | { |
35 | - return View::make($view, ['config' => $config,])->render(); |
|
35 | + return View::make($view, ['config' => $config, ])->render(); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | |
66 | 66 | $itemId = ''; |
67 | 67 | $item = ''; |
68 | - if (isset($args[$config->get('id') . 'ItemId'])) { |
|
69 | - $itemId = $args[$config->get('id') . 'ItemId']; |
|
68 | + if (isset($args[$config->get('id').'ItemId'])) { |
|
69 | + $itemId = $args[$config->get('id').'ItemId']; |
|
70 | 70 | $item = CategoryItem::find($itemId); |
71 | 71 | } |
72 | 72 | |
@@ -87,8 +87,8 @@ discard block |
||
87 | 87 | { |
88 | 88 | $config = $this->config; |
89 | 89 | $item = ''; |
90 | - if (isset($args[$config->get('id') . 'ItemId'])) { |
|
91 | - $itemId = $args[$config->get('id') . 'ItemId']; |
|
90 | + if (isset($args[$config->get('id').'ItemId'])) { |
|
91 | + $itemId = $args[$config->get('id').'ItemId']; |
|
92 | 92 | $item = CategoryItem::find($itemId); |
93 | 93 | } |
94 | 94 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $auth->shouldReceive('guest')->andReturn(false); |
58 | 58 | $auth->shouldReceive('user')->andReturn($mockUser); |
59 | 59 | |
60 | - $repo->shouldReceive('insert')->once()->with(m::on(function ($entity) { |
|
60 | + $repo->shouldReceive('insert')->once()->with(m::on(function($entity) { |
|
61 | 61 | return ( |
62 | 62 | $entity->userId == 'userId' |
63 | 63 | && $entity->key == 'someKey' |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $instance = new CategoryHandler(); |
194 | 194 | |
195 | 195 | $collection = m::mock('Illuminate\Database\Eloquent\Collection'); |
196 | - $collection->shouldReceive('filter')->once()->with(m::on(function () { return true; }))->andReturnSelf(); |
|
196 | + $collection->shouldReceive('filter')->once()->with(m::on(function() { return true; }))->andReturnSelf(); |
|
197 | 197 | |
198 | 198 | $mockParent = m::mock('Xpressengine\Category\Models\CategoryItem'); |
199 | 199 | $mockParent->shouldReceive('getChildren')->andReturn($collection); |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $mockItem->shouldReceive('setAttribute')->once()->with('ordering', 1)->andReturnNull(); |
216 | 216 | $mockItem->shouldReceive('save')->once()->andReturnNull(); |
217 | 217 | |
218 | - $collection->shouldReceive('each')->once()->with(m::on(function ($closure) use ($mockItem, $mockSibling) { |
|
218 | + $collection->shouldReceive('each')->once()->with(m::on(function($closure) use ($mockItem, $mockSibling) { |
|
219 | 219 | $arr = [$mockSibling, $mockItem]; |
220 | 220 | |
221 | 221 | foreach ($arr as $idx => $model) { |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | return true; |
226 | 226 | }))->andReturnSelf(); |
227 | 227 | |
228 | - $invoke = function (&$object, $methodName, array $parameters = array()) { |
|
228 | + $invoke = function(&$object, $methodName, array $parameters = array()) { |
|
229 | 229 | $reflection = new \ReflectionClass(get_class($object)); |
230 | 230 | $method = $reflection->getMethod($methodName); |
231 | 231 | $method->setAccessible(true); |
@@ -25,10 +25,10 @@ |
||
25 | 25 | protected $request; |
26 | 26 | |
27 | 27 | /** |
28 | - * tear down |
|
29 | - * |
|
30 | - * @return void |
|
31 | - */ |
|
28 | + * tear down |
|
29 | + * |
|
30 | + * @return void |
|
31 | + */ |
|
32 | 32 | public function tearDown() |
33 | 33 | { |
34 | 34 | m::close(); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | |
55 | 55 | /** |
56 | - * @return m\MockInterface|\Xpressengine\Document\Models\Document |
|
56 | + * @return m\MockInterface |
|
57 | 57 | */ |
58 | 58 | private function getDocModel() |
59 | 59 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @return m\MockInterface|\Xpressengine\Document\Models\Revision |
|
66 | + * @return m\MockInterface |
|
67 | 67 | */ |
68 | 68 | private function getRevisionModel() |
69 | 69 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * get User instance |
77 | 77 | * |
78 | - * @return m\MockInterface|\Xpressengine\User\UserInterface |
|
78 | + * @return m\MockInterface |
|
79 | 79 | */ |
80 | 80 | private function getUser() |
81 | 81 | { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * get config entity |
91 | 91 | * |
92 | - * @return m\MockInterface|\Xpressengine\Config\ConfigEntity |
|
92 | + * @return m\MockInterface |
|
93 | 93 | */ |
94 | 94 | private function getConfigEntity() |
95 | 95 | { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * @param array $items items |
101 | 101 | * |
102 | - * @return m\MockInterface|\Illuminate\Pagination\LengthAwarePaginator |
|
102 | + * @return m\MockInterface |
|
103 | 103 | */ |
104 | 104 | private function getPaginator(array $items) |
105 | 105 | { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | */ |
93 | 93 | public static function setDefaultProfileImage($img) |
94 | 94 | { |
95 | - self::$profileImage= $img; |
|
95 | + self::$profileImage = $img; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -97,7 +97,7 @@ |
||
97 | 97 | $this->mailer->send( |
98 | 98 | $this->view, |
99 | 99 | compact('mail'), |
100 | - function ($m) use ($mail, $callback) { |
|
100 | + function($m) use ($mail, $callback) { |
|
101 | 101 | $m->to($mail->getAddress()); |
102 | 102 | |
103 | 103 | if (!is_null($callback)) { |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Closure; |
18 | 18 | use Illuminate\Contracts\Mail\Mailer; |
19 | 19 | use Xpressengine\User\Exceptions\InvalidConfirmationCodeException; |
20 | -use Xpressengine\User\Exceptions\PendingEmailNotExistsException; |
|
21 | 20 | |
22 | 21 | /** |
23 | 22 | * 이 클래스는 Xpressengine에서 이메일 인증 처리를 수행하는 클래스이다. |
@@ -74,7 +74,7 @@ |
||
74 | 74 | */ |
75 | 75 | public function register() |
76 | 76 | { |
77 | - $this->app->singleton([MenuHandler::class => 'xe.menu'], function ($app) { |
|
77 | + $this->app->singleton([MenuHandler::class => 'xe.menu'], function($app) { |
|
78 | 78 | return new MenuHandler( |
79 | 79 | $app['xe.keygen'], |
80 | 80 | $app['xe.config'], |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | if ($this->app['config']->get('app.debug') === true) { |
46 | 46 | |
47 | - \DB::listen(function ($query, $bindings, $time) { |
|
47 | + \DB::listen(function($query, $bindings, $time) { |
|
48 | 48 | $logFile = storage_path('logs/query.log'); |
49 | 49 | $monoLog = new Logger('log'); |
50 | 50 | $monoLog->pushHandler(new StreamHandler($logFile, Logger::INFO)); |
@@ -65,11 +65,11 @@ discard block |
||
65 | 65 | { |
66 | 66 | DynamicModel::clearBootedModels(); |
67 | 67 | |
68 | - $this->app->singleton('xe.db.proxy', function ($app) { |
|
68 | + $this->app->singleton('xe.db.proxy', function($app) { |
|
69 | 69 | return ProxyManager::instance($app['xe.register']); |
70 | 70 | }); |
71 | 71 | |
72 | - $this->app->singleton('xe.db', function ($app) { |
|
72 | + $this->app->singleton('xe.db', function($app) { |
|
73 | 73 | |
74 | 74 | $coupler = DatabaseCoupler::instance( |
75 | 75 | $app['db'], |