@@ -153,7 +153,7 @@ |
||
153 | 153 | */ |
154 | 154 | protected function sort($items = []) |
155 | 155 | { |
156 | - $items = Collection::make($items)->sort(function (NodeInterface $a, NodeInterface $b) { |
|
156 | + $items = Collection::make($items)->sort(function(NodeInterface $a, NodeInterface $b) { |
|
157 | 157 | $orderKey = $a->getOrderKeyName(); |
158 | 158 | if ($a->{$orderKey} == $b->{$orderKey}) { |
159 | 159 | return 0; |
@@ -73,7 +73,7 @@ |
||
73 | 73 | if (!$this->children) { |
74 | 74 | $this->children = $this->where($this->getParentIdName(), $this->getKey()) |
75 | 75 | ->get() |
76 | - ->sort(function (Node $a, Node $b) { |
|
76 | + ->sort(function(Node $a, Node $b) { |
|
77 | 77 | $aOrdering = $a->{$a->getOrderKeyName()}; |
78 | 78 | $bOrdering = $b->{$b->getOrderKeyName()}; |
79 | 79 |
@@ -13,7 +13,6 @@ |
||
13 | 13 | */ |
14 | 14 | namespace Xpressengine\Category\Models; |
15 | 15 | |
16 | -use Illuminate\Database\Eloquent\Builder; |
|
17 | 16 | use Illuminate\Database\Eloquent\Collection; |
18 | 17 | use Illuminate\Database\Eloquent\Relations\BelongsTo; |
19 | 18 | use Xpressengine\Support\Tree\Node; |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * get counter instance |
52 | 52 | * |
53 | 53 | * @param string $name counter name |
54 | - * @param array $options counter options |
|
54 | + * @param string[] $options counter options |
|
55 | 55 | * @return Counter |
56 | 56 | */ |
57 | 57 | private function getCounter($name, array $options = []) |
@@ -60,7 +60,7 @@ |
||
60 | 60 | ->shouldAllowMockingProtectedMethods() |
61 | 61 | ->makePartial(); |
62 | 62 | |
63 | - return $counter ; |
|
63 | + return $counter; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -117,7 +117,7 @@ |
||
117 | 117 | /** |
118 | 118 | * check exists |
119 | 119 | * |
120 | - * @return bool |
|
120 | + * @return boolean|null |
|
121 | 121 | */ |
122 | 122 | public function exists() |
123 | 123 | { |
@@ -204,7 +204,7 @@ |
||
204 | 204 | $documentHandler = $this; |
205 | 205 | Document::where('instanceId', $config->get('instanceId'))->chunk( |
206 | 206 | $chunk, |
207 | - function ($docs) use ($documentHandler) { |
|
207 | + function($docs) use ($documentHandler) { |
|
208 | 208 | foreach ($docs as $doc) { |
209 | 209 | $documentHandler->remove($doc); |
210 | 210 | } |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use Xpressengine\Presenter\Presenter; |
19 | 19 | use Illuminate\Contracts\Support\Jsonable; |
20 | 20 | use JsonSerializable; |
21 | -use Xpressengine\Interception\Proxy as InterceptionProxy; |
|
22 | 21 | |
23 | 22 | /** |
24 | 23 | * JsonRenderer |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * get config entity |
54 | 54 | * |
55 | - * @return M\MockInterface|\Xpressengine\Config\ConfigEntity |
|
55 | + * @return M\MockInterface |
|
56 | 56 | */ |
57 | 57 | private function getConfigEntity() |
58 | 58 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * get schema builder |
64 | 64 | * |
65 | - * @return \Illuminate\Database\Schema\Builder |
|
65 | + * @return M\MockInterface |
|
66 | 66 | */ |
67 | 67 | private function getSchemaBuilder() |
68 | 68 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | { |
52 | 52 | if (app()->runningInConsole() === false) { |
53 | 53 | $this->app->booted( |
54 | - function () { |
|
54 | + function() { |
|
55 | 55 | |
56 | 56 | $frontendHandler = app('xe.frontend'); |
57 | 57 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | private function registerPresenter() |
78 | 78 | { |
79 | - $this->app->singleton('xe.presenter', function ($app) { |
|
79 | + $this->app->singleton('xe.presenter', function($app) { |
|
80 | 80 | |
81 | 81 | $proxyClass = $app['xe.interception']->proxy(Presenter::class, 'Presenter'); |
82 | 82 | |
@@ -100,13 +100,13 @@ discard block |
||
100 | 100 | |
101 | 101 | $presenter->register( |
102 | 102 | $proxyHtmlRenderer::format(), |
103 | - function (Presenter $presenter) use ($proxyHtmlRenderer) { |
|
103 | + function(Presenter $presenter) use ($proxyHtmlRenderer) { |
|
104 | 104 | return new $proxyHtmlRenderer($presenter, app('xe.seo'), app('xe.widget.parser')); |
105 | 105 | } |
106 | 106 | ); |
107 | 107 | $presenter->register( |
108 | 108 | $proxyJsonRenderer::format(), |
109 | - function (Presenter $presenter) use ($proxyJsonRenderer) { |
|
109 | + function(Presenter $presenter) use ($proxyJsonRenderer) { |
|
110 | 110 | return new $proxyJsonRenderer($presenter); |
111 | 111 | } |
112 | 112 | ); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | private function registerFrontend() |
124 | 124 | { |
125 | - $this->app->singleton('xe.frontend', function ($app) { |
|
125 | + $this->app->singleton('xe.frontend', function($app) { |
|
126 | 126 | $tags = [ |
127 | 127 | 'title' => \Xpressengine\Presenter\Html\Tags\Title::class, |
128 | 128 | 'meta' => \Xpressengine\Presenter\Html\Tags\Meta::class, |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /* |
|
5 | + /* |
|
6 | 6 | |-------------------------------------------------------------------------- |
7 | 7 | | Mail Driver |
8 | 8 | |-------------------------------------------------------------------------- |
@@ -15,9 +15,9 @@ discard block |
||
15 | 15 | | |
16 | 16 | */ |
17 | 17 | |
18 | - 'driver' => env('MAIL_DRIVER', 'mail'), |
|
18 | + 'driver' => env('MAIL_DRIVER', 'mail'), |
|
19 | 19 | |
20 | - /* |
|
20 | + /* |
|
21 | 21 | |-------------------------------------------------------------------------- |
22 | 22 | | SMTP Host Address |
23 | 23 | |-------------------------------------------------------------------------- |
@@ -28,9 +28,9 @@ discard block |
||
28 | 28 | | |
29 | 29 | */ |
30 | 30 | |
31 | - 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), |
|
31 | + 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), |
|
32 | 32 | |
33 | - /* |
|
33 | + /* |
|
34 | 34 | |-------------------------------------------------------------------------- |
35 | 35 | | SMTP Host Port |
36 | 36 | |-------------------------------------------------------------------------- |
@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | | |
42 | 42 | */ |
43 | 43 | |
44 | - 'port' => env('MAIL_PORT', 587), |
|
44 | + 'port' => env('MAIL_PORT', 587), |
|
45 | 45 | |
46 | - /* |
|
46 | + /* |
|
47 | 47 | |-------------------------------------------------------------------------- |
48 | 48 | | Global "From" Address |
49 | 49 | |-------------------------------------------------------------------------- |
@@ -54,12 +54,12 @@ discard block |
||
54 | 54 | | |
55 | 55 | */ |
56 | 56 | |
57 | - 'from' => [ |
|
57 | + 'from' => [ |
|
58 | 58 | 'address' => env('MAIL_FROM_ADDRESS', null), |
59 | 59 | 'name' => env('MAIL_FROM_NAME', null) |
60 | 60 | ], |
61 | 61 | |
62 | - /* |
|
62 | + /* |
|
63 | 63 | |-------------------------------------------------------------------------- |
64 | 64 | | E-Mail Encryption Protocol |
65 | 65 | |-------------------------------------------------------------------------- |
@@ -70,9 +70,9 @@ discard block |
||
70 | 70 | | |
71 | 71 | */ |
72 | 72 | |
73 | - 'encryption' => env('MAIL_ENCRYPTION', 'tls'), |
|
73 | + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), |
|
74 | 74 | |
75 | - /* |
|
75 | + /* |
|
76 | 76 | |-------------------------------------------------------------------------- |
77 | 77 | | SMTP Server Username |
78 | 78 | |-------------------------------------------------------------------------- |
@@ -83,9 +83,9 @@ discard block |
||
83 | 83 | | |
84 | 84 | */ |
85 | 85 | |
86 | - 'username' => env('MAIL_USERNAME', null), |
|
86 | + 'username' => env('MAIL_USERNAME', null), |
|
87 | 87 | |
88 | - /* |
|
88 | + /* |
|
89 | 89 | |-------------------------------------------------------------------------- |
90 | 90 | | SMTP Server Password |
91 | 91 | |-------------------------------------------------------------------------- |
@@ -96,9 +96,9 @@ discard block |
||
96 | 96 | | |
97 | 97 | */ |
98 | 98 | |
99 | - 'password' => env('MAIL_PASSWORD', null), |
|
99 | + 'password' => env('MAIL_PASSWORD', null), |
|
100 | 100 | |
101 | - /* |
|
101 | + /* |
|
102 | 102 | |-------------------------------------------------------------------------- |
103 | 103 | | Sendmail System Path |
104 | 104 | |-------------------------------------------------------------------------- |
@@ -109,9 +109,9 @@ discard block |
||
109 | 109 | | |
110 | 110 | */ |
111 | 111 | |
112 | - 'sendmail' => env('MAIL_SENDMAIL', '/usr/sbin/sendmail -bs'), |
|
112 | + 'sendmail' => env('MAIL_SENDMAIL', '/usr/sbin/sendmail -bs'), |
|
113 | 113 | |
114 | - /* |
|
114 | + /* |
|
115 | 115 | |-------------------------------------------------------------------------- |
116 | 116 | | Mail "Pretend" |
117 | 117 | |-------------------------------------------------------------------------- |
@@ -122,6 +122,6 @@ discard block |
||
122 | 122 | | |
123 | 123 | */ |
124 | 124 | |
125 | - 'pretend' => env('MAIL_PRETEND', false) |
|
125 | + 'pretend' => env('MAIL_PRETEND', false) |
|
126 | 126 | |
127 | 127 | ]; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function boot() |
40 | 40 | { |
41 | - Document::creating(function (Document $model) { |
|
41 | + Document::creating(function(Document $model) { |
|
42 | 42 | $model->setReply(); |
43 | 43 | }); |
44 | 44 | } |
@@ -55,17 +55,17 @@ discard block |
||
55 | 55 | // set reply code length config to Document model |
56 | 56 | Document::setReplyCharLen($app['config']['xe.documentReplyCodeLen']); |
57 | 57 | |
58 | - $app->singleton('xe.document.config', function ($app) { |
|
58 | + $app->singleton('xe.document.config', function($app) { |
|
59 | 59 | return new ConfigHandler($app['xe.config']); |
60 | 60 | }); |
61 | - $app->singleton('xe.document.instance', function ($app) { |
|
61 | + $app->singleton('xe.document.instance', function($app) { |
|
62 | 62 | $instanceManagerClass = $app['xe.interception']->proxy(InstanceManager::class, 'DocumentInstanceManager'); |
63 | 63 | return new $instanceManagerClass( |
64 | 64 | $app['xe.db']->connection('document'), |
65 | 65 | $app['xe.document.config'] |
66 | 66 | ); |
67 | 67 | }); |
68 | - $app->singleton('xe.document', function ($app) { |
|
68 | + $app->singleton('xe.document', function($app) { |
|
69 | 69 | $documentHandlerClass = $app['xe.interception']->proxy(DocumentHandler::class, 'Document'); |
70 | 70 | $document = new $documentHandlerClass( |
71 | 71 | $app['xe.db']->connection('document'), |