davaxi/VCalendar

View on GitHub
src/VCalendar/_/File.php

Summary

Maintainability
A
1 hr
Test Coverage

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

            $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('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[] = 'X-MS-OLK-FORCEINSPECTOROPEN:TRUE';
    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

    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('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

            $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

            $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

                $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[] = '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[] = '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[] = sprintf('CATEGORIES:%s', implode(', ', $this->categories));
    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[] = sprintf('UID:%s', $this->uid);
    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->computeProcess($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('METHOD:%s', $this->method);
    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('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('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

            $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

            $this->computeMoment($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[] = '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[] = 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[] = 'END: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

            return implode("\r\n", $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('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

            $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[] = sprintf('LAST-MODIFIED:%sZ', $this->getDateTimeFormat($this->lastUpdatedDatetime));
    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

    There are no issues that match your filters.

    Category
    Status