From 0ff32102d6b9a1e3b56be5db866e0932960859b5 Mon Sep 17 00:00:00 2001 From: Ashraf Monshi Date: Tue, 27 Sep 2022 20:03:37 +0300 Subject: [PATCH] Apply fixes from StyleCI (#19) --- src/ArPhpLaravel.php | 2 +- tests/arPhpTest.php | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ArPhpLaravel.php b/src/ArPhpLaravel.php index 044a0e9..77b1bf8 100644 --- a/src/ArPhpLaravel.php +++ b/src/ArPhpLaravel.php @@ -8,7 +8,7 @@ private static function Arabic() { return new \ArPHP\I18N\Arabic(); } - + public static function isArabic($text) { return self::Arabic()->isArabic($text); diff --git a/tests/arPhpTest.php b/tests/arPhpTest.php index c8d4786..3044d69 100644 --- a/tests/arPhpTest.php +++ b/tests/arPhpTest.php @@ -23,17 +23,19 @@ protected function overrideApplicationProviders() /** @test */ public function it_is_not_arabic_text() { - $output = ArPhpLaravel::isArabic("Hello there"); + $output = ArPhpLaravel::isArabic('Hello there'); $this->assertSame(false, $output); } - /** @test */ + + /** @test */ public function it_is_arabic_text() { - $output = ArPhpLaravel::isArabic("مرحبا"); + $output = ArPhpLaravel::isArabic('مرحبا'); $this->assertSame(true, $output); } + /** @test */ public function int2str_convert_number_to_text() {