Skip to content

Commit 8a45a82

Browse files
yordadevgithub-actions[bot]
authored andcommitted
Fix styling
1 parent ee10468 commit 8a45a82

27 files changed

Lines changed: 69 additions & 74 deletions

src/Builders/UrlBuilder/UrlBuilder.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class UrlBuilder implements UrlBuilderInterface
3939
*/
4040
public function __construct()
4141
{
42-
$this->options = new Collection();
43-
$this->shortUrlCollection = new Collection();
42+
$this->options = new Collection;
43+
$this->shortUrlCollection = new Collection;
4444
}
4545

4646
/**
@@ -57,7 +57,7 @@ public static function shorten(string $plain_text): UrlBuilder
5757
$b->shortUrlCollection->put('plain_text', $plain_text);
5858
$b->shortUrlCollection->put('hashed', md5($plain_text));
5959

60-
$b->options->add(new BaseOption());
60+
$b->options->add(new BaseOption);
6161

6262
return $b;
6363
}
@@ -91,7 +91,7 @@ public function withPassword(string $password): UrlBuilder
9191
$this->shortUrlCollection->put('password', UtilityService::getEncrypter()->encryptString($password));
9292

9393
$this->options->add(
94-
new WithPassword()
94+
new WithPassword
9595
);
9696

9797
return $this;
@@ -120,7 +120,7 @@ public function withExpiration(int $timestamp): UrlBuilder
120120
$this->shortUrlCollection->put('expiration', $timestamp);
121121

122122
$this->options->add(
123-
new WithExpiration()
123+
new WithExpiration
124124
);
125125

126126
return $this;
@@ -145,7 +145,7 @@ public function withActivation(int $timestamp): UrlBuilder
145145
$this->shortUrlCollection->put('activation', $timestamp);
146146

147147
$this->options->add(
148-
new WithActivation()
148+
new WithActivation
149149
);
150150

151151
return $this;
@@ -159,7 +159,7 @@ public function withOpenLimit(int $limit): UrlBuilder
159159
$this->shortUrlCollection->put('limit', $limit);
160160

161161
$this->options->add(
162-
new WithOpenLimit()
162+
new WithOpenLimit
163163
);
164164

165165
return $this;
@@ -170,7 +170,7 @@ public function withOwnership(Model $model): UrlBuilder
170170
$this->shortUrlCollection->put('owner_model', $model);
171171

172172
$this->options->add(
173-
new WithOwnership()
173+
new WithOwnership
174174
);
175175

176176
return $this;
@@ -184,7 +184,7 @@ public function withTracing(array $utm_parameters)
184184
$this->shortUrlCollection->put('utm_parameters', $utm_parameters);
185185

186186
$this->options->add(
187-
new WithTracing()
187+
new WithTracing
188188
);
189189

190190
return $this;
@@ -205,7 +205,7 @@ public function forDomain(string $domain): UrlBuilder
205205

206206
$this->shortUrlCollection->put('domain', $domain);
207207

208-
$this->options->add(new WithDomain());
208+
$this->options->add(new WithDomain);
209209

210210
return $this;
211211
}
@@ -237,7 +237,7 @@ public function forCurrentDomain(): UrlBuilder
237237
}
238238

239239
$this->shortUrlCollection->put('domain', $domain);
240-
$this->options->add(new WithDomain());
240+
$this->options->add(new WithDomain);
241241
}
242242

243243
return $this;

src/Exceptions/ClickRepositoryException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class ClickRepositoryException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct($message, $code, $previous);
1313
}

src/Exceptions/ClickServiceException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class ClickServiceException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct($message, $code, $previous);
1313
}

src/Exceptions/DomainResolutionException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class DomainResolutionException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct($message, $code, $previous);
1313
}

src/Exceptions/FilterClicksStrategyException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class FilterClicksStrategyException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct($message, $code, $previous);
1313
}

src/Exceptions/RateLimitExceededException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class RateLimitExceededException extends Exception
99
{
1010
protected int $retryAfter;
1111

12-
public function __construct(string $message = 'Too many password attempts', int $retryAfter = 60, int $code = 429, Throwable $previous = null)
12+
public function __construct(string $message = 'Too many password attempts', int $retryAfter = 60, int $code = 429, ?Throwable $previous = null)
1313
{
1414
$this->retryAfter = $retryAfter;
1515
parent::__construct($message, $code, $previous);

src/Exceptions/TracingRepositoryException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class TracingRepositoryException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct($message, $code, $previous);
1313
}

src/Exceptions/UrlBuilderException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class UrlBuilderException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct($message, $code, $previous);
1313
}

src/Exceptions/UrlRepositoryException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class UrlRepositoryException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct($message, $code, $previous);
1313
}

src/Exceptions/UrlServiceException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class UrlServiceException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct($message, $code, $previous);
1313
}

0 commit comments

Comments
 (0)