mrcnpdlk/unoconv-api

View on GitHub

Showing 56 of 57 total issues

Constant ExportLinksRelativeFsys should be defined in uppercase
Open

    public const ExportLinksRelativeFsys               = 'ExportLinksRelativeFsys';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant FormsType should be defined in uppercase
Open

    public const FormsType                             = 'FormsType';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant SelectPdfVersion should be defined in uppercase
Open

    public const SelectPdfVersion                      = 'SelectPdfVersion';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant FirstPagOnLeft should be defined in uppercase
Open

    public const FirstPagOnLeft                        = 'FirstPagOnLeft';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant UseLosslessCompression should be defined in uppercase
Open

    public const UseLosslessCompression                = 'UseLosslessCompression';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant EncryptFile should be defined in uppercase
Open

    public const EncryptFile                           = 'EncryptFile';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant HideViewerToolbar should be defined in uppercase
Open

    public const HideViewerToolbar                     = 'HideViewerToolbar';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant ResizeWindowToInitialPage should be defined in uppercase
Open

    public const ResizeWindowToInitialPage             = 'ResizeWindowToInitialPage';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant RestrictPermissions should be defined in uppercase
Open

    public const RestrictPermissions                   = 'RestrictPermissions';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant UseTransitionEffects should be defined in uppercase
Open

    public const UseTransitionEffects                  = 'UseTransitionEffects';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant Watermark should be defined in uppercase
Open

    public const Watermark                             = 'Watermark';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant HideViewerMenubar should be defined in uppercase
Open

    public const HideViewerMenubar                     = 'HideViewerMenubar';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant Magnification should be defined in uppercase
Open

    public const Magnification                         = 'Magnification';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant OpenInFullScreenMode should be defined in uppercase
Open

    public const OpenInFullScreenMode                  = 'OpenInFullScreenMode';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

The method wsGetPdf() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
Open

    public function wsGetPdf(string $sourceFile, ?string $destination): SplFileObject
    {
        $sourceFile = realpath($sourceFile);

        if (!is_file($sourceFile)) {
Severity: Minor
Found in src/Api.php by phpmd

CyclomaticComplexity

Since: 0.1

Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

Example

// Cyclomatic Complexity = 11
class Foo {
1   public function example() {
2       if ($a == $b) {
3           if ($a1 == $b1) {
                fiddle();
4           } elseif ($a2 == $b2) {
                fiddle();
            } else {
                fiddle();
            }
5       } elseif ($c == $d) {
6           while ($c == $d) {
                fiddle();
            }
7        } elseif ($e == $f) {
8           for ($n = 0; $n < $h; $n++) {
                fiddle();
            }
        } else {
            switch ($z) {
9               case 1:
                    fiddle();
                    break;
10              case 2:
                    fiddle();
                    break;
11              case 3:
                    fiddle();
                    break;
                default:
                    fiddle();
                    break;
            }
        }
    }
}

Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

Constant PermissionPassword should be defined in uppercase
Open

    public const PermissionPassword                    = 'PermissionPassword';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant RestrictPermissionPassword should be defined in uppercase
Open

    public const RestrictPermissionPassword            = 'RestrictPermissionPassword';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant Zoom should be defined in uppercase
Open

    public const Zoom                                  = 'Zoom';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant DisplayPDFDocumentTitle should be defined in uppercase
Open

    public const DisplayPDFDocumentTitle               = 'DisplayPDFDocumentTitle';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Constant HideViewerWindowControls should be defined in uppercase
Open

    public const HideViewerWindowControls              = 'HideViewerWindowControls';
Severity: Minor
Found in src/Enum/ExportType.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

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

Severity
Category
Status
Source
Language