Skip to content

Commit

Permalink
Merge pull request #337 from mixsuite/master
Browse files Browse the repository at this point in the history
Replace str_contains helpers
  • Loading branch information
barryvdh committed Oct 8, 2019
2 parents 9e81c4d + 0d2b962 commit 3999902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ public function findTranslations($path = null)
//TODO: This can probably be done in the regex, but I couldn't do it.
//skip keys which contain namespacing characters, unless they also contain a
//space, which makes it JSON.
if (! (str_contains($key, '::') && str_contains($key, '.'))
|| str_contains($key, ' ')) {
if (! (Str::contains($key, '::') && Str::contains($key, '.'))
|| Str::contains($key, ' ')) {
$stringKeys[] = $key;
}
}
Expand Down

0 comments on commit 3999902

Please sign in to comment.