@@ -82,7 +82,7 @@ public function test_fields_has_default_value()
8282 $ field ->resolveForIndex ((object ) []);
8383 $ field ->resolveForShow ((object ) []);
8484 $ field ->resolve ((object ) []);
85- $ value = $ field ->serializeToValue (new RestifyRequest () );
85+ $ value = $ field ->serializeToValue (new RestifyRequest );
8686
8787 $ this ->assertEquals ('Title ' , data_get ($ field ->jsonSerialize (), 'value ' ));
8888 $ this ->assertEquals ('Title ' , $ value ['title ' ]);
@@ -96,7 +96,7 @@ public function test_field_can_have_custom_store_callback(): void
9696 'title ' => 'Request value. ' ,
9797 ]);
9898
99- $ model = new class () extends Model
99+ $ model = new class extends Model
100100 {
101101 protected $ fillable = ['title ' ];
102102 };
@@ -115,7 +115,7 @@ public function test_field_keep_its_value_if_request_empty(): void
115115 {
116116 $ request = new RepositoryStoreRequest ([], []);
117117
118- $ model = new class () extends Model
118+ $ model = new class extends Model
119119 {
120120 protected $ fillable = ['title ' ];
121121 };
@@ -137,7 +137,7 @@ public function test_field_can_have_custom_update_callback(): void
137137 'title ' => 'Request title. ' ,
138138 ]);
139139
140- $ model = new class () extends Model
140+ $ model = new class extends Model
141141 {
142142 protected $ fillable = ['title ' ];
143143 };
@@ -155,7 +155,7 @@ public function test_field_fill_callback_has_high_priority(): void
155155 {
156156 $ request = new RepositoryStoreRequest ([], []);
157157
158- $ model = new class () extends Model
158+ $ model = new class extends Model
159159 {
160160 protected $ fillable = ['title ' ];
161161 };
@@ -165,7 +165,7 @@ public function test_field_fill_callback_has_high_priority(): void
165165 ->value (function () {
166166 return 'from append callback ' ;
167167 })
168- ->fillCallback (new InvokableFill () )
168+ ->fillCallback (new InvokableFill )
169169 ->storeCallback (function () {
170170 return 'from store callback ' ;
171171 })
@@ -193,7 +193,7 @@ public function test_field_fill_from_request()
193193 'title ' => 'title from request ' ,
194194 ]);
195195
196- $ model = new class () extends Model
196+ $ model = new class extends Model
197197 {
198198 protected $ fillable = ['title ' ];
199199 };
@@ -221,7 +221,7 @@ public function test_append_overwrite_the_request_value()
221221 'title ' => 'title from request ' ,
222222 ]);
223223
224- $ model = new class () extends Model
224+ $ model = new class extends Model
225225 {
226226 protected $ fillable = ['title ' ];
227227 };
@@ -249,15 +249,15 @@ public function test_field_after_store_called(): void
249249 'title ' => 'After store title ' ,
250250 ]);
251251
252- $ model = new class () extends Model
252+ $ model = new class extends Model
253253 {
254254 protected $ table = 'posts ' ;
255255
256256 protected $ fillable = ['title ' ];
257257 };
258258
259259 /** * @var Field $field */
260- $ field = Field::new ('title ' )->afterStore (new InvokableAfterStore () );
260+ $ field = Field::new ('title ' )->afterStore (new InvokableAfterStore );
261261
262262 $ field ->fillAttribute ($ request , $ model );
263263
@@ -268,7 +268,7 @@ public function test_field_after_store_called(): void
268268
269269 public function test_field_after_update_called ()
270270 {
271- $ model = new class () extends Model
271+ $ model = new class extends Model
272272 {
273273 protected $ table = 'posts ' ;
274274
@@ -330,7 +330,7 @@ public function test_fill_field_using_label_key()
330330 'custom_title ' => 'title from request ' ,
331331 ]);
332332
333- $ model = new class () extends Model
333+ $ model = new class extends Model
334334 {
335335 protected $ fillable = ['title ' ];
336336 };
@@ -351,7 +351,7 @@ public function test_field_can_be_filled_from_the_append_value()
351351 'title ' => 'Title from the request. ' ,
352352 ]);
353353
354- $ model = new class () extends Model
354+ $ model = new class extends Model
355355 {
356356 protected $ table = 'posts ' ;
357357
@@ -383,7 +383,7 @@ public function test_field_can_be_filled_from_the_append_callback()
383383 'title ' => 'Title from the request. ' ,
384384 ]);
385385
386- $ model = new class () extends Model
386+ $ model = new class extends Model
387387 {
388388 protected $ table = 'posts ' ;
389389
0 commit comments