diff --git a/stubs/cast.inbound.stub b/stubs/cast.inbound.stub index c456e3c..bb24b53 100644 --- a/stubs/cast.inbound.stub +++ b/stubs/cast.inbound.stub @@ -6,17 +6,17 @@ use Illuminate\Contracts\Database\Eloquent\CastsInboundAttributes; class {{ class }} implements CastsInboundAttributes { - /** - * Prepare the given value for storage. - * - * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $value - * @param array $attributes - * @return mixed - */ - public function set($model, string $key, $value, array $attributes) - { - return $value; - } + /** + * Prepare the given value for storage. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param string $key + * @param mixed $value + * @param array $attributes + * @return mixed + */ + public function set($model, string $key, $value, array $attributes) + { + return $value; + } } diff --git a/stubs/cast.stub b/stubs/cast.stub index 25d35b6..7ca96bc 100644 --- a/stubs/cast.stub +++ b/stubs/cast.stub @@ -6,31 +6,31 @@ use Illuminate\Contracts\Database\Eloquent\CastsAttributes; class {{ class }} implements CastsAttributes { - /** - * Cast the given value. - * - * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $value - * @param array $attributes - * @return mixed - */ - public function get($model, string $key, $value, array $attributes) - { - return $value; - } - - /** - * Prepare the given value for storage. - * - * @param \Illuminate\Database\Eloquent\Model $model - * @param string $key - * @param mixed $value - * @param array $attributes - * @return mixed - */ - public function set($model, string $key, $value, array $attributes) - { - return $value; - } + /** + * Cast the given value. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param string $key + * @param mixed $value + * @param array $attributes + * @return mixed + */ + public function get($model, string $key, $value, array $attributes) + { + return $value; + } + + /** + * Prepare the given value for storage. + * + * @param \Illuminate\Database\Eloquent\Model $model + * @param string $key + * @param mixed $value + * @param array $attributes + * @return mixed + */ + public function set($model, string $key, $value, array $attributes) + { + return $value; + } } diff --git a/stubs/console.stub b/stubs/console.stub index f409b4f..276dd95 100644 --- a/stubs/console.stub +++ b/stubs/console.stub @@ -6,27 +6,27 @@ use Illuminate\Console\Command; class {{ class }} extends Command { - /** - * The name and signature of the console command. - * - * @var string - */ - protected $signature = '{{ command }}'; - - /** - * The console command description. - * - * @var string - */ - protected $description = 'Command description'; - - /** - * Execute the console command. - * - * @return int - */ - public function handle() - { - return 0; - } + /** + * The name and signature of the console command. + * + * @var string + */ + protected $signature = '{{ command }}'; + + /** + * The console command description. + * + * @var string + */ + protected $description = 'Command description'; + + /** + * Execute the console command. + * + * @return int + */ + public function handle() + { + return 0; + } } diff --git a/stubs/controller.api.stub b/stubs/controller.api.stub index 381a9c8..d4f1452 100644 --- a/stubs/controller.api.stub +++ b/stubs/controller.api.stub @@ -7,58 +7,58 @@ use Illuminate\Http\Request; class {{ class }} extends Controller { - /** - * Display a listing of the resource. - * - * @return \Illuminate\Http\Response - */ - public function index() - { - // - } - - /** - * Store a newly created resource in storage. - * - * @param \Illuminate\Http\Request $request - * @return \Illuminate\Http\Response - */ - public function store(Request $request) - { - // - } - - /** - * Display the specified resource. - * - * @param int $id - * @return \Illuminate\Http\Response - */ - public function show($id) - { - // - } - - /** - * Update the specified resource in storage. - * - * @param \Illuminate\Http\Request $request - * @param int $id - * @return \Illuminate\Http\Response - */ - public function update(Request $request, $id) - { - // - } - - /** - * Remove the specified resource from storage. - * - * @param int $id - * @return \Illuminate\Http\Response - */ - public function destroy($id) - { - // - } + /** + * Display a listing of the resource. + * + * @return \Illuminate\Http\Response + */ + public function index() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function show($id) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param int $id + * @return \Illuminate\Http\Response + */ + public function update(Request $request, $id) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function destroy($id) + { + // + } } diff --git a/stubs/controller.invokable.stub b/stubs/controller.invokable.stub index 12d291c..c4c2a5f 100644 --- a/stubs/controller.invokable.stub +++ b/stubs/controller.invokable.stub @@ -7,14 +7,14 @@ use Illuminate\Http\Request; class {{ class }} extends Controller { - /** - * Handle the incoming request. - * - * @param \Illuminate\Http\Request $request - * @return \Illuminate\Http\Response - */ - public function __invoke(Request $request) - { - // - } + /** + * Handle the incoming request. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function __invoke(Request $request) + { + // + } } diff --git a/stubs/controller.model.api.stub b/stubs/controller.model.api.stub index 4da21ed..4f84271 100644 --- a/stubs/controller.model.api.stub +++ b/stubs/controller.model.api.stub @@ -8,58 +8,58 @@ use {{ namespacedRequests }} class {{ class }} extends Controller { - /** - * Display a listing of the resource. - * - * @return \Illuminate\Http\Response - */ - public function index() - { - // - } - - /** - * Store a newly created resource in storage. - * - * @param \{{ namespacedStoreRequest }} $request - * @return \Illuminate\Http\Response - */ - public function store({{ storeRequest }} $request) - { - // - } - - /** - * Display the specified resource. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function show({{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Update the specified resource in storage. - * - * @param \{{ namespacedUpdateRequest }} $request - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function update({{ updateRequest }} $request, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Remove the specified resource from storage. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function destroy({{ model }} ${{ modelVariable }}) - { - // - } + /** + * Display a listing of the resource. + * + * @return \Illuminate\Http\Response + */ + public function index() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \{{ namespacedStoreRequest }} $request + * @return \Illuminate\Http\Response + */ + public function store({{ storeRequest }} $request) + { + // + } + + /** + * Display the specified resource. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function show({{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \{{ namespacedUpdateRequest }} $request + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function update({{ updateRequest }} $request, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function destroy({{ model }} ${{ modelVariable }}) + { + // + } } diff --git a/stubs/controller.model.stub b/stubs/controller.model.stub index 1396bd4..4b7e049 100644 --- a/stubs/controller.model.stub +++ b/stubs/controller.model.stub @@ -8,79 +8,79 @@ use {{ namespacedRequests }} class {{ class }} extends Controller { - /** - * Display a listing of the resource. - * - * @return \Illuminate\Http\Response - */ - public function index() - { - // - } - - /** - * Show the form for creating a new resource. - * - * @return \Illuminate\Http\Response - */ - public function create() - { - // - } - - /** - * Store a newly created resource in storage. - * - * @param \{{ namespacedStoreRequest }} $request - * @return \Illuminate\Http\Response - */ - public function store({{ storeRequest }} $request) - { - // - } - - /** - * Display the specified resource. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function show({{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Show the form for editing the specified resource. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function edit({{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Update the specified resource in storage. - * - * @param \{{ namespacedUpdateRequest }} $request - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function update({{ updateRequest }} $request, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Remove the specified resource from storage. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function destroy({{ model }} ${{ modelVariable }}) - { - // - } + /** + * Display a listing of the resource. + * + * @return \Illuminate\Http\Response + */ + public function index() + { + // + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \{{ namespacedStoreRequest }} $request + * @return \Illuminate\Http\Response + */ + public function store({{ storeRequest }} $request) + { + // + } + + /** + * Display the specified resource. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function show({{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function edit({{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \{{ namespacedUpdateRequest }} $request + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function update({{ updateRequest }} $request, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function destroy({{ model }} ${{ modelVariable }}) + { + // + } } diff --git a/stubs/controller.nested.api.stub b/stubs/controller.nested.api.stub index c5fda60..3cc2c0c 100644 --- a/stubs/controller.nested.api.stub +++ b/stubs/controller.nested.api.stub @@ -9,63 +9,63 @@ use {{ namespacedParentModel }}; class {{ class }} extends Controller { - /** - * Display a listing of the resource. - * - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @return \Illuminate\Http\Response - */ - public function index({{ parentModel }} ${{ parentModelVariable }}) - { - // - } - - /** - * Store a newly created resource in storage. - * - * @param \Illuminate\Http\Request $request - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @return \Illuminate\Http\Response - */ - public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }}) - { - // - } - - /** - * Display the specified resource. - * - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Update the specified resource in storage. - * - * @param \Illuminate\Http\Request $request - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Remove the specified resource from storage. - * - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) - { - // - } + /** + * Display a listing of the resource. + * + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @return \Illuminate\Http\Response + */ + public function index({{ parentModel }} ${{ parentModelVariable }}) + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @return \Illuminate\Http\Response + */ + public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }}) + { + // + } + + /** + * Display the specified resource. + * + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) + { + // + } } diff --git a/stubs/controller.nested.stub b/stubs/controller.nested.stub index ed6a095..6022273 100644 --- a/stubs/controller.nested.stub +++ b/stubs/controller.nested.stub @@ -9,86 +9,86 @@ use {{ namespacedParentModel }}; class {{ class }} extends Controller { - /** - * Display a listing of the resource. - * - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @return \Illuminate\Http\Response - */ - public function index({{ parentModel }} ${{ parentModelVariable }}) - { - // - } - - /** - * Show the form for creating a new resource. - * - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @return \Illuminate\Http\Response - */ - public function create({{ parentModel }} ${{ parentModelVariable }}) - { - // - } - - /** - * Store a newly created resource in storage. - * - * @param \Illuminate\Http\Request $request - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @return \Illuminate\Http\Response - */ - public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }}) - { - // - } - - /** - * Display the specified resource. - * - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Show the form for editing the specified resource. - * - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function edit({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Update the specified resource in storage. - * - * @param \Illuminate\Http\Request $request - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Remove the specified resource from storage. - * - * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Http\Response - */ - public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) - { - // - } + /** + * Display a listing of the resource. + * + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @return \Illuminate\Http\Response + */ + public function index({{ parentModel }} ${{ parentModelVariable }}) + { + // + } + + /** + * Show the form for creating a new resource. + * + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @return \Illuminate\Http\Response + */ + public function create({{ parentModel }} ${{ parentModelVariable }}) + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @return \Illuminate\Http\Response + */ + public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }}) + { + // + } + + /** + * Display the specified resource. + * + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function edit({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param \{{ namespacedParentModel }} ${{ parentModelVariable }} + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Http\Response + */ + public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }}) + { + // + } } diff --git a/stubs/controller.plain.stub b/stubs/controller.plain.stub index da07e7d..55c7516 100644 --- a/stubs/controller.plain.stub +++ b/stubs/controller.plain.stub @@ -7,5 +7,5 @@ use Illuminate\Http\Request; class {{ class }} extends Controller { - // + // } diff --git a/stubs/controller.stub b/stubs/controller.stub index 2e6b620..d9ffad9 100644 --- a/stubs/controller.stub +++ b/stubs/controller.stub @@ -7,79 +7,79 @@ use Illuminate\Http\Request; class {{ class }} extends Controller { - /** - * Display a listing of the resource. - * - * @return \Illuminate\Http\Response - */ - public function index() - { - // - } - - /** - * Show the form for creating a new resource. - * - * @return \Illuminate\Http\Response - */ - public function create() - { - // - } - - /** - * Store a newly created resource in storage. - * - * @param \Illuminate\Http\Request $request - * @return \Illuminate\Http\Response - */ - public function store(Request $request) - { - // - } - - /** - * Display the specified resource. - * - * @param int $id - * @return \Illuminate\Http\Response - */ - public function show($id) - { - // - } - - /** - * Show the form for editing the specified resource. - * - * @param int $id - * @return \Illuminate\Http\Response - */ - public function edit($id) - { - // - } - - /** - * Update the specified resource in storage. - * - * @param \Illuminate\Http\Request $request - * @param int $id - * @return \Illuminate\Http\Response - */ - public function update(Request $request, $id) - { - // - } - - /** - * Remove the specified resource from storage. - * - * @param int $id - * @return \Illuminate\Http\Response - */ - public function destroy($id) - { - // - } + /** + * Display a listing of the resource. + * + * @return \Illuminate\Http\Response + */ + public function index() + { + // + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function show($id) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function edit($id) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param int $id + * @return \Illuminate\Http\Response + */ + public function update(Request $request, $id) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function destroy($id) + { + // + } } diff --git a/stubs/event.stub b/stubs/event.stub index 47f8c91..c43b521 100644 --- a/stubs/event.stub +++ b/stubs/event.stub @@ -12,25 +12,25 @@ use Illuminate\Queue\SerializesModels; class {{ class }} { - use Dispatchable, InteractsWithSockets, SerializesModels; - - /** - * Create a new event instance. - * - * @return void - */ - public function __construct() - { - // - } - - /** - * Get the channels the event should broadcast on. - * - * @return \Illuminate\Broadcasting\Channel|array - */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + use Dispatchable, InteractsWithSockets, SerializesModels; + + /** + * Create a new event instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Get the channels the event should broadcast on. + * + * @return \Illuminate\Broadcasting\Channel|array + */ + public function broadcastOn() + { + return new PrivateChannel('channel-name'); + } } diff --git a/stubs/factory.stub b/stubs/factory.stub index 0759b5d..4557b28 100644 --- a/stubs/factory.stub +++ b/stubs/factory.stub @@ -5,19 +5,19 @@ namespace {{ factoryNamespace }}; use Illuminate\Database\Eloquent\Factories\Factory; /** - * @extends \Illuminate\Database\Eloquent\Factories\Factory<\{{ namespacedModel }}> - */ +* @extends \Illuminate\Database\Eloquent\Factories\Factory<\{{ namespacedModel }}> +*/ class {{ factory }}Factory extends Factory { - /** - * Define the model's default state. - * - * @return array - */ - public function definition() - { - return [ - // - ]; - } + /** + * Define the model's default state. + * + * @return array + */ + public function definition() + { + return [ + // + ]; + } } diff --git a/stubs/job.queued.stub b/stubs/job.queued.stub index 4b78746..6f9fda2 100644 --- a/stubs/job.queued.stub +++ b/stubs/job.queued.stub @@ -11,25 +11,25 @@ use Illuminate\Queue\SerializesModels; class {{ class }} implements ShouldQueue { - use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; - - /** - * Create a new job instance. - * - * @return void - */ - public function __construct() - { - // - } - - /** - * Execute the job. - * - * @return void - */ - public function handle() - { - // - } + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + + /** + * Create a new job instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Execute the job. + * + * @return void + */ + public function handle() + { + // + } } diff --git a/stubs/job.stub b/stubs/job.stub index 89dc9d7..88bd1bc 100644 --- a/stubs/job.stub +++ b/stubs/job.stub @@ -6,25 +6,25 @@ use Illuminate\Foundation\Bus\Dispatchable; class {{ class }} { - use Dispatchable; - - /** - * Create a new job instance. - * - * @return void - */ - public function __construct() - { - // - } - - /** - * Execute the job. - * - * @return void - */ - public function handle() - { - // - } + use Dispatchable; + + /** + * Create a new job instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Execute the job. + * + * @return void + */ + public function handle() + { + // + } } diff --git a/stubs/mail.stub b/stubs/mail.stub index f432a81..3601acc 100644 --- a/stubs/mail.stub +++ b/stubs/mail.stub @@ -9,25 +9,25 @@ use Illuminate\Queue\SerializesModels; class {{ class }} extends Mailable { - use Queueable, SerializesModels; - - /** - * Create a new message instance. - * - * @return void - */ - public function __construct() - { - // - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - return $this->view('view.name'); - } + use Queueable, SerializesModels; + + /** + * Create a new message instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Build the message. + * + * @return $this + */ + public function build() + { + return $this->view('view.name'); + } } diff --git a/stubs/markdown-mail.stub b/stubs/markdown-mail.stub index e4c7cd4..80281ad 100644 --- a/stubs/markdown-mail.stub +++ b/stubs/markdown-mail.stub @@ -9,25 +9,25 @@ use Illuminate\Queue\SerializesModels; class {{ class }} extends Mailable { - use Queueable, SerializesModels; - - /** - * Create a new message instance. - * - * @return void - */ - public function __construct() - { - // - } - - /** - * Build the message. - * - * @return $this - */ - public function build() - { - return $this->markdown('{{ view }}'); - } + use Queueable, SerializesModels; + + /** + * Create a new message instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Build the message. + * + * @return $this + */ + public function build() + { + return $this->markdown('{{ view }}'); + } } diff --git a/stubs/markdown-notification.stub b/stubs/markdown-notification.stub index 5438f04..6f3712c 100644 --- a/stubs/markdown-notification.stub +++ b/stubs/markdown-notification.stub @@ -9,50 +9,50 @@ use Illuminate\Notifications\Notification; class {{ class }} extends Notification { - use Queueable; - - /** - * Create a new notification instance. - * - * @return void - */ - public function __construct() - { - // - } - - /** - * Get the notification's delivery channels. - * - * @param mixed $notifiable - * @return array - */ - public function via($notifiable) - { - return ['mail']; - } - - /** - * Get the mail representation of the notification. - * - * @param mixed $notifiable - * @return \Illuminate\Notifications\Messages\MailMessage - */ - public function toMail($notifiable) - { - return (new MailMessage)->markdown('{{ view }}'); - } - - /** - * Get the array representation of the notification. - * - * @param mixed $notifiable - * @return array - */ - public function toArray($notifiable) - { - return [ - // - ]; - } + use Queueable; + + /** + * Create a new notification instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Get the notification's delivery channels. + * + * @param mixed $notifiable + * @return array + */ + public function via($notifiable) + { + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param mixed $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + */ + public function toMail($notifiable) + { + return (new MailMessage)->markdown('{{ view }}'); + } + + /** + * Get the array representation of the notification. + * + * @param mixed $notifiable + * @return array + */ + public function toArray($notifiable) + { + return [ + // + ]; + } } diff --git a/stubs/middleware.stub b/stubs/middleware.stub index 855594c..954790a 100644 --- a/stubs/middleware.stub +++ b/stubs/middleware.stub @@ -7,15 +7,15 @@ use Illuminate\Http\Request; class {{ class }} { - /** - * Handle an incoming request. - * - * @param \Illuminate\Http\Request $request - * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next - * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse - */ - public function handle(Request $request, Closure $next) - { - return $next($request); - } + /** + * Handle an incoming request. + * + * @param \Illuminate\Http\Request $request + * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next + * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse + */ + public function handle(Request $request, Closure $next) + { + return $next($request); + } } diff --git a/stubs/migration.create.stub b/stubs/migration.create.stub index 0e0ec22..d4404e8 100644 --- a/stubs/migration.create.stub +++ b/stubs/migration.create.stub @@ -6,26 +6,26 @@ use Illuminate\Support\Facades\Schema; return new class extends Migration { - /** - * Run the migrations. - * - * @return void - */ - public function up() - { - Schema::create('{{ table }}', function (Blueprint $table) { - $table->id(); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('{{ table }}'); - } + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('{{ table }}', function (Blueprint $table) { + $table->id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('{{ table }}'); + } }; diff --git a/stubs/migration.stub b/stubs/migration.stub index 41dd1c8..63d1c1b 100644 --- a/stubs/migration.stub +++ b/stubs/migration.stub @@ -6,23 +6,23 @@ use Illuminate\Support\Facades\Schema; return new class extends Migration { - /** - * Run the migrations. - * - * @return void - */ - public function up() - { - // - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - // - } + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + // + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } }; diff --git a/stubs/migration.update.stub b/stubs/migration.update.stub index d31a2c0..905fcd9 100644 --- a/stubs/migration.update.stub +++ b/stubs/migration.update.stub @@ -6,27 +6,27 @@ use Illuminate\Support\Facades\Schema; return new class extends Migration { - /** - * Run the migrations. - * - * @return void - */ - public function up() - { - Schema::table('{{ table }}', function (Blueprint $table) { - // - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('{{ table }}', function (Blueprint $table) { - // - }); - } + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::table('{{ table }}', function (Blueprint $table) { + // + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('{{ table }}', function (Blueprint $table) { + // + }); + } }; diff --git a/stubs/model.pivot.stub b/stubs/model.pivot.stub index 35a674a..8e9a989 100644 --- a/stubs/model.pivot.stub +++ b/stubs/model.pivot.stub @@ -6,5 +6,5 @@ use Illuminate\Database\Eloquent\Relations\Pivot; class {{ class }} extends Pivot { - // + // } diff --git a/stubs/model.stub b/stubs/model.stub index 2956d09..89fa27d 100644 --- a/stubs/model.stub +++ b/stubs/model.stub @@ -7,5 +7,5 @@ use Illuminate\Database\Eloquent\Model; class {{ class }} extends Model { - use HasFactory; + use HasFactory; } diff --git a/stubs/notification.stub b/stubs/notification.stub index b170a46..0adceb9 100644 --- a/stubs/notification.stub +++ b/stubs/notification.stub @@ -9,53 +9,53 @@ use Illuminate\Notifications\Notification; class {{ class }} extends Notification { - use Queueable; - - /** - * Create a new notification instance. - * - * @return void - */ - public function __construct() - { - // - } - - /** - * Get the notification's delivery channels. - * - * @param mixed $notifiable - * @return array - */ - public function via($notifiable) - { - return ['mail']; - } - - /** - * Get the mail representation of the notification. - * - * @param mixed $notifiable - * @return \Illuminate\Notifications\Messages\MailMessage - */ - public function toMail($notifiable) - { - return (new MailMessage) - ->line('The introduction to the notification.') - ->action('Notification Action', url('/')) - ->line('Thank you for using our application!'); - } - - /** - * Get the array representation of the notification. - * - * @param mixed $notifiable - * @return array - */ - public function toArray($notifiable) - { - return [ - // - ]; - } + use Queueable; + + /** + * Create a new notification instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Get the notification's delivery channels. + * + * @param mixed $notifiable + * @return array + */ + public function via($notifiable) + { + return ['mail']; + } + + /** + * Get the mail representation of the notification. + * + * @param mixed $notifiable + * @return \Illuminate\Notifications\Messages\MailMessage + */ + public function toMail($notifiable) + { + return (new MailMessage) + ->line('The introduction to the notification.') + ->action('Notification Action', url('/')) + ->line('Thank you for using our application!'); + } + + /** + * Get the array representation of the notification. + * + * @param mixed $notifiable + * @return array + */ + public function toArray($notifiable) + { + return [ + // + ]; + } } diff --git a/stubs/observer.plain.stub b/stubs/observer.plain.stub index e2506b7..2bbf992 100644 --- a/stubs/observer.plain.stub +++ b/stubs/observer.plain.stub @@ -4,5 +4,5 @@ namespace {{ namespace }}; class {{ class }} { - // + // } diff --git a/stubs/observer.stub b/stubs/observer.stub index 32ca095..977ba8d 100644 --- a/stubs/observer.stub +++ b/stubs/observer.stub @@ -6,58 +6,58 @@ use {{ namespacedModel }}; class {{ class }} { - /** - * Handle the {{ model }} "created" event. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return void - */ - public function created({{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Handle the {{ model }} "updated" event. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return void - */ - public function updated({{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Handle the {{ model }} "deleted" event. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return void - */ - public function deleted({{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Handle the {{ model }} "restored" event. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return void - */ - public function restored({{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Handle the {{ model }} "force deleted" event. - * - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return void - */ - public function forceDeleted({{ model }} ${{ modelVariable }}) - { - // - } + /** + * Handle the {{ model }} "created" event. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return void + */ + public function created({{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Handle the {{ model }} "updated" event. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return void + */ + public function updated({{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Handle the {{ model }} "deleted" event. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return void + */ + public function deleted({{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Handle the {{ model }} "restored" event. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return void + */ + public function restored({{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Handle the {{ model }} "force deleted" event. + * + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return void + */ + public function forceDeleted({{ model }} ${{ modelVariable }}) + { + // + } } diff --git a/stubs/policy.plain.stub b/stubs/policy.plain.stub index b014d85..7db81fe 100644 --- a/stubs/policy.plain.stub +++ b/stubs/policy.plain.stub @@ -7,15 +7,15 @@ use {{ namespacedUserModel }}; class {{ class }} { - use HandlesAuthorization; - - /** - * Create a new policy instance. - * - * @return void - */ - public function __construct() - { - // - } + use HandlesAuthorization; + + /** + * Create a new policy instance. + * + * @return void + */ + public function __construct() + { + // + } } diff --git a/stubs/policy.stub b/stubs/policy.stub index 985babb..1600c74 100644 --- a/stubs/policy.stub +++ b/stubs/policy.stub @@ -8,87 +8,87 @@ use {{ namespacedUserModel }}; class {{ class }} { - use HandlesAuthorization; - - /** - * Determine whether the user can view any models. - * - * @param \{{ namespacedUserModel }} $user - * @return \Illuminate\Auth\Access\Response|bool - */ - public function viewAny({{ user }} $user) - { - // - } - - /** - * Determine whether the user can view the model. - * - * @param \{{ namespacedUserModel }} $user - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Auth\Access\Response|bool - */ - public function view({{ user }} $user, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Determine whether the user can create models. - * - * @param \{{ namespacedUserModel }} $user - * @return \Illuminate\Auth\Access\Response|bool - */ - public function create({{ user }} $user) - { - // - } - - /** - * Determine whether the user can update the model. - * - * @param \{{ namespacedUserModel }} $user - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Auth\Access\Response|bool - */ - public function update({{ user }} $user, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Determine whether the user can delete the model. - * - * @param \{{ namespacedUserModel }} $user - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Auth\Access\Response|bool - */ - public function delete({{ user }} $user, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Determine whether the user can restore the model. - * - * @param \{{ namespacedUserModel }} $user - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Auth\Access\Response|bool - */ - public function restore({{ user }} $user, {{ model }} ${{ modelVariable }}) - { - // - } - - /** - * Determine whether the user can permanently delete the model. - * - * @param \{{ namespacedUserModel }} $user - * @param \{{ namespacedModel }} ${{ modelVariable }} - * @return \Illuminate\Auth\Access\Response|bool - */ - public function forceDelete({{ user }} $user, {{ model }} ${{ modelVariable }}) - { - // - } + use HandlesAuthorization; + + /** + * Determine whether the user can view any models. + * + * @param \{{ namespacedUserModel }} $user + * @return \Illuminate\Auth\Access\Response|bool + */ + public function viewAny({{ user }} $user) + { + // + } + + /** + * Determine whether the user can view the model. + * + * @param \{{ namespacedUserModel }} $user + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Auth\Access\Response|bool + */ + public function view({{ user }} $user, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Determine whether the user can create models. + * + * @param \{{ namespacedUserModel }} $user + * @return \Illuminate\Auth\Access\Response|bool + */ + public function create({{ user }} $user) + { + // + } + + /** + * Determine whether the user can update the model. + * + * @param \{{ namespacedUserModel }} $user + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Auth\Access\Response|bool + */ + public function update({{ user }} $user, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Determine whether the user can delete the model. + * + * @param \{{ namespacedUserModel }} $user + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Auth\Access\Response|bool + */ + public function delete({{ user }} $user, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Determine whether the user can restore the model. + * + * @param \{{ namespacedUserModel }} $user + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Auth\Access\Response|bool + */ + public function restore({{ user }} $user, {{ model }} ${{ modelVariable }}) + { + // + } + + /** + * Determine whether the user can permanently delete the model. + * + * @param \{{ namespacedUserModel }} $user + * @param \{{ namespacedModel }} ${{ modelVariable }} + * @return \Illuminate\Auth\Access\Response|bool + */ + public function forceDelete({{ user }} $user, {{ model }} ${{ modelVariable }}) + { + // + } } diff --git a/stubs/provider.stub b/stubs/provider.stub index 6dedc58..fdd32a8 100644 --- a/stubs/provider.stub +++ b/stubs/provider.stub @@ -6,23 +6,23 @@ use Illuminate\Support\ServiceProvider; class {{ class }} extends ServiceProvider { - /** - * Register services. - * - * @return void - */ - public function register() - { - // - } - - /** - * Bootstrap services. - * - * @return void - */ - public function boot() - { - // - } + /** + * Register services. + * + * @return void + */ + public function register() + { + // + } + + /** + * Bootstrap services. + * + * @return void + */ + public function boot() + { + // + } } diff --git a/stubs/request.stub b/stubs/request.stub index 947cf3d..894ee08 100644 --- a/stubs/request.stub +++ b/stubs/request.stub @@ -6,25 +6,25 @@ use Illuminate\Foundation\Http\FormRequest; class {{ class }} extends FormRequest { - /** - * Determine if the user is authorized to make this request. - * - * @return bool - */ - public function authorize() - { - return false; - } - - /** - * Get the validation rules that apply to the request. - * - * @return array - */ - public function rules() - { - return [ - // - ]; - } + /** + * Determine if the user is authorized to make this request. + * + * @return bool + */ + public function authorize() + { + return false; + } + + /** + * Get the validation rules that apply to the request. + * + * @return array + */ + public function rules() + { + return [ + // + ]; + } } diff --git a/stubs/resource-collection.stub b/stubs/resource-collection.stub index ddec961..be4c1bd 100644 --- a/stubs/resource-collection.stub +++ b/stubs/resource-collection.stub @@ -6,14 +6,14 @@ use Illuminate\Http\Resources\Json\ResourceCollection; class {{ class }} extends ResourceCollection { - /** - * Transform the resource collection into an array. - * - * @param \Illuminate\Http\Request $request - * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable - */ - public function toArray($request) - { - return parent::toArray($request); - } + /** + * Transform the resource collection into an array. + * + * @param \Illuminate\Http\Request $request + * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable + */ + public function toArray($request) + { + return parent::toArray($request); + } } diff --git a/stubs/resource.stub b/stubs/resource.stub index 05bacc3..c6c739e 100644 --- a/stubs/resource.stub +++ b/stubs/resource.stub @@ -6,14 +6,14 @@ use Illuminate\Http\Resources\Json\JsonResource; class {{ class }} extends JsonResource { - /** - * Transform the resource into an array. - * - * @param \Illuminate\Http\Request $request - * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable - */ - public function toArray($request) - { - return parent::toArray($request); - } + /** + * Transform the resource into an array. + * + * @param \Illuminate\Http\Request $request + * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable + */ + public function toArray($request) + { + return parent::toArray($request); + } } diff --git a/stubs/rule.stub b/stubs/rule.stub index 587ec32..d6185d8 100644 --- a/stubs/rule.stub +++ b/stubs/rule.stub @@ -6,35 +6,35 @@ use Illuminate\Contracts\Validation\{{ ruleType }}; class {{ class }} implements {{ ruleType }} { - /** - * Create a new rule instance. - * - * @return void - */ - public function __construct() - { - // - } - - /** - * Determine if the validation rule passes. - * - * @param string $attribute - * @param mixed $value - * @return bool - */ - public function passes($attribute, $value) - { - // - } - - /** - * Get the validation error message. - * - * @return string - */ - public function message() - { - return 'The validation error message.'; - } + /** + * Create a new rule instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Determine if the validation rule passes. + * + * @param string $attribute + * @param mixed $value + * @return bool + */ + public function passes($attribute, $value) + { + // + } + + /** + * Get the validation error message. + * + * @return string + */ + public function message() + { + return 'The validation error message.'; + } } diff --git a/stubs/scope.stub b/stubs/scope.stub index b7dc351..08a9b45 100644 --- a/stubs/scope.stub +++ b/stubs/scope.stub @@ -8,16 +8,16 @@ use Illuminate\Database\Eloquent\Scope; class {{ class }} implements Scope { - /** - * Apply the scope to a given Eloquent query builder. - * - * @param \Illuminate\Database\Eloquent\Builder $builder - * @param \Illuminate\Database\Eloquent\Model $model - * @return void - */ - public function apply(Builder $builder, Model $model) - { - // - } - + /** + * Apply the scope to a given Eloquent query builder. + * + * @param \Illuminate\Database\Eloquent\Builder $builder + * @param \Illuminate\Database\Eloquent\Model $model + * @return void + */ + public function apply(Builder $builder, Model $model) + { + // + } + } diff --git a/stubs/seeder.stub b/stubs/seeder.stub index 19ae5f5..263bf65 100644 --- a/stubs/seeder.stub +++ b/stubs/seeder.stub @@ -7,13 +7,13 @@ use Illuminate\Database\Seeder; class {{ class }} extends Seeder { - /** - * Run the database seeds. - * - * @return void - */ - public function run() - { - // - } + /** + * Run the database seeds. + * + * @return void + */ + public function run() + { + // + } } diff --git a/stubs/test.stub b/stubs/test.stub index 84c75cb..4a2baed 100644 --- a/stubs/test.stub +++ b/stubs/test.stub @@ -8,15 +8,15 @@ use Tests\TestCase; class {{ class }} extends TestCase { - /** - * A basic feature test example. - * - * @return void - */ - public function test_example() - { - $response = $this->get('/'); - - $response->assertStatus(200); - } + /** + * A basic feature test example. + * + * @return void + */ + public function test_example() + { + $response = $this->get('/'); + + $response->assertStatus(200); + } } diff --git a/stubs/test.unit.stub b/stubs/test.unit.stub index b6816aa..b15a0ce 100644 --- a/stubs/test.unit.stub +++ b/stubs/test.unit.stub @@ -6,13 +6,13 @@ use PHPUnit\Framework\TestCase; class {{ class }} extends TestCase { - /** - * A basic unit test example. - * - * @return void - */ - public function test_example() - { - $this->assertTrue(true); - } + /** + * A basic unit test example. + * + * @return void + */ + public function test_example() + { + $this->assertTrue(true); + } } diff --git a/stubs/view-component.stub b/stubs/view-component.stub index eab8fd3..2cc1cab 100644 --- a/stubs/view-component.stub +++ b/stubs/view-component.stub @@ -6,23 +6,23 @@ use Illuminate\View\Component; class {{ class }} extends Component { - /** - * Create a new component instance. - * - * @return void - */ - public function __construct() - { - // - } - - /** - * Get the view / contents that represent the component. - * - * @return \Illuminate\Contracts\View\View|\Closure|string - */ - public function render() - { - return {{ view }}; - } + /** + * Create a new component instance. + * + * @return void + */ + public function __construct() + { + // + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\Contracts\View\View|\Closure|string + */ + public function render() + { + return {{ view }}; + } }