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;

0 commit comments

Comments
 (0)