@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | ->where('view', '.*') |
24 | 24 | ->name('dashboard'); |
25 | 25 | |
26 | - if(config('tinre.url_preview', true)) { |
|
27 | - Route::get('{path}' . config('tinre.url_preview_suffix', '+'), 'Devpri\Tinre\Http\Controllers\PreviewController@show')->name('preview'); |
|
26 | + if (config('tinre.url_preview', true)) { |
|
27 | + Route::get('{path}'.config('tinre.url_preview_suffix', '+'), 'Devpri\Tinre\Http\Controllers\PreviewController@show')->name('preview'); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | Route::get('{path}', 'Devpri\Tinre\Http\Controllers\RedirectController@redirect')->name('url'); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
44 | 44 | 'prefix' => Tinre::dashboardPath(), |
45 | 45 | 'middleware' => $middleware, |
46 | - ], function () { |
|
46 | + ], function() { |
|
47 | 47 | Route::get('login', 'Auth\LoginController@showLoginForm')->name('login'); |
48 | 48 | Route::post('login', 'Auth\LoginController@login'); |
49 | 49 | Route::post('logout', 'Auth\LoginController@logout')->name('logout'); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
59 | 59 | 'prefix' => Tinre::dashboardPath(), |
60 | 60 | 'middleware' => $middleware, |
61 | - ], function () { |
|
61 | + ], function() { |
|
62 | 62 | Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request'); |
63 | 63 | Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email'); |
64 | 64 | Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset'); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
75 | 75 | 'prefix' => Tinre::dashboardPath(), |
76 | 76 | 'middleware' => $middleware, |
77 | - ], function () { |
|
77 | + ], function() { |
|
78 | 78 | Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register'); |
79 | 79 | Route::post('register', 'Auth\RegisterController@register'); |
80 | 80 | }); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
89 | 89 | 'prefix' => Tinre::dashboardPath(), |
90 | 90 | 'middleware' => $middleware, |
91 | - ], function () { |
|
91 | + ], function() { |
|
92 | 92 | Route::get('email/verify', 'Auth\VerificationController@show')->name('verification.notice'); |
93 | 93 | Route::get('email/verify/{id}/{hash}', 'Auth\VerificationController@verify')->name('verification.verify'); |
94 | 94 | Route::post('email/resend', 'Auth\VerificationController@resend')->name('verification.resend'); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | 'namespace' => 'Devpri\Tinre\Http\Controllers', |
104 | 104 | 'prefix' => Tinre::dashboardPath(), |
105 | 105 | 'middleware' => $middleware, |
106 | - ], function () { |
|
106 | + ], function() { |
|
107 | 107 | Route::get('email/change/{token}', 'Auth\ChangeEmailController@change')->name('email.change'); |
108 | 108 | Route::post('email/change', 'Auth\ChangeEmailController@create')->name('email.request'); |
109 | 109 | }); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | public function __destruct() |
115 | 115 | { |
116 | - if (! $this->registered) { |
|
116 | + if (!$this->registered) { |
|
117 | 117 | $this->register(); |
118 | 118 | } |
119 | 119 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $url = URL::select(['long_url', 'path', 'created_at'])->where(['path' => $path, 'active' => 1])->first(); |
13 | 13 | |
14 | - if (! $url) { |
|
14 | + if (!$url) { |
|
15 | 15 | return redirect('/'); |
16 | 16 | } |
17 | 17 |