diff --git a/stubs/cast.inbound.stub b/stubs/cast.inbound.stub new file mode 100644 index 0000000..5db752d --- /dev/null +++ b/stubs/cast.inbound.stub @@ -0,0 +1,19 @@ + $attributes + */ + public function set(Model $model, string $key, mixed $value, array $attributes): mixed + { + return $value; + } +} diff --git a/stubs/cast.stub b/stubs/cast.stub new file mode 100644 index 0000000..3db6de5 --- /dev/null +++ b/stubs/cast.stub @@ -0,0 +1,27 @@ + $attributes + */ + public function get(Model $model, string $key, mixed $value, array $attributes): mixed + { + return $value; + } + + /** + * @param array $attributes + */ + public function set(Model $model, string $key, mixed $value, array $attributes): mixed + { + return $value; + } +} diff --git a/stubs/class.invokable.stub b/stubs/class.invokable.stub new file mode 100644 index 0000000..ee693c0 --- /dev/null +++ b/stubs/class.invokable.stub @@ -0,0 +1,24 @@ + + */ + public function broadcastOn(): array + { + return [ + new PrivateChannel('channel-name'), + ]; + } +} diff --git a/stubs/factory.stub b/stubs/factory.stub new file mode 100644 index 0000000..823cb03 --- /dev/null +++ b/stubs/factory.stub @@ -0,0 +1,23 @@ + + */ +final class {{ factory }}Factory extends Factory +{ + /** + * @return array + */ + public function definition(): array + { + return [ + // + ]; + } +} diff --git a/stubs/job.queued.stub b/stubs/job.queued.stub new file mode 100644 index 0000000..bb0b0e7 --- /dev/null +++ b/stubs/job.queued.stub @@ -0,0 +1,23 @@ + + */ + public function attachments(): array + { + return []; + } +} diff --git a/stubs/markdown-mail.stub b/stubs/markdown-mail.stub new file mode 100644 index 0000000..8ae53dd --- /dev/null +++ b/stubs/markdown-mail.stub @@ -0,0 +1,44 @@ + + */ + public function attachments(): array + { + return []; + } +} diff --git a/stubs/markdown-notification.stub b/stubs/markdown-notification.stub new file mode 100644 index 0000000..8a7aae3 --- /dev/null +++ b/stubs/markdown-notification.stub @@ -0,0 +1,43 @@ + + */ + public function via(object $notifiable): array + { + return ['mail']; + } + + public function toMail(object $notifiable): MailMessage + { + return (new MailMessage)->markdown('{{ view }}'); + } + + /** + * @return array + */ + public function toArray(object $notifiable): array + { + return [ + // + ]; + } +} diff --git a/stubs/middleware.stub b/stubs/middleware.stub new file mode 100644 index 0000000..4b689df --- /dev/null +++ b/stubs/middleware.stub @@ -0,0 +1,20 @@ +id(); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('{{ table }}'); + } +}; diff --git a/stubs/migration.stub b/stubs/migration.stub new file mode 100644 index 0000000..df6efca --- /dev/null +++ b/stubs/migration.stub @@ -0,0 +1,20 @@ + + */ + public function via(object $notifiable): array + { + return ['mail']; + } + + public function toMail(object $notifiable): MailMessage + { + return (new MailMessage) + ->line('The introduction to the notification.') + ->action('Notification Action', url('/')) + ->line('Thank you for using our application!'); + } + + /** + * @return array + */ + public function toArray(object $notifiable): array + { + return [ + // + ]; + } +} diff --git a/stubs/observer.plain.stub b/stubs/observer.plain.stub new file mode 100644 index 0000000..61270dd --- /dev/null +++ b/stubs/observer.plain.stub @@ -0,0 +1,10 @@ +get('/'); + + $response->assertStatus(200); +}); diff --git a/stubs/pest.unit.stub b/stubs/pest.unit.stub new file mode 100644 index 0000000..61cd84c --- /dev/null +++ b/stubs/pest.unit.stub @@ -0,0 +1,5 @@ +toBeTrue(); +}); diff --git a/stubs/policy.plain.stub b/stubs/policy.plain.stub new file mode 100644 index 0000000..fb1f672 --- /dev/null +++ b/stubs/policy.plain.stub @@ -0,0 +1,15 @@ +|string> + */ + public function rules(): array + { + return [ + // + ]; + } +} diff --git a/stubs/resource-collection.stub b/stubs/resource-collection.stub new file mode 100644 index 0000000..0835429 --- /dev/null +++ b/stubs/resource-collection.stub @@ -0,0 +1,19 @@ + + */ + public function toArray(Request $request): array + { + return parent::toArray($request); + } +} diff --git a/stubs/resource.stub b/stubs/resource.stub new file mode 100644 index 0000000..d9d7c0a --- /dev/null +++ b/stubs/resource.stub @@ -0,0 +1,19 @@ + + */ + public function toArray(Request $request): array + { + return parent::toArray($request); + } +} diff --git a/stubs/rule.stub b/stubs/rule.stub new file mode 100644 index 0000000..1977c92 --- /dev/null +++ b/stubs/rule.stub @@ -0,0 +1,19 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/stubs/test.unit.stub b/stubs/test.unit.stub new file mode 100644 index 0000000..6334573 --- /dev/null +++ b/stubs/test.unit.stub @@ -0,0 +1,15 @@ +assertTrue(true); + } +} diff --git a/stubs/trait.stub b/stubs/trait.stub new file mode 100644 index 0000000..20922d4 --- /dev/null +++ b/stubs/trait.stub @@ -0,0 +1,10 @@ +