skybluesofa/onthisday

View on GitHub
src/Data/Contract/Month.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused private methods such as 'getRecurringAdvancedConfigurationBasedItems'.
Open

    private static function getRecurringAdvancedConfigurationBasedItems(Carbon $date, $events) {
        $class = new static;

        foreach ($events as $event=>$methodName) {
          $events[$event] = (method_exists($class, $methodName)) ? call_user_func([$class, $methodName], $date) : null;
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

UnusedPrivateMethod

Since: 0.2

Unused Private Method detects when a private method is declared but is unused.

Example

class Something
{
    private function foo() {} // unused
}

Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod

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

    public static $recurringAdvancedConfigurationHolidays = [];
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $recurringAdvancedConfigurationEvents. Keep variable name length under 20.
Open

    public static $recurringAdvancedConfigurationEvents = [];
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $configurationHolidays. Keep variable name length under 20.
Open

    public static $configurationHolidays = [];
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 variables with short names like $L. Configured minimum length is 3.
Open

        $L = $I - $J;
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $J. Configured minimum length is 3.
Open

        $J = ($year + (int)($year/4) + $I + 2 - $C + (int)($C/4)) % 7;
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $d. Configured minimum length is 3.
Open

        $d = $L + 28 - 31 * ((int)($m / 4));
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $E. Configured minimum length is 3.
Open

        $E = mktime(0,0,0, $m, $d, $y);
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $m. Configured minimum length is 3.
Open

        $m = 3 + (int)(($L + 40) / 44);
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $I. Configured minimum length is 3.
Open

        $I = (int)$H - (int)($H / 28)*(1 - (int)($H / 28)*(int)(29 / ($H + 1))*((int)(21 - $G) / 11));
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $H. Configured minimum length is 3.
Open

        $H = (int)($C - (int)($C / 4) - (int)((8*$C+13) / 25) + 19*$G + 15) % 30;
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $y. Configured minimum length is 3.
Open

        $y = $year;
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $G. Configured minimum length is 3.
Open

        $G = $year % 19;
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 $C. Configured minimum length is 3.
Open

        $C = (int)($year / 100);
Severity: Minor
Found in src/Data/Contract/Month.php by phpmd

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 variable $H is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $C is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $C is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $L is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $L is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $E is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $I is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $H is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $I is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $C is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $L is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $G is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $I is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $G is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $J is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $C is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $H is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $C is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $J is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $E is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $H is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $G is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $C is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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 $H is not named in camelCase.
Open

    protected static function easterDate($year) {
        if (function_exists('easter_date')) {
            return easter_date($year);
        }

Severity: Minor
Found in src/Data/Contract/Month.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

There are no issues that match your filters.

Category
Status