Skip to content

Commit

Permalink
Merge pull request #1503 from hydephp/normalize-code-style
Browse files Browse the repository at this point in the history
Normalize console command descriptions
  • Loading branch information
caendesilva committed Dec 14, 2023
2 parents 56f3bf8 + e48dd97 commit b9077e7
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Expand Up @@ -14,7 +14,7 @@ This serves two purposes:

### Changed
- Shortened the path printed to console when using the dashboard to create a page in https://github.com/hydephp/develop/pull/1492
- Code cleanup and style improvements in https://github.com/hydephp/develop/pull/1501 and https://github.com/hydephp/develop/pull/1502
- Code cleanup and style improvements in https://github.com/hydephp/develop/pull/1501, https://github.com/hydephp/develop/pull/1502, and https://github.com/hydephp/develop/pull/1503.

### Deprecated
- for soon-to-be removed features.
Expand Down
Expand Up @@ -30,7 +30,7 @@ class ChangeSourceDirectoryCommand extends Command
protected $signature = 'change:sourceDirectory {name : The new source directory name }';

/** @var string */
protected $description = 'Change the source directory for your project.';
protected $description = 'Change the source directory for your project';

protected $hidden = true;

Expand Down
2 changes: 1 addition & 1 deletion packages/framework/src/Console/Commands/DebugCommand.php
Expand Up @@ -22,7 +22,7 @@ class DebugCommand extends Command
protected $signature = 'debug';

/** @var string */
protected $description = 'Print debug info';
protected $description = 'Print debug information';

public function __construct()
{
Expand Down
Expand Up @@ -29,7 +29,7 @@ class PublishHomepageCommand extends Command
{--force : Overwrite any existing files}';

/** @var string */
protected $description = 'Publish one of the default homepages to index.blade.php.';
protected $description = 'Publish one of the default homepages to index.blade.php';

/** @var array<string, array{name: string, description: string, group: string}> */
protected array $options = [
Expand Down
Expand Up @@ -20,23 +20,23 @@ class PublishViewsCommand extends Command
protected $signature = 'publish:views {category? : The category to publish}';

/** @var string */
protected $description = 'Publish the hyde components for customization. Note that existing files will be overwritten.';
protected $description = 'Publish the hyde components for customization. Note that existing files will be overwritten';

/** @var array<string, array<string, string>> */
protected array $options = [
'layouts' => [
'name' => 'Blade Layouts',
'description' => 'Shared layout views, such as the app layout, navigation menu, and Markdown page templates.',
'description' => 'Shared layout views, such as the app layout, navigation menu, and Markdown page templates',
'group' => 'hyde-layouts',
],
'components' => [
'name' => 'Blade Components',
'description' => 'More or less self contained components, extracted for customizability and DRY code.',
'description' => 'More or less self contained components, extracted for customizability and DRY code',
'group' => 'hyde-components',
],
'page-404' => [
'name' => '404 Page',
'description' => 'A beautiful 404 error page by the Laravel Collective.',
'description' => 'A beautiful 404 error page by the Laravel Collective',
'group' => 'hyde-page-404',
],
];
Expand Down
Expand Up @@ -23,7 +23,7 @@ class RouteListCommand extends Command
protected $signature = 'route:list';

/** @var string */
protected $description = 'Display all registered routes.';
protected $description = 'Display all the registered routes';

public function handle(): int
{
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/src/Console/Commands/ServeCommand.php
Expand Up @@ -36,7 +36,7 @@ class ServeCommand extends Command
';

/** @var string */
protected $description = 'Start the realtime compiler server.';
protected $description = 'Start the realtime compiler server';

protected ConsoleOutput $console;

Expand Down
4 changes: 2 additions & 2 deletions packages/framework/src/Console/Commands/ValidateCommand.php
Expand Up @@ -24,10 +24,10 @@ class ValidateCommand extends Command
protected $signature = 'validate';

/** @var string */
protected $description = 'Test and validate your project to optimize your site.';
protected $description = 'Test and validate your project to optimize your site';

/** @var string */
protected $help = 'Run a series of tests to validate your setup and help you optimize your site.';
protected $help = 'Run a series of tests to validate your setup and help you optimize your site';

protected ValidationService $service;

Expand Down

0 comments on commit b9077e7

Please sign in to comment.