From f5318a69427934549ed00a5aefc2d7b105e09b23 Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Sun, 14 Feb 2021 01:07:46 +0700 Subject: [PATCH] Beautify code --- .../Controllers/UrlShortenerController.php | 4 +- resources/views/expired.blade.php | 85 ++++--- resources/views/home.blade.php | 111 +++++---- resources/views/layout/default.blade.php | 214 +++++++++--------- resources/views/list.blade.php | 54 ++--- resources/views/protection.blade.php | 81 +++---- .../views/template/email/forgot.blade.php | 4 +- 7 files changed, 274 insertions(+), 279 deletions(-) diff --git a/app/Http/Controllers/UrlShortenerController.php b/app/Http/Controllers/UrlShortenerController.php index e11b169..a702e0a 100755 --- a/app/Http/Controllers/UrlShortenerController.php +++ b/app/Http/Controllers/UrlShortenerController.php @@ -100,7 +100,7 @@ class UrlShortenerController extends Controller $url = $urlAddress->url_destination; if ($httpPath == substr($url, 0, strlen($httpPath))) { $hasHttpOrHttps = true; - } else if ($httpsPath == substr($url, 0, strlen($httpsPath))) { + } elseif ($httpsPath == substr($url, 0, strlen($httpsPath))) { $hasHttpOrHttps = true; } @@ -145,7 +145,7 @@ class UrlShortenerController extends Controller $url = $urlAddress->url_destination; if ($httpPath == substr($url, 0, strlen($httpPath))) { $hasHttpOrHttps = true; - } else if ($httpsPath == substr($url, 0, strlen($httpsPath))) { + } elseif ($httpsPath == substr($url, 0, strlen($httpsPath))) { $hasHttpOrHttps = true; } diff --git a/resources/views/expired.blade.php b/resources/views/expired.blade.php index ce19f24..3870c59 100755 --- a/resources/views/expired.blade.php +++ b/resources/views/expired.blade.php @@ -1,11 +1,12 @@ + - + Short URL - + @@ -30,52 +31,49 @@ + href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> + -
- - -