Skip to content

Format AsCommand attributes #2786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:add_language', description: 'Lists available languages and add Polish.')]
#[AsCommand(
name: 'doc:add_language',
description: 'Lists available languages and add Polish.'
)]
class AddLanguageCommand extends Command
{
private LanguageService $languageService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:add_location', description: 'Add a Location to content item and hides it.')]
#[AsCommand(
name: 'doc:add_location',
description: 'Add a Location to content item and hides it.'
)]
class AddLocationToContentCommand extends Command
{
private ContentService $contentService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:browse_locations', description: 'Lists all descendants of the Location')]
#[AsCommand(
name: 'doc:browse_locations',
description: 'Lists all descendants of the Location'
)]
class BrowseLocationsCommand extends Command
{
private LocationService $locationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:calendar', description: 'Lists Calendar event in the provided time range and reschedules them.')]
#[AsCommand(
name: 'doc:calendar',
description: 'Lists Calendar event in the provided time range and reschedules them.'
)]
class CalendarCommand extends Command
{
private PermissionResolver $permissionResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:filter', description: 'Returns children of the provided Location, sorted by name in descending order.')]
#[AsCommand(
name: 'doc:filter',
description: 'Returns children of the provided Location, sorted by name in descending order.'
)]
class FilterCommand extends Command
{
private ContentService $contentService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:filter_location', description: 'Returns children of the provided Location, sorted by name in descending order.')]
#[AsCommand(
name: 'doc:filter_location',
description: 'Returns children of the provided Location, sorted by name in descending order.'
)]
class FilterLocationCommand extends Command
{
private LocationService $locationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:find_complex', description: 'Lists content belonging to the provided content type.')]
#[AsCommand(
name: 'doc:find_complex',
description: 'Lists content belonging to the provided content type.'
)]
class FindComplexCommand extends Command
{
private SearchService $searchService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:find_content', description: 'Lists content belonging to the provided content type.')]
#[AsCommand(
name: 'doc:find_content',
description: 'Lists content belonging to the provided content type.'
)]
class FindContentCommand extends Command
{
private SearchService $searchService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:find_in_trash', description: 'Lists content in Trash belonging to the provided content type.')]
#[AsCommand(
name: 'doc:find_in_trash',
description: 'Lists content in Trash belonging to the provided content type.'
)]
class FindInTrashCommand extends Command
{
private TrashService $trashService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:find_url', description: 'Finds all valid URLs in the provided Section.')]
#[AsCommand(
name: 'doc:find_url',
description: 'Finds all valid URLs in the provided Section.'
)]
class FindUrlCommand extends Command
{
private URLService $urlService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:find_with_aggregation', description: 'Counts content per content type and the value of Selection Field.')]
#[AsCommand(
name: 'doc:find_with_aggregation',
description: 'Counts content per content type and the value of Selection Field.'
)]
class FindWithAggregationCommand extends Command
{
private SearchService $searchService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:hide', description: 'Hides and reveals again selected Location.')]
#[AsCommand(
name: 'doc:hide',
description: 'Hides and reveals again selected Location.'
)]
class HideLocationCommand extends Command
{
private LocationService $locationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:move_content', description: 'Moves the selected Location with its subtree.')]
#[AsCommand(
name: 'doc:move_content',
description: 'Moves the selected Location with its subtree.'
)]
class MoveContentCommand extends Command
{
private LocationService $locationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:object_state', description: 'Creates OS group with provided States and assigned the Lock OS to provided content item')]
#[AsCommand(
name: 'doc:object_state',
description: 'Creates OS group with provided States and assigned the Lock OS to provided content item'
)]
class ObjectStateCommand extends Command
{
private ContentService $contentService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:section', description: 'Creates new section and adds selected content item to it.')]
#[AsCommand(
name: 'doc:section',
description: 'Creates new section and adds selected content item to it.'
)]
class SectionCommand extends Command
{
private SectionService $sectionService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:set_main_location', description: 'Set a Location as content item\'s main')]
#[AsCommand(
name: 'doc:set_main_location',
description: 'Set a Location as content item\'s main'
)]
class SetMainLocationCommand extends Command
{
private ContentService $contentService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:update_content', description: 'Update provided content item with a new name')]
#[AsCommand(
name: 'doc:update_content',
description: 'Update provided content item with a new name'
)]
class UpdateContentCommand extends Command
{
private ContentService $contentService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:view_content', description: 'Output Field values on provided content item.')]
#[AsCommand(
name: 'doc:view_content',
description: 'Output Field values on provided content item.'
)]
class ViewContentCommand extends Command
{
private ContentService $contentService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:view_metadata', description: 'Output various metadata about a content item.')]
#[AsCommand(
name: 'doc:view_metadata',
description: 'Output various metadata about a content item.'
)]
class ViewContentMetaDataCommand extends Command
{
private ContentService $contentService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:workflow', description: 'Starts content in the selected workflow and makes the provided transition.')]
#[AsCommand(
name: 'doc:workflow',
description: 'Starts content in the selected workflow and makes the provided transition.'
)]
class WorkflowCommand extends Command
{
private WorkflowServiceInterface $workflowService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'doc:dashboard', description: 'Set a custom dashboard to user group.')]
#[AsCommand(
name: 'doc:dashboard',
description: 'Set a custom dashboard to user group.'
)]
class DashboardCommand extends Command
{
private DashboardServiceInterface $dashboardService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'app:view', description: 'Render the view of a content item')]
#[AsCommand(
name: 'app:view',
description: 'Render the view of a content item'
)]
class ViewCommand extends Command
{
private ContentViewBuilder $contentViewBuilder;
Expand Down
Loading