From 03eb1459eef2cbbe141edcd9dd0e327a13e9204f Mon Sep 17 00:00:00 2001 From: arandilopez Date: Mon, 11 Jan 2021 05:04:40 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/ProfaneServiceProvider.php | 4 ++-- src/ProfaneValidator.php | 12 ++++++------ src/Str.php | 1 - tests/StrTest.php | 1 - 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/ProfaneServiceProvider.php b/src/ProfaneServiceProvider.php index 181a4fd..8ca8eb0 100644 --- a/src/ProfaneServiceProvider.php +++ b/src/ProfaneServiceProvider.php @@ -10,10 +10,10 @@ class ProfaneServiceProvider extends ServiceProvider { public function boot() { - $this->loadTranslationsFrom(__DIR__ . '/lang', 'laravel-profane'); + $this->loadTranslationsFrom(__DIR__.'/lang', 'laravel-profane'); $this->publishes([ - __DIR__ . '/lang' => resource_path('lang/vendor/laravel-profane'), + __DIR__.'/lang' => resource_path('lang/vendor/laravel-profane'), ]); // Rule for caseless content matching diff --git a/src/ProfaneValidator.php b/src/ProfaneValidator.php index dbc1d2e..5dcf43e 100644 --- a/src/ProfaneValidator.php +++ b/src/ProfaneValidator.php @@ -26,9 +26,9 @@ class ProfaneValidator /** * Method to extends to Validation Service. * - * @param string $attribute - * @param mixed $value - * @param array $parameters + * @param string $attribute + * @param mixed $value + * @param array $parameters * * @return bool */ @@ -44,9 +44,9 @@ class ProfaneValidator /** * Method to extends to Validation Service for strict word matching. * - * @param string $attribute - * @param mixed $value - * @param array $parameters + * @param string $attribute + * @param mixed $value + * @param array $parameters * * @return bool */ diff --git a/src/Str.php b/src/Str.php index 822bcd2..04b66cd 100644 --- a/src/Str.php +++ b/src/Str.php @@ -13,7 +13,6 @@ class Str * * @return bool */ - public static function containsCaseless($haystack, $needles, $strict = false) { foreach ((array) $needles as $needle) { diff --git a/tests/StrTest.php b/tests/StrTest.php index 38c4295..a7427ca 100644 --- a/tests/StrTest.php +++ b/tests/StrTest.php @@ -40,7 +40,6 @@ class StrTest extends TestCase $this->assertTrue(Str::containsCaseless('Theorem Analisys', 'anal', false)); } - public function test_text_contains_the_same_insensitive_match_from_string() { $this->assertTrue(Str::containsCaseless('Fuck! This class is so bad!', 'Fuck'));