@@ -51,7 +51,7 @@ |
||
51 | 51 | foreach ($fields as $key => $value) { |
52 | 52 | if ($params = XeLang::parsePreprocessor($key)) { |
53 | 53 | list($kSeq, $seq, $command) = $params; |
54 | - switch ( $command ) { |
|
54 | + switch ($command) { |
|
55 | 55 | case 'name': |
56 | 56 | $this->mapSeqName[$seq] = $value; |
57 | 57 | break; |
@@ -132,7 +132,7 @@ |
||
132 | 132 | $fieldSkin = $registerHandler->getSkin($dynamicField, $request->get('skinId')); |
133 | 133 | |
134 | 134 | return XePresenter::makeApi([ |
135 | - 'configure' => $fieldType->getSettingsView($config) . $fieldSkin->settings($config), |
|
135 | + 'configure' => $fieldType->getSettingsView($config).$fieldSkin->settings($config), |
|
136 | 136 | ]); |
137 | 137 | } |
138 | 138 |
@@ -90,7 +90,7 @@ |
||
90 | 90 | foreach ($permissionGroups as $tab => &$group) { |
91 | 91 | foreach ($group as $key => &$item) { |
92 | 92 | $permission = $permissionHandler->find($item['id']); |
93 | - if($permission === null) { |
|
93 | + if ($permission === null) { |
|
94 | 94 | $permission = $permissionHandler->register($item['id'], new Grant()); |
95 | 95 | } |
96 | 96 | $item['permission'] = $permission; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | $file = File::find($id); |
11 | 11 | |
12 | - header('Content-type: ' . $file->mime); |
|
12 | + header('Content-type: '.$file->mime); |
|
13 | 13 | |
14 | 14 | echo $file->getContent(); |
15 | 15 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $settingsSection = [ |
96 | 96 | 'settings' => [ |
97 | 97 | 'title' => xe_trans('xe::defaultSettings'), |
98 | - 'content' => function ($user) { |
|
98 | + 'content' => function($user) { |
|
99 | 99 | return $this->userEditView($user); |
100 | 100 | } |
101 | 101 | ] |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $menus = array_merge($settingsSection, $menus); |
109 | 109 | |
110 | 110 | // get Selected section |
111 | - if(isset($menus[$section]) === false) { |
|
111 | + if (isset($menus[$section]) === false) { |
|
112 | 112 | throw new NotFoundHttpException(); |
113 | 113 | } |
114 | 114 | $selectedSection = $menus[$section]; |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $message = 'success'; |
207 | 207 | $target = null; |
208 | 208 | |
209 | - if($this->user->getAuthPassword() !== "") { |
|
209 | + if ($this->user->getAuthPassword() !== "") { |
|
210 | 210 | |
211 | 211 | $credentials = [ |
212 | 212 | 'id' => $this->user->getId(), |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | |
225 | 225 | try { |
226 | 226 | $this->handler->validatePassword($password); |
227 | - } catch(Exception $e) { |
|
227 | + } catch (Exception $e) { |
|
228 | 228 | $e = new HttpXpressengineException(); |
229 | 229 | $e->setMessage('비밀번호 보안수준을 만족하지 못했습니다.'); |
230 | 230 | throw $e; |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | } |
369 | 369 | |
370 | 370 | // 이미 존재하는 이메일이 있는지 확인한다. |
371 | - if($this->emails->findByAddress($input['address'])) { |
|
371 | + if ($this->emails->findByAddress($input['address'])) { |
|
372 | 372 | throw new MailAlreadyExistsException(); |
373 | 373 | } |
374 | 374 | |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | $selected = null; |
465 | 465 | |
466 | 466 | $pendingEmail = $this->user->getPendingEmail(); |
467 | - if($pendingEmail !== null && $pendingEmail->getAddress() === $address) { |
|
467 | + if ($pendingEmail !== null && $pendingEmail->getAddress() === $address) { |
|
468 | 468 | $selected = $pendingEmail; |
469 | 469 | } else { |
470 | 470 | foreach ($this->user->emails as $mail) { |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | { |
520 | 520 | $confirm = $request->get('confirm_leave'); |
521 | 521 | |
522 | - if($confirm !== 'Y') { |
|
522 | + if ($confirm !== 'Y') { |
|
523 | 523 | $e = new InvalidArgumentException(); |
524 | 524 | $e->setMessage('약관의 동의가 필요합니다.'); |
525 | 525 | throw $e; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | if ($group = $request->get('group')) { |
50 | 50 | $query = $query->whereHas( |
51 | 51 | 'groups', |
52 | - function (Builder $q) use ($group) { |
|
52 | + function(Builder $q) use ($group) { |
|
53 | 53 | $q->where('groupId', $group); |
54 | 54 | } |
55 | 55 | ); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | if ($keyword = $request->get('keyword')) { |
69 | 69 | $query = $query->where( |
70 | - function (Builder $q) use ($field, $keyword) { |
|
70 | + function(Builder $q) use ($field, $keyword) { |
|
71 | 71 | foreach (explode(',', $field) as $f) { |
72 | 72 | $q->orWhere($f, 'like', '%'.$keyword.'%'); |
73 | 73 | }; |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | return XePresenter::makeApi([]); |
452 | 452 | } |
453 | 453 | |
454 | - $matchedMemberList = $users->query()->where('displayName', 'like', '%'.$keyword.'%')->paginate( null, |
|
454 | + $matchedMemberList = $users->query()->where('displayName', 'like', '%'.$keyword.'%')->paginate(null, |
|
455 | 455 | ['id', 'displayName', 'email'] |
456 | 456 | )->items(); |
457 | 457 |
@@ -166,7 +166,7 @@ |
||
166 | 166 | |
167 | 167 | $email = $this->handler->pendingEmails()->findByAddress($address); |
168 | 168 | |
169 | - if($email === null) { |
|
169 | + if ($email === null) { |
|
170 | 170 | // todo: change exception to http exception |
171 | 171 | throw new PendingEmailNotExistsException(); |
172 | 172 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $type = $request->get('type', 'template'); |
17 | 17 | |
18 | 18 | // TODO: validate themeid, fileName |
19 | - if($themeId === null) { |
|
19 | + if ($themeId === null) { |
|
20 | 20 | $e = new InvalidArgumentHttpException(); |
21 | 21 | $e->setMessage('잘못된 요청입니다.'); |
22 | 22 | throw $e; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** @var ThemeEntity $theme */ |
28 | 28 | $files = $theme->getEditFiles(); |
29 | 29 | |
30 | - if(empty($files)) { |
|
30 | + if (empty($files)) { |
|
31 | 31 | return \XePresenter::make( |
32 | 32 | 'theme.edit', |
33 | 33 | [ |
@@ -26,15 +26,15 @@ discard block |
||
26 | 26 | 'lang::admin.editor.saved', 'lang::admin.editor.failed' |
27 | 27 | ]); |
28 | 28 | |
29 | - if ( strtolower($namespace) == 'äll' ) { |
|
29 | + if (strtolower($namespace) == 'äll') { |
|
30 | 30 | $namespace = ''; |
31 | 31 | } |
32 | 32 | |
33 | 33 | $conditions = []; |
34 | - if ( $namespace ) { |
|
34 | + if ($namespace) { |
|
35 | 35 | $conditions['namespace'] = $namespace; |
36 | 36 | } |
37 | - if ( $keyword ) { |
|
37 | + if ($keyword) { |
|
38 | 38 | $conditions['value'] = $keyword; |
39 | 39 | } |
40 | 40 | |
@@ -91,16 +91,16 @@ discard block |
||
91 | 91 | $query->orderBy('item', 'asc'); |
92 | 92 | $query->orderBy('id', 'desc'); |
93 | 93 | |
94 | - if ( isset($conditions['namespace']) ) { |
|
94 | + if (isset($conditions['namespace'])) { |
|
95 | 95 | $query->where('namespace', $conditions['namespace']); |
96 | 96 | } |
97 | - if ( isset($conditions['item']) ) { |
|
97 | + if (isset($conditions['item'])) { |
|
98 | 98 | $query->where('item', $conditions['item']); |
99 | 99 | } |
100 | - if ( isset($conditions['locale']) ) { |
|
100 | + if (isset($conditions['locale'])) { |
|
101 | 101 | $query->where('locale', $conditions['locale']); |
102 | 102 | } |
103 | - if ( isset($conditions['value']) ) { |
|
103 | + if (isset($conditions['value'])) { |
|
104 | 104 | $query->where('value', 'LIKE', '%'.$conditions['value'].'%'); |
105 | 105 | } |
106 | 106 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | private function withLines(&$searchList) |
111 | 111 | { |
112 | - foreach ( $searchList as &$search ) { |
|
112 | + foreach ($searchList as &$search) { |
|
113 | 113 | $namespace = $search['namespace']; |
114 | 114 | $item = $search['item']; |
115 | 115 | $search['lines'] = $this->search(['namespace' => $namespace, 'item' => $item])->get(); |