Skip to content

Commit d273265

Browse files
committed
Run Rector and Code Style
1 parent 5e745de commit d273265

File tree

44 files changed

+944
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+944
-110
lines changed

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

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

13-
#[AsCommand(
14-
name: 'doc:add_language'
15-
)]
13+
#[AsCommand(name: 'doc:add_language', description: 'Lists available languages and add Polish.')]
1614
class AddLanguageCommand extends Command
1715
{
1816
private LanguageService $languageService;
@@ -32,7 +30,6 @@ public function __construct(LanguageService $languageService, UserService $userS
3230

3331
protected function configure(): void
3432
{
35-
$this->setDescription('Lists available languages and add Polish.');
3633
}
3734

3835
protected function execute(InputInterface $input, OutputInterface $output): int

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

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

15-
#[AsCommand(
16-
name: 'doc:add_location'
17-
)]
15+
#[AsCommand(name: 'doc:add_location', description: 'Add a Location to content item and hides it.')]
1816
class AddLocationToContentCommand extends Command
1917
{
2018
private ContentService $contentService;
@@ -38,7 +36,6 @@ public function __construct(ContentService $contentService, LocationService $loc
3836
protected function configure(): void
3937
{
4038
$this
41-
->setDescription('Add a Location to content item and hides it.')
4239
->setDefinition([
4340
new InputArgument('contentId', InputArgument::REQUIRED, 'Content ID'),
4441
new InputArgument('parentLocationId', InputArgument::REQUIRED, 'Parent Location ID'),

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

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

13-
#[AsCommand(
14-
name: 'doc:browse_locations'
15-
)]
13+
#[AsCommand(name: 'doc:browse_locations', description: 'Lists all descendants of the Location')]
1614
class BrowseLocationsCommand extends Command
1715
{
1816
private LocationService $locationService;
@@ -27,7 +25,6 @@ public function __construct(LocationService $locationService)
2725
protected function configure(): void
2826
{
2927
$this
30-
->setDescription('Lists all descendants of the Location')
3128
->setDefinition([
3229
new InputArgument('locationId', InputArgument::REQUIRED, 'Location ID to browse from'),
3330
]);

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

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

15-
#[AsCommand(
16-
name: 'doc:calendar'
17-
)]
15+
#[AsCommand(name: 'doc:calendar', description: 'Lists Calendar event in the provided time range and reschedules them.')]
1816
class CalendarCommand extends Command
1917
{
2018
private PermissionResolver $permissionResolver;
@@ -34,7 +32,6 @@ public function __construct(PermissionResolver $permissionResolver, UserService
3432

3533
public function configure(): void
3634
{
37-
$this->setDescription('Lists Calendar event in the provided time range and reschedules them.');
3835
}
3936

4037
protected function execute(InputInterface $input, OutputInterface $output): int

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

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

16-
#[AsCommand(
17-
name: 'doc:filter'
18-
)]
16+
#[AsCommand(name: 'doc:filter', description: 'Returns children of the provided Location, sorted by name in descending order.')]
1917
class FilterCommand extends Command
2018
{
2119
private ContentService $contentService;
@@ -29,7 +27,6 @@ public function __construct(ContentService $contentService)
2927

3028
public function configure(): void
3129
{
32-
$this->setDescription('Returns children of the provided Location, sorted by name in descending order.');
3330
$this->setDefinition([
3431
new InputArgument('parentLocationId', InputArgument::REQUIRED, 'ID of the parent Location'),
3532
]);

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

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

16-
#[AsCommand(
17-
name: 'doc:filter_location'
18-
)]
16+
#[AsCommand(name: 'doc:filter_location', description: 'Returns children of the provided Location, sorted by name in descending order.')]
1917
class FilterLocationCommand extends Command
2018
{
2119
private LocationService $locationService;
@@ -29,7 +27,6 @@ public function __construct(LocationService $locationService)
2927

3028
public function configure(): void
3129
{
32-
$this->setDescription('Returns children of the provided Location, sorted by name in descending order.');
3330
$this->setDefinition([
3431
new InputArgument('parentLocationId', InputArgument::REQUIRED, 'ID of the parent Location'),
3532
]);

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

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

16-
#[AsCommand(
17-
name: 'doc:find_complex'
18-
)]
16+
#[AsCommand(name: 'doc:find_complex', description: 'Lists content belonging to the provided content type.')]
1917
class FindComplexCommand extends Command
2018
{
2119
private SearchService $searchService;
@@ -33,7 +31,6 @@ public function __construct(SearchService $searchService, LocationService $locat
3331
protected function configure(): void
3432
{
3533
$this
36-
->setDescription('Lists content belonging to the provided content type.')
3734
->setDefinition([
3835
new InputArgument('locationId', InputArgument::REQUIRED, ''),
3936
new InputArgument('contentTypeIdentifier', InputArgument::REQUIRED, 'Content type identifier'),

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

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

14-
#[AsCommand(
15-
name: 'doc:find_content'
16-
)]
14+
#[AsCommand(name: 'doc:find_content', description: 'Lists content belonging to the provided content type.')]
1715
class FindContentCommand extends Command
1816
{
1917
private SearchService $searchService;
@@ -28,7 +26,6 @@ public function __construct(SearchService $searchService)
2826
protected function configure(): void
2927
{
3028
$this
31-
->setDescription('Lists content belonging to the provided content type.')
3229
->setDefinition([
3330
new InputArgument('contentTypeIdentifier', InputArgument::REQUIRED, 'Content type identifier'),
3431
]);

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

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

13-
#[AsCommand(
14-
name: 'doc:find_in_trash'
15-
)]
13+
#[AsCommand(name: 'doc:find_in_trash', description: 'Lists content in Trash belonging to the provided content type.')]
1614
class FindInTrashCommand extends Command
1715
{
1816
private TrashService $trashService;
@@ -27,7 +25,6 @@ public function __construct(TrashService $trashService)
2725
protected function configure(): void
2826
{
2927
$this
30-
->setDescription('Lists content in Trash belonging to the provided content type.')
3128
->setDefinition([
3229
new InputArgument('contentTypeId', InputArgument::REQUIRED, 'Content type ID'),
3330
]);

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
use Symfony\Component\Console\Input\InputInterface;
1414
use Symfony\Component\Console\Output\OutputInterface;
1515

16-
#[AsCommand(
17-
name: 'doc:find_url'
18-
)]
16+
#[AsCommand(name: 'doc:find_url', description: 'Finds all valid URLs in the provided Section.')]
1917
class FindUrlCommand extends Command
2018
{
2119
private URLService $urlService;
@@ -35,8 +33,6 @@ public function __construct(URLService $URLService, UserService $userService, Pe
3533

3634
protected function configure(): void
3735
{
38-
$this
39-
->setDescription('Finds all valid URLs in the provided Section.');
4036
}
4137

4238
protected function execute(InputInterface $input, OutputInterface $output): int

0 commit comments

Comments
 (0)