Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Don't use global str_* helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Luijten committed Sep 3, 2019
1 parent 3fba133 commit 7493794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Voters/SectionsInParent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Sven\ArtisanView\Voters;

use Illuminate\Support\Str;
use Sven\ArtisanView\Blocks\InlineSection;
use Sven\ArtisanView\Blocks\Section;
use Sven\ArtisanView\BlockStack;
Expand Down Expand Up @@ -35,7 +36,7 @@ public function inPath($path)
public function run(InputInterface $input, BlockStack $blockStack)
{
foreach ((array) $input->getOption('section') as $section) {
if (str_contains($section, ':')) {
if (Str::contains($section, ':')) {
list($name, $title) = explode(':', $section);

$blockStack->add(new InlineSection($name, $title));
Expand Down

0 comments on commit 7493794

Please sign in to comment.