Skip to content

Commit

Permalink
Apply fixes from StyleCI (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi authored Sep 27, 2022
1 parent 171abcc commit 0ff3210
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ArPhpLaravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ private static function Arabic()
{
return new \ArPHP\I18N\Arabic();
}

public static function isArabic($text)
{
return self::Arabic()->isArabic($text);
Expand Down
8 changes: 5 additions & 3 deletions tests/arPhpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 0ff3210

Please sign in to comment.