davaxi/VCalendar

View on GitHub

Showing 42 of 42 total issues

Method getContent has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getContent()
    {
        $result[] = 'BEGIN:VCALENDAR';
        $result[] = 'VERSION:2.0';

Severity: Minor
Found in src/VCalendar/_/File.php - About 1 hr to fix

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = sprintf('SUMMARY:%s', $this->getValue($this->title));
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = sprintf('SEQUENCE:%s', $this->sequence);
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = 'VERSION:2.0';
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $this->computeLocation($result);
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $this->computeTimeZone($result);
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = sprintf('DESCRIPTION:%s', $this->description);
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $this->computeOrganize($result);
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

                $result[] = sprintf('X-WR-CALNAME:%s', $this->calendarName);
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = sprintf('CLASS:%s', $this->class);
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $this->computeAttendee($result);
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = "TRANSP:OPAQUE";
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = sprintf('DTSTAMP:%sZ',
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = sprintf('URL:%s', $this->getValue($this->url));
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = 'BEGIN:VCALENDAR';
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = 'CALSCALE:GREGORIAN';
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = sprintf('CREATED:%sZ', $this->getDateTimeFormat($this->createdDateTime));
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = 'END:VCALENDAR';
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = 'BEGIN:VEVENT';
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Avoid using undefined variables such as '$result' which will lead to PHP notices.
    Open

            $result[] = sprintf('STATUS:%s', $this->status);
    Severity: Minor
    Found in src/VCalendar/_/File.php by phpmd

    UndefinedVariable

    Since: 2.8.0

    Detects when a variable is used that has not been defined before.

    Example

    class Foo
    {
        private function bar()
        {
            // $message is undefined
            echo $message;
        }
    }

    Source https://phpmd.org/rules/cleancode.html#undefinedvariable

    Severity
    Category
    Status
    Source
    Language