digipolisgent/robo-digipolis-deploy

View on GitHub
src/PushPackage.php

Summary

Maintainability
A
3 hrs
Test Coverage
C
70%

Method run has 81 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function run()
    {

        $ssh = call_user_func(
            [$this->sshFactory, 'create'],
Severity: Major
Found in src/PushPackage.php - About 3 hrs to fix

    The method SFTPFactory is not named in camelCase.
    Open

        public function SFTPFactory($class)
        {
            if (!is_subclass_of($class, SFTPFactoryInterface::class)) {
                throw new InvalidArgumentException(sprintf(
                    'SFTP Factory %s does not implement %s.',
    Severity: Minor
    Found in src/PushPackage.php by phpmd

    CamelCaseMethodName

    Since: 0.2

    It is considered best practice to use the camelCase notation to name methods.

    Example

    class ClassName {
        public function get_name() {
        }
    }

    Source

    There are no issues that match your filters.

    Category
    Status