Asymptix/Framework

View on GitHub

Showing 720 of 720 total issues

Avoid too many return statements within this method.
Open

                return null;
Severity: Major
Found in framework/tools/geo/LocationDetector.php - About 30 mins to fix

    The method set has a boolean flag argument $fieldValue, which is a certain sign of a Single Responsibility Principle violation.
    Open

        public static function set($fieldName, $fieldValue = true) {
    Severity: Minor
    Found in framework/web/Session.php by phpmd

    BooleanArgumentFlag

    Since: 1.4.0

    A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

    Example

    class Foo {
        public function bar($flag = true) {
        }
    }

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

    Missing class import via use statement (line '64', column '23').
    Open

                throw new \Exception("Empty view template");
    Severity: Minor
    Found in framework/app/View.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Avoid too many return statements within this method.
    Open

                return $this->selectDBObject();
    Severity: Major
    Found in framework/db/DBSelector.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return $this->getFieldValue($fieldName);
      Severity: Major
      Found in framework/db/DBSelector.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return 'E_COMPILE_WARNING';
        Severity: Major
        Found in classes/db/tools/ErrorLog.php - About 30 mins to fix

          Missing class import via use statement (line '233', column '23').
          Open

                      throw new \Exception("No field '" . $fieldName . "' in global fields list.");
          Severity: Minor
          Found in framework/web/Request.php by phpmd

          MissingImport

          Since: 2.7.0

          Importing all external classes in a file through use statements makes them clearly visible.

          Example

          function make() {
              return new \stdClass();
          }

          Source http://phpmd.org/rules/cleancode.html#MissingImport

          Avoid too many return statements within this method.
          Open

                          return 'E_USER_DEPRECATED';
          Severity: Major
          Found in classes/db/tools/ErrorLog.php - About 30 mins to fix

            The method save has a boolean flag argument $debug, which is a certain sign of a Single Responsibility Principle violation.
            Open

                public function save($debug = false) {
            Severity: Minor
            Found in classes/db/access/User.php by phpmd

            BooleanArgumentFlag

            Since: 1.4.0

            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

            Example

            class Foo {
                public function bar($flag = true) {
                }
            }

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

            Missing class import via use statement (line '271', column '23').
            Open

                        throw new \Exception("No field '" . $fieldName . "' in global fields list.");
            Severity: Minor
            Found in framework/web/Request.php by phpmd

            MissingImport

            Since: 2.7.0

            Importing all external classes in a file through use statements makes them clearly visible.

            Example

            function make() {
                return new \stdClass();
            }

            Source http://phpmd.org/rules/cleancode.html#MissingImport

            Missing class import via use statement (line '40', column '23').
            Open

                    $oClass = new \ReflectionClass(new Messages);
            Severity: Minor
            Found in framework/core/Messages.php by phpmd

            MissingImport

            Since: 2.7.0

            Importing all external classes in a file through use statements makes them clearly visible.

            Example

            function make() {
                return new \stdClass();
            }

            Source http://phpmd.org/rules/cleancode.html#MissingImport

            Missing class import via use statement (line '142', column '23').
            Open

                        throw new \Exception("Object '" . get_class($this) . "' hasn't field '" . $fieldName . "'");
            Severity: Minor
            Found in framework/core/BasicObject.php by phpmd

            MissingImport

            Since: 2.7.0

            Importing all external classes in a file through use statements makes them clearly visible.

            Example

            function make() {
                return new \stdClass();
            }

            Source http://phpmd.org/rules/cleancode.html#MissingImport

            The method getFieldsList has a boolean flag argument $withAliases, which is a certain sign of a Single Responsibility Principle violation.
            Open

                public function getFieldsList($withAliases = false) {
            Severity: Minor
            Found in framework/core/BasicObject.php by phpmd

            BooleanArgumentFlag

            Since: 1.4.0

            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

            Example

            class Foo {
                public function bar($flag = true) {
                }
            }

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

            Missing class import via use statement (line '50', column '23').
            Open

                        throw new \Exception("Invalid message type code");
            Severity: Minor
            Found in framework/core/Messages.php by phpmd

            MissingImport

            Since: 2.7.0

            Importing all external classes in a file through use statements makes them clearly visible.

            Example

            function make() {
                return new \stdClass();
            }

            Source http://phpmd.org/rules/cleancode.html#MissingImport

            The method insertDBObject has a boolean flag argument $ignore, which is a certain sign of a Single Responsibility Principle violation.
            Open

                public static function insertDBObject($dbObject, $ignore = false, $debug = false) {
            Severity: Minor
            Found in framework/db/DBCore.php by phpmd

            BooleanArgumentFlag

            Since: 1.4.0

            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

            Example

            class Foo {
                public function bar($flag = true) {
                }
            }

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

            Missing class import via use statement (line '70', column '23').
            Open

                        throw new \Exception("View object was not initialized with template");
            Severity: Minor
            Found in framework/app/View.php by phpmd

            MissingImport

            Since: 2.7.0

            Importing all external classes in a file through use statements makes them clearly visible.

            Example

            function make() {
                return new \stdClass();
            }

            Source http://phpmd.org/rules/cleancode.html#MissingImport

            Missing class import via use statement (line '95', column '23').
            Open

                        throw new \Exception("Object '" . get_class($this) . "' hasn't field '" . $fieldName . "'");
            Severity: Minor
            Found in framework/core/BasicObject.php by phpmd

            MissingImport

            Since: 2.7.0

            Importing all external classes in a file through use statements makes them clearly visible.

            Example

            function make() {
                return new \stdClass();
            }

            Source http://phpmd.org/rules/cleancode.html#MissingImport

            The method insertDBObject has a boolean flag argument $debug, which is a certain sign of a Single Responsibility Principle violation.
            Open

                public static function insertDBObject($dbObject, $ignore = false, $debug = false) {
            Severity: Minor
            Found in framework/db/DBCore.php by phpmd

            BooleanArgumentFlag

            Since: 1.4.0

            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

            Example

            class Foo {
                public function bar($flag = true) {
                }
            }

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

            Missing class import via use statement (line '207', column '27').
            Open

                            throw new \Exception("No such method in the Object class.");
            Severity: Minor
            Found in framework/core/BasicObject.php by phpmd

            MissingImport

            Since: 2.7.0

            Importing all external classes in a file through use statements makes them clearly visible.

            Example

            function make() {
                return new \stdClass();
            }

            Source http://phpmd.org/rules/cleancode.html#MissingImport

            Missing class import via use statement (line '80', column '23').
            Open

                        throw new \Exception("Invalid message code");
            Severity: Minor
            Found in framework/core/Messages.php by phpmd

            MissingImport

            Since: 2.7.0

            Importing all external classes in a file through use statements makes them clearly visible.

            Example

            function make() {
                return new \stdClass();
            }

            Source http://phpmd.org/rules/cleancode.html#MissingImport

            Severity
            Category
            Status
            Source
            Language