mrcnpdlk/grandstream-xmlapp

View on GitHub

Showing 2 of 13 total issues

Method resizeImage has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function resizeImage(int $width = 100, int $height = null)
    {
        if (!file_exists($this->sImgPath) || !is_readable($this->sImgPath)) {
            throw new Exception('Image not exists');
        }
Severity: Minor
Found in src/Application/Model/Components/ElemBitmap.php - About 1 hr to fix

    Method toGreyScale has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function toGreyScale(int $tone = null)
        {
            if (is_null($tone)) {
                return 'None';
            }
    Severity: Minor
    Found in src/Helper/Color.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language