@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | public function install() |
11 | 11 | { |
12 | - Schema::create('tags', function (Blueprint $table) { |
|
12 | + Schema::create('tags', function(Blueprint $table) { |
|
13 | 13 | $table->engine = "InnoDB"; |
14 | 14 | |
15 | 15 | $table->increments('id'); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $table->index('decomposed'); |
23 | 23 | }); |
24 | 24 | |
25 | - Schema::create('taggables', function (Blueprint $table) { |
|
25 | + Schema::create('taggables', function(Blueprint $table) { |
|
26 | 26 | $table->engine = "InnoDB"; |
27 | 27 | |
28 | 28 | $table->increments('id'); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | public function create($table, $revision = '') |
23 | 23 | { |
24 | 24 | // create documents table |
25 | - Schema::create($table, function (Blueprint $table) { |
|
25 | + Schema::create($table, function(Blueprint $table) { |
|
26 | 26 | $table->engine = "InnoDB"; |
27 | 27 | |
28 | 28 | $table->string('id', 255); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | if ($revision != '') { |
35 | 35 | // create revision table |
36 | - Schema::create($revision, function (Blueprint $table) { |
|
36 | + Schema::create($revision, function(Blueprint $table) { |
|
37 | 37 | $table->engine = "InnoDB"; |
38 | 38 | |
39 | 39 | $table->string('revisionId', 255); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function createDivision(Builder $schema, $table) |
56 | 56 | { |
57 | - $schema->create($table, function (Blueprint $table) { |
|
57 | + $schema->create($table, function(Blueprint $table) { |
|
58 | 58 | $table->engine = "InnoDB"; |
59 | 59 | |
60 | 60 | $table->string('id', 255); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $table->string('userType', '16')->default('normal'); |
79 | 79 | $table->string('userId', 255); |
80 | 80 | $table->string('writer', 255); |
81 | - $table->string('email')->nullable(); // 비회원 작성일때 email 받기? |
|
81 | + $table->string('email')->nullable(); // 비회원 작성일때 email 받기? |
|
82 | 82 | $table->string('certifyKey', 255); // nonmember document's password |
83 | 83 | |
84 | 84 | // count |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $table->timestamp('updatedAt'); |
114 | 114 | $table->timestamp('deletedAt')->nullable(); |
115 | 115 | |
116 | - $table->string('head', 50); // timestamp + uuid (ex. 1430369257-bd1fc797-474f-47a6-bedb-867a376490f2) |
|
116 | + $table->string('head', 50); // timestamp + uuid (ex. 1430369257-bd1fc797-474f-47a6-bedb-867a376490f2) |
|
117 | 117 | $table->string('reply', 200); |
118 | 118 | //$table->string('listOrder', 250); |
119 | 119 | $table->string('ipaddress', 16); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | public function getParent() |
88 | 88 | { |
89 | 89 | if (!$this->parent) { |
90 | - $this->parent = $this->ancestors->first(function ($i, $model) { |
|
90 | + $this->parent = $this->ancestors->first(function($i, $model) { |
|
91 | 91 | return $model->pivot->{$this->getDepthName()} == 1; |
92 | 92 | }); |
93 | 93 | } |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | */ |
252 | 252 | public function getBreadcrumbs() |
253 | 253 | { |
254 | - return $this->ancestors->sort(function ($a, $b) { |
|
254 | + return $this->ancestors->sort(function($a, $b) { |
|
255 | 255 | $aDepth = $a->pivot->{$this->getDepthName()}; |
256 | 256 | $bDepth = $b->pivot->{$this->getDepthName()}; |
257 | 257 |
@@ -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 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | ->shouldAllowMockingProtectedMethods() |
61 | 61 | ->makePartial(); |
62 | 62 | |
63 | - return $counter ; |
|
63 | + return $counter; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -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, |
@@ -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 | } |
@@ -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'), |