HuasoFoundries/jpgraph

View on GitHub
src/includes/polyfills.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    class Kint
Severity: Minor
Found in src/includes/polyfills.php by phpcodesniffer

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

    class PC
Severity: Minor
Found in src/includes/polyfills.php by phpcodesniffer

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 7 and the first side effect is on line 69.
Open

<?php
Severity: Minor
Found in src/includes/polyfills.php by phpcodesniffer

Avoid classes with short names like PC. Configured minimum length is 3.
Open

    class PC
    {
        public static function debug()
        {
        }
Severity: Minor
Found in src/includes/polyfills.php by phpmd

ShortClassName

Since: 2.9

Detects when classes or interfaces have a very short name.

Example

class Fo {

}

interface Fo {

}

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

Each class must be in a file by itself
Open

    class PC
Severity: Minor
Found in src/includes/polyfills.php by phpcodesniffer

Expected 0 spaces after opening bracket; newline found
Open

if (
Severity: Minor
Found in src/includes/polyfills.php by phpcodesniffer

There are no issues that match your filters.

Category
Status