detain/myadmin-plugin-installer

View on GitHub

Showing 54 of 54 total issues

The method add_route_requirement is not named in camelCase.
Open

    public function add_route_requirement($type, $function, $source = '', $path = false, $methods = false)
    {
        if ($path === false) {
            $path = '/'.$function;
        }
Severity: Minor
Found in src/Loader.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

The method ChmodPermissionsSetter is not named in camelCase.
Open

    public static function ChmodPermissionsSetter(Event $event, $http_user, $path, $type = 'dir')
    {
        if ($type == 'dir') {
            self::EnsureDirExists($event, $path);
        //            self::runProcess($event, 'chmod +a "'.$http_user.' allow delete,write,append,file_inherit,directory_inherit" '.$path);
Severity: Minor
Found in src/Plugin.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

The method add_page_requirement is not named in camelCase.
Open

    public function add_page_requirement($function, $source, $methods = false)
    {
        $this->add_route_requirement('client', $function, $source, '/'.$function, $methods);
        $this->add_route_requirement('client', $function, $source, '/admin/'.$function, $methods);
    }
Severity: Minor
Found in src/Loader.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

The method add_public_requirement is not named in camelCase.
Open

    public function add_public_requirement($function, $source, $methods = false)
    {
        $this->add_route_requirement('public', $function, $source, '/'.$function, $methods);
    }
Severity: Minor
Found in src/Loader.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

The method SetfaclPermissionsSetter is not named in camelCase.
Open

    public static function SetfaclPermissionsSetter(Event $event, $http_user, $path)
    {
        self::EnsureDirExists($event, $path);
        self::runProcess($event, 'setfacl -m u:"'.$http_user.'":rwX -m u:'.$_SERVER['USER'].':rwX '.$path);
        self::runProcess($event, 'setfacl -d -m u:"'.$http_user.'":rwX -m u:'.$_SERVER['USER'].':rwX '.$path);
Severity: Minor
Found in src/Plugin.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

The method add_public_file is not named in camelCase.
Open

    public function add_public_file($function, $source, $methods = false)
    {
        $this->add_route_requirement('public_file', $function, $source, '', '/'.$function, $methods);
    }
Severity: Minor
Found in src/Loader.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

The method get_setting is not named in camelCase.
Open

    public function get_setting($setting)
    {
        return constant($setting);
    }
Severity: Minor
Found in src/Loader.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

The method add_root_page_requirement is not named in camelCase.
Open

    public function add_root_page_requirement($function, $source, $methods = false)
    {
        $this->add_route_requirement('client', $function, $source, '/'.$function, $methods);
    }
Severity: Minor
Found in src/Loader.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

The method EnsureDirExists is not named in camelCase.
Open

    public static function EnsureDirExists(Event $event, $path)
    {
        if (!is_dir($path)) {
            mkdir($path, 0777, true);
            if (!is_dir($path)) {
Severity: Minor
Found in src/Plugin.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

The method add_ajax_page_requirement is not named in camelCase.
Open

    public function add_ajax_page_requirement($function, $source, $methods = false)
    {
        $this->add_route_requirement('client_ajax', $function, $source, '/ajax/'.$function, $methods);
        $this->add_route_requirement('client_ajax', $function, $source, '/admin/ajax/'.$function, $methods);
    }
Severity: Minor
Found in src/Loader.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

The method add_apmin_api_page_requirement is not named in camelCase.
Open

    public function add_apmin_api_page_requirement($function, $source, $methods = false)
    {
        $this->add_route_requirement('admin_api', $function, $source, '/admin/ajax/'.$function, $methods);
    }
Severity: Minor
Found in src/Loader.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

The method add_requirement is not named in camelCase.
Open

    public function add_requirement($function, $source, $methods = false)
    {
        if ($source != '') {
            $this->requirements[$function] = $source;
        }
Severity: Minor
Found in src/Loader.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

The method get_requirements is not named in camelCase.
Open

    public function get_requirements()
    {
        return $this->requirements;
    }
Severity: Minor
Found in src/Loader.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

The method get_routes is not named in camelCase.
Open

    public function get_routes()
    {
        $routes = $this->routes;
        uksort($routes, function ($a, $b) {
            if (strlen($a) == strlen($b)) {
Severity: Minor
Found in src/Loader.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

Severity
Category
Status
Source
Language