Skip to content

Commit 786f12a

Browse files
committed
Fix style
1 parent ed51444 commit 786f12a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Storage/DatabaseRequestRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ protected function table($table)
156156
private function hasVariableFragment(?string $domain)
157157
{
158158
return collect(explode('.', $domain))->filter(function ($fragment) {
159-
return Str::startsWith($fragment, '{') && Str::endsWith($fragment,'}');
159+
return Str::startsWith($fragment, '{') && Str::endsWith($fragment, '}');
160160
})->count() > 0;
161161
}
162162
}

tests/Http/RoutesRequestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
namespace Davidhsianturi\Compass\Tests\Http;
44

55
use Davidhsianturi\Compass\Compass;
6+
use Illuminate\Support\Facades\URL;
67
use Davidhsianturi\Compass\Tests\TestCase;
78
use Davidhsianturi\Compass\Storage\RouteModel;
89
use Illuminate\Foundation\Testing\RefreshDatabase;
910
use Davidhsianturi\Compass\Storage\DatabaseRequestRepository;
10-
use Illuminate\Support\Facades\URL;
1111

1212
class RoutesRequestTest extends TestCase
1313
{
@@ -58,7 +58,7 @@ public function test_show_route_request_by_id()
5858
public function test_show_route_request_fallbacks_to_host_for_variable_domain()
5959
{
6060
$host = 'test.tld.test';
61-
URL::forceRootUrl('http://' . $host);
61+
URL::forceRootUrl('http://'.$host);
6262
$this->registerVariableRoute();
6363

6464
$route = $this->repository->get()->first()->jsonSerialize();

0 commit comments

Comments
 (0)