YetiForceCompany/YetiForceCRM

View on GitHub
include/runtime/EntryPoint.php

Summary

Maintainability
A
0 mins
Test Coverage
A
92%

Missing class import via use statement (line '38', column '14').
Open

            throw new \App\Exceptions\AppException('Login is already set.');
Severity: Minor
Found in include/runtime/EntryPoint.php by phpmd

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

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

abstract class Vtiger_EntryPoint

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 17 and the first side effect is on line 10.
Open

<?php

The class Vtiger_EntryPoint is not named in CamelCase.
Open

abstract class Vtiger_EntryPoint
{
    /**
     * Login data.
     */
Severity: Minor
Found in include/runtime/EntryPoint.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Spaces must be used to indent lines; tabs are not allowed
Open

    protected $login = false;

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        return $this->getLogin();

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

    public function hasLogin()

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

        }

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     * Get login data.

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

     * Check if login data is present.

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

     * Login data.

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->login = true;

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getLogin()

Spaces must be used to indent lines; tabs are not allowed
Open

        return $this->login;

Spaces must be used to indent lines; tabs are not allowed
Open

        if ($this->login) {

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

            throw new \App\Exceptions\AppException('Login is already set.');

Spaces must be used to indent lines; tabs are not allowed
Open

    abstract public function process(\App\Request $request);

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     * Set login data.

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    public function setLogin()

Class name "Vtiger_EntryPoint" is not in camel caps format
Open

abstract class Vtiger_EntryPoint

There are no issues that match your filters.

Category
Status