Skip to content

Commit

Permalink
Declare access modifiers for constants
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-moser committed Jan 15, 2024
1 parent 38c9d60 commit 7f69824
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Command/Update/IndexUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class IndexUpdateCommand extends AbstractCommand
{
use LockableTrait;

const OPTION_CLASS_DEFINITION_ID = 'class-definition-id';
private const OPTION_CLASS_DEFINITION_ID = 'class-definition-id';

const OPTION_UPDATE_ASSET_INDEX = 'update-asset-index';
private const OPTION_UPDATE_ASSET_INDEX = 'update-asset-index';

const OPTION_RECREATE_INDEX = 'recreate_index';
private const OPTION_RECREATE_INDEX = 'recreate_index';

protected IndexUpdateService $indexUpdateService;

Expand Down
2 changes: 1 addition & 1 deletion src/Entity/IndexQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class IndexQueue
{
const TABLE = 'generic_data_index_queue';
public const TABLE = 'generic_data_index_queue';

#[ORM\Id()]

Check notice on line 26 in src/Entity/IndexQueue.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Redundant parentheses in attribute

Redundant parentheses
#[ORM\Column(type: 'integer', options: ['unsigned' => true])]
Expand Down
4 changes: 2 additions & 2 deletions src/Service/SearchIndex/OpenSearch/OpenSearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

class OpenSearchService
{
const INDEX_VERION_ODD = 'odd';
private const INDEX_VERION_ODD = 'odd';

const INDEX_VERION_EVEN = 'even';
private const INDEX_VERION_EVEN = 'even';

use LoggerAwareTrait;

Expand Down

0 comments on commit 7f69824

Please sign in to comment.