From 3cc999c0bc2ea787025d9bc28d3aae4c31393cbb Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Tue, 25 Dec 2018 14:16:46 +0800 Subject: [PATCH] Change logo function helpers name Change appLogoImage() to app_logo_image() Change appLogoPath() to app_logo_path() --- app/helpers.php | 6 +++--- resources/views/auth/app-install.blade.php | 2 +- resources/views/auth/login.blade.php | 2 +- resources/views/invoices/pdf.blade.php | 2 +- resources/views/layouts/partials/sidebar.blade.php | 2 +- resources/views/payments/pdf.blade.php | 2 +- resources/views/users/agency/edit.blade.php | 2 +- resources/views/users/agency/show.blade.php | 2 +- tests/Unit/Helpers/AppLogoImageTest.php | 12 ++++++------ 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index 4d801c6..368fd3c 100755 --- a/app/helpers.php +++ b/app/helpers.php @@ -211,10 +211,10 @@ function dateDifference($date1, $date2, $differenceFormat = '%a') * @param array $attributes * @return \Illuminate\Support\HtmlString */ -function appLogoImage($attributes = []) +function app_logo_image($attributes = []) { return Html::image( - appLogoPath(), + app_logo_path(), 'Logo '.Option::get('agency_name', 'Laravel'), $attributes ); @@ -225,7 +225,7 @@ function appLogoImage($attributes = []) * * @return string */ -function appLogoPath() +function app_logo_path() { $defaultLogoImagePath = 'default-logo.png'; $optionLogoImagePath = Option::get('agency_logo_path'); diff --git a/resources/views/auth/app-install.blade.php b/resources/views/auth/app-install.blade.php index bce3cb6..7527df9 100644 --- a/resources/views/auth/app-install.blade.php +++ b/resources/views/auth/app-install.blade.php @@ -11,7 +11,7 @@
- {!! appLogoImage(['style' => 'width:150px']) !!} + {!! app_logo_image(['style' => 'width:150px']) !!}

{{ config('app.name') }}

diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index daa20cf..05bf52e 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -5,7 +5,7 @@ @section('content')