YetiForceCompany/YetiForceCRM

View on GitHub
modules/ProjectMilestone/models/Module.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Missing class import via use statement (line '48', column '15').
Open

        $row = (new \App\Db\Query())

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

Missing class import via use statement (line '50', column '34').
Open

                'estimated_work_time' => new \yii\db\Expression('SUM(vtiger_projecttask.estimated_work_time)'),

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

Missing class import via use statement (line '29', column '15').
Open

        return (new \App\Db\Query())

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

Missing class import via use statement (line '51', column '32').
Open

                'progress_in_hours' => new \yii\db\Expression('SUM(vtiger_projecttask.estimated_work_time * vtiger_projecttask.projecttaskprogress / 100)')

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

The method calculateEstimatedWorkTime uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $progressInHours = 0;
            $tmpEstimatedWorkTime = 0;
            foreach (static::getChildren($id) as $child) {
                $tmpEstimatedWorkTime += static::calculateEstimatedWorkTime($child['id']);

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

Avoid using static access to class 'Vtiger_Record_Model' in method 'updateProgress'.
Open

        $recordModel = Vtiger_Record_Model::getInstanceById($id);

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class 'Project_Module_Model' in method 'updateProgress'.
Open

            Project_Module_Model::updateProgress($recordModel->get('projectid'));

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

The method updateProgress uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            static::updateProgress(
                $recordModel->get('parentid'),
                $estimatedWorkTime,
                $progressInHours,

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

Source https://phpmd.org/rules/cleancode.html#elseexpression

Define a constant instead of duplicating this literal "estimated_work_time" 4 times.
Open

                'estimated_work_time' => new \yii\db\Expression('SUM(vtiger_projecttask.estimated_work_time)'),

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Define a constant instead of duplicating this literal "projectid" 4 times.
Open

            Project_Module_Model::updateProgress($recordModel->get('projectid'));

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

Parameter $queryGenerator has undeclared type \App\QueryGenerator (Did you mean class \Tests\App\QueryGenerator)
Open

    public function getQueryByRelatedField(Vtiger_ListView_Model $listviewModel, App\QueryGenerator $queryGenerator)

Suspicious array access to int
Open

            if ($callerId !== $child['id']) {

Suspicious array access to int
Open

                $tmpEstimatedWorkTime += static::calculateEstimatedWorkTime($child['id']);

Call to undeclared method \App\Db\Query::select
Open

        return (new \App\Db\Query())
Severity: Critical
Found in modules/ProjectMilestone/models/Module.php by phan

Suspicious array access to int
Open

                $childEstimatedWorkTime = static::calculateEstimatedWorkTime($child['id']);

Call to method __construct from undeclared class \yii\db\Expression
Open

                'progress_in_hours' => new \yii\db\Expression('SUM(vtiger_projecttask.estimated_work_time * vtiger_projecttask.projecttaskprogress / 100)')
Severity: Critical
Found in modules/ProjectMilestone/models/Module.php by phan

Call to undeclared method \App\Db\Query::select
Open

        $row = (new \App\Db\Query())
Severity: Critical
Found in modules/ProjectMilestone/models/Module.php by phan

Suspicious array access to int
Open

                $progressInHours += ($childEstimatedWorkTime * $child['projectmilestone_progress'] / 100);

Call to method addNativeCondition from undeclared class \App\QueryGenerator (Did you mean class \Tests\App\QueryGenerator)
Open

                $queryGenerator->addNativeCondition(['projectid' => (int) $filterFields['projectid']]);
Severity: Critical
Found in modules/ProjectMilestone/models/Module.php by phan

Call to method __construct from undeclared class \yii\db\Expression
Open

                'estimated_work_time' => new \yii\db\Expression('SUM(vtiger_projecttask.estimated_work_time)'),
Severity: Critical
Found in modules/ProjectMilestone/models/Module.php by phan

Avoid excessively long variable names like $childEstimatedWorkTime. Keep variable name length under 20.
Open

                $childEstimatedWorkTime = static::calculateEstimatedWorkTime($child['id']);

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $cacheEstimatedWorkTime. Keep variable name length under 20.
Open

    protected static $cacheEstimatedWorkTime = [];

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

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

class ProjectMilestone_Module_Model extends Vtiger_Module_Model

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    public static function updateProgress(int $id, float $estimatedWorkTime = 0, float $progressInHours = 0, ?int $callerId = null)

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

The class ProjectMilestone_Module_Model is not named in CamelCase.
Open

class ProjectMilestone_Module_Model extends Vtiger_Module_Model
{
    /**
     * Cache for estimated work time.
     *

CamelCaseClassName

Since: 0.2

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

Example

class class_name {
}

Source

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    public static function calculateEstimatedWorkTime(int $id, float $estimatedWorkTime = 0): float

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    protected static function getChildren(int $id): array

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    protected static function calculateProgressOfTasks(int $id, float &$estimatedWorkTime, float &$progressInHours)

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

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

    /**

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

            ->innerJoin('vtiger_crmentity', 'vtiger_projecttask.projecttaskid = vtiger_crmentity.crmid')

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

     * @param float $progressInHours

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

        $row = (new \App\Db\Query())

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

     * @throws \App\Exceptions\AppException

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

            static::calculateProgressOfTasks($id, $tmpEstimatedWorkTime, $progressInHours);

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

            static::$cacheEstimatedWorkTime[$id] = $tmpEstimatedWorkTime;

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

     * @param float    $progressInHours

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

     * @param int|null $callerId

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

                $estimatedWorkTime += $childEstimatedWorkTime;

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

            foreach (static::getChildren($id) as $child) {

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

                $progressInHours += ($childEstimatedWorkTime * $child['projectmilestone_progress'] / 100);

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

     */

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

    protected static $cacheEstimatedWorkTime = [];

Line exceeds 120 characters; contains 129 characters
Open

            ->select(['id' => 'vtiger_projectmilestone.projectmilestoneid', 'vtiger_projectmilestone.projectmilestone_progress'])

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

     * @param int   $id

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

            ->from('vtiger_projecttask')

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

            $estimatedWorkTime += (float) $row['estimated_work_time'];

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 static function updateProgress(int $id, float $estimatedWorkTime = 0, float $progressInHours = 0, ?int $callerId = null)

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

            $estimatedWorkTime += $tmpEstimatedWorkTime;

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

            if ($callerId !== $child['id']) {

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 static function calculateEstimatedWorkTime(int $id, float $estimatedWorkTime = 0): float

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

        if (isset(static::$cacheEstimatedWorkTime[$id])) {

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

     * Update progress milestone.

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

            }

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

    protected static function calculateProgressOfTasks(int $id, float &$estimatedWorkTime, float &$progressInHours)

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

            ->andWhere(['vtiger_projecttask.projectmilestoneid' => $id])

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

            $estimatedWorkTime += static::$cacheEstimatedWorkTime[$id];

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

            $tmpEstimatedWorkTime = 0;

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

     * @param float    $estimatedWorkTime

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

            ->where(['vtiger_crmentity.deleted' => [0, 2]])

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

                'estimated_work_time' => new \yii\db\Expression('SUM(vtiger_projecttask.estimated_work_time)'),

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

        } else {

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

                $tmpEstimatedWorkTime += static::calculateEstimatedWorkTime($child['id']);

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

     * Cache for estimated work time.

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

     * @param float $estimatedWorkTime

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

     */

Line exceeds 120 characters; contains 155 characters
Open

                'progress_in_hours' => new \yii\db\Expression('SUM(vtiger_projecttask.estimated_work_time * vtiger_projecttask.projecttaskprogress / 100)')

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

     */

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

        $recordModel = Vtiger_Record_Model::getInstanceById($id);

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

    public function getQueryByRelatedField(Vtiger_ListView_Model $listviewModel, App\QueryGenerator $queryGenerator)

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

     * @param int $id

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

            ->from('vtiger_projectmilestone')

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

     * @throws \App\Exceptions\AppException

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

            ->where(['vtiger_crmentity.deleted' => [0, 2]])

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

            $progressInHours = 0;

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

    }

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

        $projectProgress = $estimatedWorkTime ? round((100 * $progressInHours) / $estimatedWorkTime) : 0;

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

            ->select([

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

        if (false !== $row && null !== $row['estimated_work_time']) {

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

     * @throws \App\Exceptions\AppException

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

            static::updateProgress(

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

    protected static function getChildren(int $id): array

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

            ->one();

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

                'progress_in_hours' => new \yii\db\Expression('SUM(vtiger_projecttask.estimated_work_time * vtiger_projecttask.projecttaskprogress / 100)')

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

    /**

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

     * @param int   $id

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 float

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

    /**

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

        foreach (static::getChildren($id) as $child) {

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

        $recordModel->set('estimated_work_time', $estimatedWorkTime);

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

                $estimatedWorkTime,

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

     * @return int[]

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

            ->innerJoin('vtiger_crmentity', 'vtiger_projectmilestone.projectmilestoneid = vtiger_crmentity.crmid')

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

     *

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

     * Calculate estimated work time.

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

        return $estimatedWorkTime;

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

     * Function to get list view query for popup window.

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

     * @param \App\QueryGenerator   $queryGenerator

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 (new \App\Db\Query())

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

            $progressInHours += (float) $row['progress_in_hours'];

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

     * @param float $estimatedWorkTime

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

     * @param int      $id

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

            if (!empty($filterFields['projectid'])) {

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

            Project_Module_Model::updateProgress($recordModel->get('projectid'));

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

     * @var float[]

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

     * Get children by parent ID.

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

            ->select(['id' => 'vtiger_projectmilestone.projectmilestoneid', 'vtiger_projectmilestone.projectmilestone_progress'])

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

            ->andWhere(['vtiger_projectmilestone.parentid' => $id])->all();

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

     * Calculate the progress of tasks.

Line exceeds 120 characters; contains 131 characters
Open

    public static function updateProgress(int $id, float $estimatedWorkTime = 0, float $progressInHours = 0, ?int $callerId = null)

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

                $childEstimatedWorkTime = static::calculateEstimatedWorkTime($child['id']);

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

        static::calculateProgressOfTasks($id, $estimatedWorkTime, $progressInHours);

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

        $recordModel->set('projectmilestone_progress', $projectProgress);

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

        } else {

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

        if ($recordModel->isEmpty('parentid')) {

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

     * @param Vtiger_ListView_Model $listviewModel

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

                $queryGenerator->addNativeCondition(['projectid' => (int) $filterFields['projectid']]);

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

    }

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

                $progressInHours,

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

                $id

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

        if ('Project' === $listviewModel->get('src_module') && !$listviewModel->isEmpty('filterFields')) {

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

        $recordModel->save();

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

            static::$cacheEstimatedWorkTime[$id] = $estimatedWorkTime;

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

    /**

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

                $recordModel->get('parentid'),

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

            $filterFields = $listviewModel->get('filterFields');

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

class ProjectMilestone_Module_Model extends Vtiger_Module_Model

There are no issues that match your filters.

Category
Status