Apply fixes from StyleCI

This commit is contained in:
arandilopez 2021-01-11 05:04:40 +00:00 committed by Arandi López
parent 0b325d6f62
commit 03eb1459ee
4 changed files with 8 additions and 10 deletions

View File

@ -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

View File

@ -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
*/

View File

@ -13,7 +13,6 @@ class Str
*
* @return bool
*/
public static function containsCaseless($haystack, $needles, $strict = false)
{
foreach ((array) $needles as $needle) {

View File

@ -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'));