@@ -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 |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * |
249 | 249 | * @param boolean $isSuper 최고관리자 여부 |
250 | 250 | * |
251 | - * @return SettingsMenu[] |
|
251 | + * @return \Illuminate\Support\Collection |
|
252 | 252 | */ |
253 | 253 | public function getSettingsMenus($isSuper) |
254 | 254 | { |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | /** |
365 | 365 | * getRegisteredMenus |
366 | 366 | * |
367 | - * @return array |
|
367 | + * @return \Xpressengine\Support\Tree\NodeInterface[] |
|
368 | 368 | * @throws \Exception |
369 | 369 | */ |
370 | 370 | private function getRegisteredMenus() |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | /** |
205 | 205 | * Return the parent node or null |
206 | 206 | * |
207 | - * @return mixed |
|
207 | + * @return null|SettingsMenu |
|
208 | 208 | */ |
209 | 209 | public function getParent() |
210 | 210 | { |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | /** |
249 | 249 | * getChildren |
250 | 250 | * |
251 | - * @return NodeInterface[] |
|
251 | + * @return SettingsMenu[] |
|
252 | 252 | */ |
253 | 253 | public function getChildren() |
254 | 254 | { |
@@ -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 |
@@ -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 |