Skip to content

Commit e1b98d1

Browse files
authored
Format AsCommand attributes (#2786)
1 parent 5364718 commit e1b98d1

22 files changed

+88
-22
lines changed

code_samples/api/public_php_api/src/Command/AddLanguageCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
use Symfony\Component\Console\Input\InputInterface;
1111
use Symfony\Component\Console\Output\OutputInterface;
1212

13-
#[AsCommand(name: 'doc:add_language', description: 'Lists available languages and add Polish.')]
13+
#[AsCommand(
14+
name: 'doc:add_language',
15+
description: 'Lists available languages and add Polish.'
16+
)]
1417
class AddLanguageCommand extends Command
1518
{
1619
private LanguageService $languageService;

code_samples/api/public_php_api/src/Command/AddLocationToContentCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
use Symfony\Component\Console\Input\InputInterface;
1313
use Symfony\Component\Console\Output\OutputInterface;
1414

15-
#[AsCommand(name: 'doc:add_location', description: 'Add a Location to content item and hides it.')]
15+
#[AsCommand(
16+
name: 'doc:add_location',
17+
description: 'Add a Location to content item and hides it.'
18+
)]
1619
class AddLocationToContentCommand extends Command
1720
{
1821
private ContentService $contentService;

code_samples/api/public_php_api/src/Command/BrowseLocationsCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
use Symfony\Component\Console\Input\InputInterface;
1111
use Symfony\Component\Console\Output\OutputInterface;
1212

13-
#[AsCommand(name: 'doc:browse_locations', description: 'Lists all descendants of the Location')]
13+
#[AsCommand(
14+
name: 'doc:browse_locations',
15+
description: 'Lists all descendants of the Location'
16+
)]
1417
class BrowseLocationsCommand extends Command
1518
{
1619
private LocationService $locationService;

code_samples/api/public_php_api/src/Command/CalendarCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
use Symfony\Component\Console\Input\InputInterface;
1313
use Symfony\Component\Console\Output\OutputInterface;
1414

15-
#[AsCommand(name: 'doc:calendar', description: 'Lists Calendar event in the provided time range and reschedules them.')]
15+
#[AsCommand(
16+
name: 'doc:calendar',
17+
description: 'Lists Calendar event in the provided time range and reschedules them.'
18+
)]
1619
class CalendarCommand extends Command
1720
{
1821
private PermissionResolver $permissionResolver;

code_samples/api/public_php_api/src/Command/FilterCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
use Symfony\Component\Console\Input\InputInterface;
1414
use Symfony\Component\Console\Output\OutputInterface;
1515

16-
#[AsCommand(name: 'doc:filter', description: 'Returns children of the provided Location, sorted by name in descending order.')]
16+
#[AsCommand(
17+
name: 'doc:filter',
18+
description: 'Returns children of the provided Location, sorted by name in descending order.'
19+
)]
1720
class FilterCommand extends Command
1821
{
1922
private ContentService $contentService;

code_samples/api/public_php_api/src/Command/FilterLocationCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
use Symfony\Component\Console\Input\InputInterface;
1414
use Symfony\Component\Console\Output\OutputInterface;
1515

16-
#[AsCommand(name: 'doc:filter_location', description: 'Returns children of the provided Location, sorted by name in descending order.')]
16+
#[AsCommand(
17+
name: 'doc:filter_location',
18+
description: 'Returns children of the provided Location, sorted by name in descending order.'
19+
)]
1720
class FilterLocationCommand extends Command
1821
{
1922
private LocationService $locationService;

code_samples/api/public_php_api/src/Command/FindComplexCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
use Symfony\Component\Console\Input\InputInterface;
1414
use Symfony\Component\Console\Output\OutputInterface;
1515

16-
#[AsCommand(name: 'doc:find_complex', description: 'Lists content belonging to the provided content type.')]
16+
#[AsCommand(
17+
name: 'doc:find_complex',
18+
description: 'Lists content belonging to the provided content type.'
19+
)]
1720
class FindComplexCommand extends Command
1821
{
1922
private SearchService $searchService;

code_samples/api/public_php_api/src/Command/FindContentCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
1313

14-
#[AsCommand(name: 'doc:find_content', description: 'Lists content belonging to the provided content type.')]
14+
#[AsCommand(
15+
name: 'doc:find_content',
16+
description: 'Lists content belonging to the provided content type.'
17+
)]
1518
class FindContentCommand extends Command
1619
{
1720
private SearchService $searchService;

code_samples/api/public_php_api/src/Command/FindInTrashCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
use Symfony\Component\Console\Input\InputInterface;
1111
use Symfony\Component\Console\Output\OutputInterface;
1212

13-
#[AsCommand(name: 'doc:find_in_trash', description: 'Lists content in Trash belonging to the provided content type.')]
13+
#[AsCommand(
14+
name: 'doc:find_in_trash',
15+
description: 'Lists content in Trash belonging to the provided content type.'
16+
)]
1417
class FindInTrashCommand extends Command
1518
{
1619
private TrashService $trashService;

code_samples/api/public_php_api/src/Command/FindUrlCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
use Symfony\Component\Console\Input\InputInterface;
1414
use Symfony\Component\Console\Output\OutputInterface;
1515

16-
#[AsCommand(name: 'doc:find_url', description: 'Finds all valid URLs in the provided Section.')]
16+
#[AsCommand(
17+
name: 'doc:find_url',
18+
description: 'Finds all valid URLs in the provided Section.'
19+
)]
1720
class FindUrlCommand extends Command
1821
{
1922
private URLService $urlService;

code_samples/api/public_php_api/src/Command/FindWithAggregationCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
use Symfony\Component\Console\Input\InputInterface;
1313
use Symfony\Component\Console\Output\OutputInterface;
1414

15-
#[AsCommand(name: 'doc:find_with_aggregation', description: 'Counts content per content type and the value of Selection Field.')]
15+
#[AsCommand(
16+
name: 'doc:find_with_aggregation',
17+
description: 'Counts content per content type and the value of Selection Field.'
18+
)]
1619
class FindWithAggregationCommand extends Command
1720
{
1821
private SearchService $searchService;

code_samples/api/public_php_api/src/Command/HideLocationCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
1313

14-
#[AsCommand(name: 'doc:hide', description: 'Hides and reveals again selected Location.')]
14+
#[AsCommand(
15+
name: 'doc:hide',
16+
description: 'Hides and reveals again selected Location.'
17+
)]
1518
class HideLocationCommand extends Command
1619
{
1720
private LocationService $locationService;

code_samples/api/public_php_api/src/Command/MoveContentCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
1313

14-
#[AsCommand(name: 'doc:move_content', description: 'Moves the selected Location with its subtree.')]
14+
#[AsCommand(
15+
name: 'doc:move_content',
16+
description: 'Moves the selected Location with its subtree.'
17+
)]
1518
class MoveContentCommand extends Command
1619
{
1720
private LocationService $locationService;

code_samples/api/public_php_api/src/Command/ObjectStateCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
use Symfony\Component\Console\Input\InputInterface;
1313
use Symfony\Component\Console\Output\OutputInterface;
1414

15-
#[AsCommand(name: 'doc:object_state', description: 'Creates OS group with provided States and assigned the Lock OS to provided content item')]
15+
#[AsCommand(
16+
name: 'doc:object_state',
17+
description: 'Creates OS group with provided States and assigned the Lock OS to provided content item'
18+
)]
1619
class ObjectStateCommand extends Command
1720
{
1821
private ContentService $contentService;

code_samples/api/public_php_api/src/Command/SectionCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
use Symfony\Component\Console\Input\InputInterface;
1616
use Symfony\Component\Console\Output\OutputInterface;
1717

18-
#[AsCommand(name: 'doc:section', description: 'Creates new section and adds selected content item to it.')]
18+
#[AsCommand(
19+
name: 'doc:section',
20+
description: 'Creates new section and adds selected content item to it.'
21+
)]
1922
class SectionCommand extends Command
2023
{
2124
private SectionService $sectionService;

code_samples/api/public_php_api/src/Command/SetMainLocationCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
1313

14-
#[AsCommand(name: 'doc:set_main_location', description: 'Set a Location as content item\'s main')]
14+
#[AsCommand(
15+
name: 'doc:set_main_location',
16+
description: 'Set a Location as content item\'s main'
17+
)]
1518
class SetMainLocationCommand extends Command
1619
{
1720
private ContentService $contentService;

code_samples/api/public_php_api/src/Command/UpdateContentCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
1313

14-
#[AsCommand(name: 'doc:update_content', description: 'Update provided content item with a new name')]
14+
#[AsCommand(
15+
name: 'doc:update_content',
16+
description: 'Update provided content item with a new name'
17+
)]
1518
class UpdateContentCommand extends Command
1619
{
1720
private ContentService $contentService;

code_samples/api/public_php_api/src/Command/ViewContentCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
1313

14-
#[AsCommand(name: 'doc:view_content', description: 'Output Field values on provided content item.')]
14+
#[AsCommand(
15+
name: 'doc:view_content',
16+
description: 'Output Field values on provided content item.'
17+
)]
1518
class ViewContentCommand extends Command
1619
{
1720
private ContentService $contentService;

code_samples/api/public_php_api/src/Command/ViewContentMetaDataCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
use Symfony\Component\Console\Input\InputInterface;
1616
use Symfony\Component\Console\Output\OutputInterface;
1717

18-
#[AsCommand(name: 'doc:view_metadata', description: 'Output various metadata about a content item.')]
18+
#[AsCommand(
19+
name: 'doc:view_metadata',
20+
description: 'Output various metadata about a content item.'
21+
)]
1922
class ViewContentMetaDataCommand extends Command
2023
{
2124
private ContentService $contentService;

code_samples/api/public_php_api/src/Command/WorkflowCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
use Symfony\Component\Console\Input\InputInterface;
1212
use Symfony\Component\Console\Output\OutputInterface;
1313

14-
#[AsCommand(name: 'doc:workflow', description: 'Starts content in the selected workflow and makes the provided transition.')]
14+
#[AsCommand(
15+
name: 'doc:workflow',
16+
description: 'Starts content in the selected workflow and makes the provided transition.'
17+
)]
1518
class WorkflowCommand extends Command
1619
{
1720
private WorkflowServiceInterface $workflowService;

code_samples/back_office/dashboard/src/Command/DashboardCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
use Symfony\Component\Console\Input\InputInterface;
1515
use Symfony\Component\Console\Output\OutputInterface;
1616

17-
#[AsCommand(name: 'doc:dashboard', description: 'Set a custom dashboard to user group.')]
17+
#[AsCommand(
18+
name: 'doc:dashboard',
19+
description: 'Set a custom dashboard to user group.'
20+
)]
1821
class DashboardCommand extends Command
1922
{
2023
private DashboardServiceInterface $dashboardService;

code_samples/front/render_content_in_php/src/Command/ViewCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
use Symfony\Component\Console\Input\InputOption;
1111
use Symfony\Component\Console\Output\OutputInterface;
1212

13-
#[AsCommand(name: 'app:view', description: 'Render the view of a content item')]
13+
#[AsCommand(
14+
name: 'app:view',
15+
description: 'Render the view of a content item'
16+
)]
1417
class ViewCommand extends Command
1518
{
1619
private ContentViewBuilder $contentViewBuilder;

0 commit comments

Comments
 (0)