VSVverkeerskunde/gvq-api

View on GitHub

Showing 1,426 of 1,426 total issues

Expected 1 newline at end of file; 0 found
Open

}

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        (float)$passedUniqueParticipantCounts[$key] / (float)$uniqueParticipantsCounts[$key],

Multi-line function call not indented correctly; expected 8 spaces but found 12
Open

            $nl);

Opening brace should be on a new line
Open

    public function __construct(string $configFilePath) {

Multi-line function call not indented correctly; expected 20 spaces but found 18
Open

                  'questions/add.html.twig',

Multi-line function call not indented correctly; expected 8 spaces but found 12
Open

            $fr);

Expected 0 spaces after opening bracket; newline found
Open

                if (

Expected 1 newline at end of file; 0 found
Open

}

Opening brace should be on a new line
Open

    private function distance(NaturalNumber $a, NaturalNumber $b = null): ?NaturalNumber {

The variable $privacy_pdf is not named in camelCase.
Open

    public function contest(Request $request, string $quizId): Response
    {
        try {
            $quiz = $this->quizRepository->getById(Uuid::fromString($quizId));

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $current_activation_url is not named in camelCase.
Open

    public function sendActivation(Request $request, string $id): Response
    {
        $user = $this->userRepository->getById(Uuid::fromString($id));

        if (!$user) {

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $updated_company is not named in camelCase.
Open

    public function updateCompanyFromData(
        Company $company,
        array $data
    ): Company {
        $updated_company = new Company(
Severity: Minor
Found in src/Company/Forms/CompanyFormType.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $use_company_type is not named in camelCase.
Open

    private function createRegisterForm(bool $use_company_type = false): FormInterface
    {
        $formBuilder = $this->createFormBuilder(
            null,
            [

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $updated_company is not named in camelCase.
Open

    public function updateCompanyFromData(
        Company $company,
        array $data
    ): Company {
        $updated_company = new Company(
Severity: Minor
Found in src/Company/Forms/CompanyFormType.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $updated_company is not named in camelCase.
Open

    public function updateCompanyFromData(
        Company $company,
        array $data
    ): Company {
        $updated_company = new Company(
Severity: Minor
Found in src/Company/Forms/CompanyFormType.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $privacy_pdf is not named in camelCase.
Open

    public function contest(Request $request, string $quizId): Response
    {
        try {
            $quiz = $this->quizRepository->getById(Uuid::fromString($quizId));

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $current_activation_url is not named in camelCase.
Open

    public function sendActivation(Request $request, string $id): Response
    {
        $user = $this->userRepository->getById(Uuid::fromString($id));

        if (!$user) {

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $updated_company is not named in camelCase.
Open

    public function updateCompanyFromData(
        Company $company,
        array $data
    ): Company {
        $updated_company = new Company(
Severity: Minor
Found in src/Company/Forms/CompanyFormType.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $current_activation_url is not named in camelCase.
Open

    public function sendActivation(Request $request, string $id): Response
    {
        $user = $this->userRepository->getById(Uuid::fromString($id));

        if (!$user) {

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $updated_company is not named in camelCase.
Open

    public function updateCompanyFromData(
        Company $company,
        array $data
    ): Company {
        $updated_company = new Company(
Severity: Minor
Found in src/Company/Forms/CompanyFormType.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Severity
Category
Status
Source
Language