@@ -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 ;
0 commit comments