Skip to content

Commit

Permalink
Merge pull request #263 from ash-jc-allen/analysis-LZVwWw
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
ash-jc-allen authored Apr 25, 2024
2 parents 2bf5976 + e14bc07 commit 09f8f65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Unit/Classes/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ public function short_url_can_be_created_with_a_null_prefix(): void
*/
public function data_can_be_set_on_the_builder_using_when(bool $flag, string $destination): void
{
$shortUrl = (app(Builder::class))
$shortUrl = app(Builder::class)
->when(
$flag,
fn (Builder $builder): Builder => $builder->destinationUrl('https://domain.com'),
Expand All @@ -551,7 +551,7 @@ public function data_can_be_set_on_the_builder_using_when(bool $flag, string $de
/** @test */
public function data_can_be_overridden_on_model_using_make_callback(): void
{
$shortUrl = (app(Builder::class))
$shortUrl = app(Builder::class)
->destinationUrl('https://foo.com')
->beforeCreate(function (ShortURL $shortURL) {
$shortURL->destination_url = 'https://bar.com';
Expand All @@ -566,7 +566,7 @@ public function app_url_is_set_if_the_default_url_config_value_is_not_set(): voi
{
Config::set('short-url.default_url', null);

$shortUrl = (app(Builder::class))
$shortUrl = app(Builder::class)
->destinationUrl('https://domain.com')
->urlKey('abc123')
->make();
Expand All @@ -577,7 +577,7 @@ public function app_url_is_set_if_the_default_url_config_value_is_not_set(): voi
/** @test */
public function short_url_can_be_created_with_a_custom_integer_seed(): void
{
$shortUrlOne = (app(Builder::class))
$shortUrlOne = app(Builder::class)
->destinationUrl('https://domain.com')
->generateKeyUsing(123)
->make();
Expand All @@ -588,7 +588,7 @@ public function short_url_can_be_created_with_a_custom_integer_seed(): void
/** @test */
public function short_url_can_be_created_using_the_url_key_if_the_key_and_seeder_are_both_set(): void
{
$shortUrl = (app(Builder::class))
$shortUrl = app(Builder::class)
->destinationUrl('https://domain.com')
->generateKeyUsing(111111)
->urlKey('abc123')
Expand Down

0 comments on commit 09f8f65

Please sign in to comment.