Skip to content

Commit

Permalink
Replace starts_with() with Str::startsWith() (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored May 14, 2024
1 parent 6a12760 commit 8ce1a72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Reporting/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Statamic\Facades\File;
use Statamic\Facades\YAML;
use Statamic\Support\Arr;
use Statamic\Support\Str;

class Page
{
Expand Down Expand Up @@ -152,7 +153,7 @@ public function model()

public function editUrl()
{
if (starts_with($this->id, 'route:')) {
if (Str::startsWith($this->id, 'route:')) {
return route('settings.edit', ['settings' => 'routes']);
}

Expand Down

0 comments on commit 8ce1a72

Please sign in to comment.