@@ -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; |
@@ -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; |
@@ -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(); |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $temporaries = XeTemporary::get(Input::get('key')); |
15 | 15 | |
16 | 16 | if (!empty($temporaries)) { |
17 | - uasort($temporaries, function ($a, $b) { |
|
17 | + uasort($temporaries, function($a, $b) { |
|
18 | 18 | if ($a->createdAt == $b->createdAt) { |
19 | 19 | return 0; |
20 | 20 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $etc = Input::except(['_token', 'key', 'rep']); |
34 | 34 | $temporary = XeTemporary::set(Input::get('key'), Input::get(Input::get('rep')), $etc); |
35 | 35 | } catch (\Exception $e) { |
36 | - echo $e->getMessage() . '|' . $e->getFile() . '|' . $e->getLine(); |
|
36 | + echo $e->getMessage().'|'.$e->getFile().'|'.$e->getLine(); |
|
37 | 37 | |
38 | 38 | throw $e; |
39 | 39 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | public function boot() |
17 | 17 | { |
18 | - $this->app['validator']->extend('LangRequired', function ($attribute, $value) { |
|
18 | + $this->app['validator']->extend('LangRequired', function($attribute, $value) { |
|
19 | 19 | $fields = $this->app['request']->all(); |
20 | 20 | $protocol = 'xe_lang_preprocessor://'; |
21 | 21 | $prefix = null; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | $locale = $this->app['xe.translator']->getLocale(); |
32 | - $name = $prefix . '/locale/' . $locale; |
|
32 | + $name = $prefix.'/locale/'.$locale; |
|
33 | 33 | $validator = null; |
34 | 34 | |
35 | 35 | foreach ($fields as $key => $val) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | public function register() |
53 | 53 | { |
54 | - $this->app->singleton('xe.translator', function ($app) { |
|
54 | + $this->app->singleton('xe.translator', function($app) { |
|
55 | 55 | $debug = $app['config']['app.debug']; |
56 | 56 | $keyGen = $app['xe.keygen']; |
57 | 57 | $cache = new TransCache($app['cache']->driver('lang'), $debug); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | { |
68 | 68 | $this->app->singleton( |
69 | 69 | [RouteRepository::class => 'xe.router'], |
70 | - function ($app) { |
|
70 | + function($app) { |
|
71 | 71 | $repo = new DatabaseRouteRepository($app['config'], InstanceRoute::class); |
72 | 72 | |
73 | 73 | if (env('APP_DEBUG') != true) { |
@@ -130,12 +130,12 @@ discard block |
||
130 | 130 | */ |
131 | 131 | protected function registerSettingsMacro(Router $router) |
132 | 132 | { |
133 | - $manageMacro = function ($key, Closure $callback, $routeOptions = null) { |
|
133 | + $manageMacro = function($key, Closure $callback, $routeOptions = null) { |
|
134 | 134 | |
135 | 135 | $key = str_replace('.', '/', $key); |
136 | 136 | |
137 | 137 | $attributes = [ |
138 | - 'prefix' => config('xe.routing.settingsPrefix') . '/' . $key, |
|
138 | + 'prefix' => config('xe.routing.settingsPrefix').'/'.$key, |
|
139 | 139 | 'middleware' => ['settings'] |
140 | 140 | ]; |
141 | 141 | |
@@ -161,12 +161,12 @@ discard block |
||
161 | 161 | */ |
162 | 162 | protected function registerFixedMacro(Router $router) |
163 | 163 | { |
164 | - $fixedMacro = function ($key, Closure $callback, $routeOptions = null) { |
|
164 | + $fixedMacro = function($key, Closure $callback, $routeOptions = null) { |
|
165 | 165 | |
166 | 166 | $newKey = str_replace('@', '/', $key); |
167 | 167 | |
168 | 168 | $attributes = [ |
169 | - 'prefix' => config('xe.routing.fixedPrefix') . '/' . $newKey |
|
169 | + 'prefix' => config('xe.routing.fixedPrefix').'/'.$newKey |
|
170 | 170 | ]; |
171 | 171 | |
172 | 172 | if ($routeOptions !== null and is_array($routeOptions)) { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | protected function registerInstanceMacro(Router $router) |
193 | 193 | { |
194 | 194 | static $seq = 1; |
195 | - $instanceMacro = function ($key, Closure $callback, $routeOptions = null) use (&$seq) { |
|
195 | + $instanceMacro = function($key, Closure $callback, $routeOptions = null) use (&$seq) { |
|
196 | 196 | |
197 | 197 | $pattern = '{instanceGroup'.$seq++.'}'; |
198 | 198 | $attributes = [ |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $attributes = array_merge($attributes, $routeOptions); |
207 | 207 | |
208 | 208 | if (isset($routeOptions['middleware'])) { |
209 | - $attributes['middleware'] .= '|' . $routeOptions['middleware']; |
|
209 | + $attributes['middleware'] .= '|'.$routeOptions['middleware']; |
|
210 | 210 | } |
211 | 211 | } |
212 | 212 |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | public function install() |
12 | 12 | { |
13 | - Schema::create('translation', function (Blueprint $table) { |
|
13 | + Schema::create('translation', function(Blueprint $table) { |
|
14 | 14 | $table->engine = "InnoDB"; |
15 | 15 | |
16 | 16 | $table->increments('id'); |