modules/stanford_decoupled/src/Drush/Commands/StanfordDecoupledCommands.php
Missing class import via use statement (line '41', column '17'). Open
Open
throw new \Exception('Invalid domain');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)
Open
Open
public function __construct(private readonly EntityTypeManagerInterface $entityTypeManager, private readonly UuidInterface $uuid) {}
- Exclude checks
You must use "/**" style comments for a function comment Open
Open
public function connectNextSite($domain, $options = [
- Exclude checks
Doc comment short description must end with a full stop Open
Open
* Create a next site entity to connect with Next.JS site
- Exclude checks
Line exceeds 80 characters; contains 95 characters Open
Open
#[CLI\Option(name: 'revalidation-secret', description: 'Use a specific revalidation secret')]
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[CLI\Option(name: 'preview-secret', description: 'Use a specific preview secret')]
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[CLI\Argument(name: 'domain', description: 'Next.js Domain.')]
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[CLI\Option(name: 'revalidation-secret', description: 'Use a specific revalidation secret')]
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[CLI\Usage(name: 'stanford-decoupled:connect-next "https://localhost:3000"', description: 'Create a next site entity to connect with Next.JS site')]
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[CLI\Command(name: 'stanford-decoupled:connect-next', aliases: ['su-next-connect'])]
- Exclude checks
Unused use statement Open
Open
use Drush\Attributes as CLI;
- Exclude checks
Line exceeds 80 characters; contains 87 characters Open
Open
#[CLI\Command(name: 'stanford-decoupled:connect-next', aliases: ['su-next-connect'])]
- Exclude checks
Line exceeds 80 characters; contains 85 characters Open
Open
#[CLI\Option(name: 'preview-secret', description: 'Use a specific preview secret')]
- Exclude checks
Line exceeds 80 characters; contains 102 characters Open
Open
#[CLI\Option(name: 'format', description: 'Format the result data. Available formats: json,string')]
- Exclude checks
Line exceeds 80 characters; contains 151 characters Open
Open
#[CLI\Usage(name: 'stanford-decoupled:connect-next "https://localhost:3000"', description: 'Create a next site entity to connect with Next.JS site')]
- Exclude checks
Perl-style comments are not allowed; use "// Comment" instead Open
Open
#[CLI\Option(name: 'format', description: 'Format the result data. Available formats: json,string')]
- Exclude checks