diff --git a/stubs/modules/command.stub b/stubs/modules/command.stub index 87469de..a58cd32 100644 --- a/stubs/modules/command.stub +++ b/stubs/modules/command.stub @@ -3,8 +3,8 @@ namespace $NAMESPACE$; use Illuminate\Console\Command; -use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; +use Symfony\Component\Console\Input\InputOption; class $CLASS$ extends Command { diff --git a/stubs/modules/component-class.stub b/stubs/modules/component-class.stub index 8926bec..21053b5 100644 --- a/stubs/modules/component-class.stub +++ b/stubs/modules/component-class.stub @@ -3,6 +3,7 @@ namespace $NAMESPACE$; use Illuminate\View\Component; +use Illuminate\View\View; class $CLASS$ extends Component { @@ -19,7 +20,7 @@ class $CLASS$ extends Component /** * Get the view / contents that represent the component. * - * @return \Illuminate\View\View|string + * @return View|string */ public function render() { diff --git a/stubs/modules/controller-api.stub b/stubs/modules/controller-api.stub index a1d6a43..b8edf68 100644 --- a/stubs/modules/controller-api.stub +++ b/stubs/modules/controller-api.stub @@ -2,14 +2,15 @@ namespace $CLASS_NAMESPACE$; -use Illuminate\Http\Request; use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; use Juzaweb\Modules\Core\Http\Controllers\APIController; class $CLASS$ extends APIController { /** * Display a listing of the resource. + * * @return JsonResponse */ public function index(Request $request) @@ -19,7 +20,8 @@ class $CLASS$ extends APIController /** * Store a newly created resource in storage. - * @param Request $request + * + * @param Request $request * @return JsonResponse */ public function store(Request $request) @@ -29,7 +31,8 @@ class $CLASS$ extends APIController /** * Show the specified resource. - * @param string $id + * + * @param string $id * @return JsonResponse */ public function show(string $id) @@ -39,8 +42,9 @@ class $CLASS$ extends APIController /** * Update the specified resource in storage. - * @param Request $request - * @param string $id + * + * @param Request $request + * @param string $id * @return JsonResponse */ public function update(Request $request, string $id) @@ -50,7 +54,8 @@ class $CLASS$ extends APIController /** * Remove the specified resource from storage. - * @param string $id + * + * @param string $id * @return JsonResponse */ public function destroy(string $id) diff --git a/stubs/modules/cruds/admin/controller.stub b/stubs/modules/cruds/admin/controller.stub index 7ebc578..b0776c4 100644 --- a/stubs/modules/cruds/admin/controller.stub +++ b/stubs/modules/cruds/admin/controller.stub @@ -2,13 +2,13 @@ namespace $CLASS_NAMESPACE$; -use Juzaweb\Modules\Core\Facades\Breadcrumb; -use Juzaweb\Modules\Core\Http\Controllers\AdminController; -use Illuminate\Support\Facades\DB; -use $MODEL_NAMESPACE$; -use $REQUEST_NAMESPACE$; use $BULK_REQUEST_NAMESPACE$; use $DATATABLE_NAMESPACE$; +use $MODEL_NAMESPACE$; +use $REQUEST_NAMESPACE$; +use Illuminate\Support\Facades\DB; +use Juzaweb\Modules\Core\Facades\Breadcrumb; +use Juzaweb\Modules\Core\Http\Controllers\AdminController; class $CLASS$ extends AdminController { @@ -35,7 +35,7 @@ class $CLASS$ extends AdminController return view( '$RESOURCE_NAMESPCAE$::$KEBAB_SINGULAR_TITLE$.form', [ - 'model' => new $MODEL_CLASS$(), + 'model' => new $MODEL_CLASS$, 'action' => action([static::class, 'store']), 'backUrl' => $backUrl, ] diff --git a/stubs/modules/cruds/api/controller.stub b/stubs/modules/cruds/api/controller.stub index 640d699..b5cf530 100644 --- a/stubs/modules/cruds/api/controller.stub +++ b/stubs/modules/cruds/api/controller.stub @@ -1,21 +1,22 @@ get('/'); diff --git a/stubs/modules/job-queued.stub b/stubs/modules/job-queued.stub index 5bcccf1..af09484 100644 --- a/stubs/modules/job-queued.stub +++ b/stubs/modules/job-queued.stub @@ -3,10 +3,10 @@ namespace $NAMESPACE$; use Illuminate\Bus\Queueable; -use Illuminate\Queue\SerializesModels; -use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; class $CLASS$ implements ShouldQueue { diff --git a/stubs/modules/listener-duck.stub b/stubs/modules/listener-duck.stub index 5d700db..455e119 100644 --- a/stubs/modules/listener-duck.stub +++ b/stubs/modules/listener-duck.stub @@ -2,8 +2,8 @@ namespace $NAMESPACE$; -use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Queue\InteractsWithQueue; class $CLASS$ { diff --git a/stubs/modules/listener-queued-duck.stub b/stubs/modules/listener-queued-duck.stub index d61c992..e3ede92 100644 --- a/stubs/modules/listener-queued-duck.stub +++ b/stubs/modules/listener-queued-duck.stub @@ -2,8 +2,8 @@ namespace $NAMESPACE$; -use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Queue\InteractsWithQueue; class $CLASS$ implements ShouldQueue { diff --git a/stubs/modules/listener-queued.stub b/stubs/modules/listener-queued.stub index f60ddf7..85c16fb 100644 --- a/stubs/modules/listener-queued.stub +++ b/stubs/modules/listener-queued.stub @@ -3,8 +3,8 @@ namespace $NAMESPACE$; use $EVENTNAME$; -use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Queue\InteractsWithQueue; class $CLASS$ implements ShouldQueue { diff --git a/stubs/modules/listener.stub b/stubs/modules/listener.stub index d527516..d941ab4 100644 --- a/stubs/modules/listener.stub +++ b/stubs/modules/listener.stub @@ -3,8 +3,8 @@ namespace $NAMESPACE$; use $EVENTNAME$; -use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Queue\InteractsWithQueue; class $CLASS$ { @@ -21,7 +21,7 @@ class $CLASS$ /** * Handle the event. * - * @param $SHORTEVENTNAME$ $event + * @param $SHORTEVENTNAME$ $event * @return void */ public function handle($SHORTEVENTNAME$ $event) diff --git a/stubs/modules/mail.stub b/stubs/modules/mail.stub index 7e9a47b..905f0d1 100644 --- a/stubs/modules/mail.stub +++ b/stubs/modules/mail.stub @@ -3,9 +3,9 @@ namespace $NAMESPACE$; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; -use Illuminate\Contracts\Queue\ShouldQueue; class $CLASS$ extends Mailable { diff --git a/stubs/modules/middleware.stub b/stubs/modules/middleware.stub index 954583e..f128e97 100644 --- a/stubs/modules/middleware.stub +++ b/stubs/modules/middleware.stub @@ -10,8 +10,8 @@ class $CLASS$ /** * Handle an incoming request. * - * @param \Illuminate\Http\Request $request - * @param \Closure $next + * @param Request $request + * @param Closure $next * @return mixed */ public function handle(Request $request, Closure $next) diff --git a/stubs/modules/migration/plain.stub b/stubs/modules/migration/plain.stub index e46b052..41dd1c8 100644 --- a/stubs/modules/migration/plain.stub +++ b/stubs/modules/migration/plain.stub @@ -1,8 +1,8 @@ $collection @@ -15,7 +15,7 @@ class $CLASS$ extends ResourceCollection /** * Transform the resource collection into an array. * - * @param \Illuminate\Http\Request $request + * @param Request $request * @return array */ public function toArray(Request $request): array diff --git a/stubs/modules/resources/resource-collection.stub b/stubs/modules/resources/resource-collection.stub index 1f9627f..2a1da15 100644 --- a/stubs/modules/resources/resource-collection.stub +++ b/stubs/modules/resources/resource-collection.stub @@ -9,7 +9,7 @@ class $CLASS$ extends ResourceCollection /** * Transform the resource collection into an array. * - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request $request * @return array */ public function toArray(Request $request): array diff --git a/stubs/modules/resources/resource-with-model.stub b/stubs/modules/resources/resource-with-model.stub index c90f3bb..b909f61 100644 --- a/stubs/modules/resources/resource-with-model.stub +++ b/stubs/modules/resources/resource-with-model.stub @@ -2,9 +2,9 @@ namespace $NAMESPACE$; +use $MODEL_NAMESPACE$; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; -use $MODEL_NAMESPACE$; /** * @property-read $MODEL_NAME$ $resource diff --git a/stubs/modules/resources/resource.stub b/stubs/modules/resources/resource.stub index bc7bde0..d95bbc1 100644 --- a/stubs/modules/resources/resource.stub +++ b/stubs/modules/resources/resource.stub @@ -9,7 +9,7 @@ class $CLASS$ extends JsonResource /** * Transform the resource into an array. * - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request $request * @return array */ public function toArray(Request $request): array diff --git a/stubs/modules/route-provider.stub b/stubs/modules/route-provider.stub index d6b8924..908774a 100644 --- a/stubs/modules/route-provider.stub +++ b/stubs/modules/route-provider.stub @@ -2,8 +2,8 @@ namespace $NAMESPACE$; -use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; +use Illuminate\Support\Facades\Route; use Juzaweb\Modules\Core\Facades\Locale; class $CLASS$ extends ServiceProvider @@ -24,11 +24,11 @@ class $CLASS$ extends ServiceProvider Route::middleware(['admin']) ->prefix($adminPrefix) - ->group(__DIR__ . '/../routes/admin.php'); + ->group(__DIR__.'/../routes/admin.php'); Route::middleware(['theme']) ->prefix(Locale::setLocale()) - ->group(__DIR__ . '/../routes/web.php'); + ->group(__DIR__.'/../routes/web.php'); }); } } diff --git a/stubs/modules/rule.stub b/stubs/modules/rule.stub index 7f9af33..a23baee 100644 --- a/stubs/modules/rule.stub +++ b/stubs/modules/rule.stub @@ -4,6 +4,7 @@ namespace $NAMESPACE$; use Closure; use Illuminate\Contracts\Validation\ValidationRule; +use Illuminate\Translation\PotentiallyTranslatedString; class $CLASS$ implements ValidationRule { @@ -18,7 +19,7 @@ class $CLASS$ implements ValidationRule /** * Run the validation rule. * - * @param \Closure(string, ?string=): \Illuminate\Translation\PotentiallyTranslatedString $fail + * @param Closure(string, ?string=): PotentiallyTranslatedString $fail */ public function validate(string $attribute, mixed $value, Closure $fail): void { diff --git a/stubs/modules/scaffold/provider.stub b/stubs/modules/scaffold/provider.stub index 93e579e..84fc33f 100644 --- a/stubs/modules/scaffold/provider.stub +++ b/stubs/modules/scaffold/provider.stub @@ -2,8 +2,8 @@ namespace $NAMESPACE$; -use Juzaweb\Modules\Core\Providers\ServiceProvider; use Illuminate\Support\Facades\File; +use Juzaweb\Modules\Core\Providers\ServiceProvider; class $CLASS$ extends ServiceProvider { @@ -17,7 +17,7 @@ class $CLASS$ extends ServiceProvider $this->registerTranslations(); $this->registerConfig(); $this->registerViews(); - $this->loadMigrationsFrom(__DIR__ . '/../../$MIGRATIONS_PATH$'); + $this->loadMigrationsFrom(__DIR__.'/../../$MIGRATIONS_PATH$'); $this->app->register(RouteServiceProvider::class); } @@ -29,25 +29,25 @@ class $CLASS$ extends ServiceProvider protected function registerConfig(): void { $this->publishes([ - __DIR__ . '/../../$PATH_CONFIG$/config.php' => config_path('$KEBAB_SINGULAR_TITLE$.php'), + __DIR__.'/../../$PATH_CONFIG$/config.php' => config_path('$KEBAB_SINGULAR_TITLE$.php'), ], '$KEBAB_SINGULAR_TITLE$-config'); - $this->mergeConfigFrom(__DIR__ . '/../../$PATH_CONFIG$/config.php', '$KEBAB_SINGULAR_TITLE$'); + $this->mergeConfigFrom(__DIR__.'/../../$PATH_CONFIG$/config.php', '$KEBAB_SINGULAR_TITLE$'); } protected function registerTranslations(): void { - $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', '$KEBAB_SINGULAR_TITLE$'); - $this->loadJsonTranslationsFrom(__DIR__ . '/../resources/lang'); + $this->loadTranslationsFrom(__DIR__.'/../resources/lang', '$KEBAB_SINGULAR_TITLE$'); + $this->loadJsonTranslationsFrom(__DIR__.'/../resources/lang'); } protected function registerViews(): void { $viewPath = resource_path('views/modules/$KEBAB_SINGULAR_TITLE$'); - $sourcePath = __DIR__ . '/../resources/views'; + $sourcePath = __DIR__.'/../resources/views'; $this->publishes([ - $sourcePath => $viewPath + $sourcePath => $viewPath, ], ['views', '$KEBAB_SINGULAR_TITLE$-module-views']); $this->loadViewsFrom($sourcePath, '$KEBAB_SINGULAR_TITLE$'); diff --git a/stubs/modules/seeder.stub b/stubs/modules/seeder.stub index f35057d..9420aa9 100644 --- a/stubs/modules/seeder.stub +++ b/stubs/modules/seeder.stub @@ -2,8 +2,8 @@ namespace $NAMESPACE$; -use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Seeder; class $NAME$ extends Seeder { diff --git a/stubs/modules/test-case.stub b/stubs/modules/test-case.stub index 4ff145b..7727a26 100644 --- a/stubs/modules/test-case.stub +++ b/stubs/modules/test-case.stub @@ -2,8 +2,30 @@ namespace $PHP_MODULE_NAMESPACE$\$STUDLY_NAME$\Tests; +use Illuminate\Foundation\Application; +use Juzaweb\Hooks\HooksServiceProvider; +use Juzaweb\Modules\Core\Contracts\ThemeSetting; +use Juzaweb\Modules\Core\Facades\Chart; +use Juzaweb\Modules\Core\Facades\Field; +use Juzaweb\Modules\Core\Facades\Module; +use Juzaweb\Modules\Core\Facades\PageBlock; +use Juzaweb\Modules\Core\Facades\PageTemplate; +use Juzaweb\Modules\Core\Facades\Sidebar; +use Juzaweb\Modules\Core\Facades\Theme; +use Juzaweb\Modules\Core\Facades\Widget; +use Juzaweb\Modules\Core\Models\User; +use Juzaweb\Modules\Core\Permissions\PermissionServiceProvider; use Juzaweb\Modules\Core\Providers\CoreServiceProvider; +use Juzaweb\Modules\Core\Translations\TranslationsServiceProvider; +use Juzaweb\QueryCache\QueryCacheServiceProvider; use Orchestra\Testbench\TestCase as Orchestra; +use Pion\Laravel\ChunkUpload\Providers\ChunkUploadServiceProvider; +use Spatie\Activitylog\ActivitylogServiceProvider; +use $MODULE_NAMESPACE$\$STUDLY_NAME$\Providers\$STUDLY_NAME$ServiceProvider; +use Yajra\DataTables\ButtonsServiceProvider; +use Yajra\DataTables\DataTablesServiceProvider; +use Yajra\DataTables\Facades\DataTables; +use Yajra\DataTables\HtmlServiceProvider; abstract class TestCase extends Orchestra { @@ -16,7 +38,7 @@ abstract class TestCase extends Orchestra $this->createMixManifest(); // Create class aliases for backward compatibility - if (!class_exists('Juzaweb\Modules\Admin\Models\User')) { + if (! class_exists('Juzaweb\Modules\Admin\Models\User')) { class_alias( 'Juzaweb\Modules\Core\Models\User', 'Juzaweb\Modules\Admin\Models\User' @@ -24,12 +46,12 @@ abstract class TestCase extends Orchestra } // Load and alias UserFactory - $factoryPath = __DIR__ . '/../database/factories/UserFactory.php'; + $factoryPath = __DIR__.'/../database/factories/UserFactory.php'; if (file_exists($factoryPath)) { require_once $factoryPath; } - if (!class_exists('Juzaweb\\Modules\\Admin\\Database\\Factories\\UserFactory')) { + if (! class_exists('Juzaweb\\Modules\\Admin\\Database\\Factories\\UserFactory')) { class_alias( 'Juzaweb\\Modules\\Core\\Database\\Factories\\UserFactory', 'Juzaweb\\Modules\\Admin\\Database\\Factories\\UserFactory' @@ -37,10 +59,10 @@ abstract class TestCase extends Orchestra } // Load and alias UserStatus enum - $enumPath = __DIR__ . '/Enums/UserStatus.php'; + $enumPath = __DIR__.'/Enums/UserStatus.php'; if (file_exists($enumPath)) { require_once $enumPath; - if (!enum_exists('Juzaweb\\Modules\\Admin\\Enums\\UserStatus')) { + if (! enum_exists('Juzaweb\\Modules\\Admin\\Enums\\UserStatus')) { class_alias( 'Juzaweb\\Modules\\Core\\Tests\\Enums\\UserStatus', 'Juzaweb\\Modules\\Admin\\Enums\\UserStatus' @@ -48,16 +70,16 @@ abstract class TestCase extends Orchestra } } - $this->app[\Juzaweb\Modules\Core\Contracts\ThemeSetting::class]->set('setup', 1); + $this->app[ThemeSetting::class]->set('setup', 1); } protected function createMixManifest(): void { $path = public_path('juzaweb'); - if (!is_dir($path)) { + if (! is_dir($path)) { mkdir($path, 0777, true); } - file_put_contents($path . '/mix-manifest.json', json_encode([ + file_put_contents($path.'/mix-manifest.json', json_encode([ '/js/admin.min.js' => '/js/admin.min.js', '/css/admin.min.css' => '/css/admin.min.css', '/css/vendor.min.css' => '/css/vendor.min.css', @@ -67,16 +89,16 @@ abstract class TestCase extends Orchestra protected function createDummyTheme(): void { - $path = __DIR__ . '/themes/itech'; - if (!is_dir($path)) { + $path = __DIR__.'/themes/itech'; + if (! is_dir($path)) { mkdir($path, 0777, true); } - if (!file_exists($path . '/theme.json')) { - file_put_contents($path . '/theme.json', json_encode([ - "name" => "itech", - "title" => "Itech Theme", - "version" => "1.0", - "require" => [] + if (! file_exists($path.'/theme.json')) { + file_put_contents($path.'/theme.json', json_encode([ + 'name' => 'itech', + 'title' => 'Itech Theme', + 'version' => '1.0', + 'require' => [], ])); } } @@ -84,56 +106,56 @@ abstract class TestCase extends Orchestra /** * Get package providers. * - * @param \Illuminate\Foundation\Application $app + * @param Application $app * @return array */ protected function getPackageProviders($app): array { return [ CoreServiceProvider::class, - \$MODULE_NAMESPACE$\$STUDLY_NAME$\Providers\$STUDLY_NAME$ServiceProvider::class, - \Juzaweb\QueryCache\QueryCacheServiceProvider::class, - \Spatie\Activitylog\ActivitylogServiceProvider::class, - \Juzaweb\Hooks\HooksServiceProvider::class, - \Juzaweb\Modules\Core\Translations\TranslationsServiceProvider::class, - \Juzaweb\Modules\Core\Permissions\PermissionServiceProvider::class, - \Pion\Laravel\ChunkUpload\Providers\ChunkUploadServiceProvider::class, - \Yajra\DataTables\DataTablesServiceProvider::class, - \Yajra\DataTables\ButtonsServiceProvider::class, - \Yajra\DataTables\HtmlServiceProvider::class, + $STUDLY_NAME$ServiceProvider::class, + QueryCacheServiceProvider::class, + ActivitylogServiceProvider::class, + HooksServiceProvider::class, + TranslationsServiceProvider::class, + PermissionServiceProvider::class, + ChunkUploadServiceProvider::class, + DataTablesServiceProvider::class, + ButtonsServiceProvider::class, + HtmlServiceProvider::class, ]; } /** * Get package aliases. * - * @param \Illuminate\Foundation\Application $app + * @param Application $app * @return array */ protected function getPackageAliases($app): array { return [ - 'Field' => \Juzaweb\Modules\Core\Facades\Field::class, - 'Module' => \Juzaweb\Modules\Core\Facades\Module::class, - 'Theme' => \Juzaweb\Modules\Core\Facades\Theme::class, - 'Widget' => \Juzaweb\Modules\Core\Facades\Widget::class, - 'Sidebar' => \Juzaweb\Modules\Core\Facades\Sidebar::class, - 'PageTemplate' => \Juzaweb\Modules\Core\Facades\PageTemplate::class, - 'PageBlock' => \Juzaweb\Modules\Core\Facades\PageBlock::class, - 'Chart' => \Juzaweb\Modules\Core\Facades\Chart::class, - 'DataTables' => \Yajra\DataTables\Facades\DataTables::class, + 'Field' => Field::class, + 'Module' => Module::class, + 'Theme' => Theme::class, + 'Widget' => Widget::class, + 'Sidebar' => Sidebar::class, + 'PageTemplate' => PageTemplate::class, + 'PageBlock' => PageBlock::class, + 'Chart' => Chart::class, + 'DataTables' => DataTables::class, ]; } /** * Define environment setup. * - * @param \Illuminate\Foundation\Application $app + * @param Application $app * @return void */ protected function getEnvironmentSetUp($app): void { - $app['config']->set('themes.path', __DIR__ . '/themes'); + $app['config']->set('themes.path', __DIR__.'/themes'); // Use MySQL if DB_CONNECTION is set (e.g., in CI), otherwise use SQLite $connection = env('DB_CONNECTION', 'sqlite'); @@ -156,9 +178,9 @@ abstract class TestCase extends Orchestra // Setup default database to use sqlite :memory: $app['config']->set('database.default', 'testbench'); $app['config']->set('database.connections.testbench', [ - 'driver' => 'sqlite', + 'driver' => 'sqlite', 'database' => ':memory:', - 'prefix' => '', + 'prefix' => '', ]); } @@ -175,7 +197,7 @@ abstract class TestCase extends Orchestra $app['config']->set('app.locale', 'en'); $app['config']->set('translatable.fallback_locale', 'en'); - $app['config']->set('auth.providers.users.model', \Juzaweb\Modules\Core\Models\User::class); + $app['config']->set('auth.providers.users.model', User::class); } /** @@ -190,7 +212,7 @@ abstract class TestCase extends Orchestra $this->loadLaravelMigrations(['--database' => $connection]); // Load package migrations - $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); + $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); $this->artisan('migrate', ['--database' => $connection])->run(); } diff --git a/stubs/modules/unit-test.stub b/stubs/modules/unit-test.stub index be0bd55..a01b52d 100644 --- a/stubs/modules/unit-test.stub +++ b/stubs/modules/unit-test.stub @@ -2,9 +2,9 @@ namespace $NAMESPACE$; -use Tests\TestCase; -use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\WithFaker; +use Tests\TestCase; class $CLASS$ extends TestCase { @@ -13,7 +13,7 @@ class $CLASS$ extends TestCase * * @return void */ - public function testExample() + public function test_example() { $this->assertTrue(true); } diff --git a/stubs/themes/changelogphp.stub b/stubs/themes/changelogphp.stub index 4e8fb6f..1f6cd76 100644 --- a/stubs/themes/changelogphp.stub +++ b/stubs/themes/changelogphp.stub @@ -4,8 +4,8 @@ return [ 'versions' => [ '[VERSION]' => [ 'changed' => [ - 'Initial release' - ] - ] - ] + 'Initial release', + ], + ], + ], ]; diff --git a/stubs/themes/config.stub b/stubs/themes/config.stub index aec6750..1655dad 100644 --- a/stubs/themes/config.stub +++ b/stubs/themes/config.stub @@ -1,10 +1,12 @@ "[NAME]", - "title" => "[TITLE]", - "description" => "[DESCRIPTION]", - "author" => "[AUTHOR]", - "version" => "[VERSION]", + 'name' => '[NAME]', + 'title' => '[TITLE]', + 'description' => '[DESCRIPTION]', + 'author' => '[AUTHOR]', + 'version' => '[VERSION]', ];