jobyone/glueframework

View on GitHub

Showing 46 of 46 total issues

Method query has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function query($options, $values)
    {
        $class = get_called_class();
        $defaults = array(
            'where'=>false,
Severity: Minor
Found in _glue/classes/glueExtras/CRUDder/CRUDder.php - About 1 hr to fix

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

                'sort'=>$class::$config['defaultSort'],

    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 '$config' which will lead to PHP notices.
    Open

                    $class::$config['key'] => $key

    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 '$config' which will lead to PHP notices.
    Open

                $class::$config['key'] => $this->__get($class::$config['key'])

    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 '$config' which will lead to PHP notices.
    Open

            $query .= 'WHERE @@' . $class::$config['key'] . '@@ = :' . $class::$config['key'] . PHP_EOL;

    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 '$config' which will lead to PHP notices.
    Open

                $class::$config['key'] => $this->__get($class::$config['key'])

    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 '$config' which will lead to PHP notices.
    Open

            $query .= 'WHERE @@' . $class::$config['key'] . '@@ = :' . $class::$config['key'] . PHP_EOL;

    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 '$config' which will lead to PHP notices.
    Open

            $query = 'DELETE FROM ' . $class::$config['table'] . PHP_EOL;

    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 '$config' which will lead to PHP notices.
    Open

            $query .= 'WHERE @@' . $class::$config['key'] . '@@ = :' . $class::$config['key'] . PHP_EOL;

    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 '$config' which will lead to PHP notices.
    Open

            foreach ($class::$config['fields'] as $fieldID => $fieldInfo) {

    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 '$config' which will lead to PHP notices.
    Open

                $class::$config['key'] => $this->__get($class::$config['key'])

    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 '$config' which will lead to PHP notices.
    Open

                    'where' => '@@' . $class::$config['key'] . '@@ = :' . $class::$config['key'],

    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 '$config' which will lead to PHP notices.
    Open

                    'where' => '@@' . $class::$config['key'] . '@@ = :' . $class::$config['key'],

    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 '$config' which will lead to PHP notices.
    Open

            $query .= 'WHERE @@' . $class::$config['key'] . '@@ = :' . $class::$config['key'] . PHP_EOL;

    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 '$config' which will lead to PHP notices.
    Open

            foreach ($class::$config['fields'] as $fieldInfo) {

    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 '$config' which will lead to PHP notices.
    Open

            $query = 'UPDATE ' . $class::$config['table'] . PHP_EOL;

    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 '$config' which will lead to PHP notices.
    Open

                if ($fieldName != $class::$config['key'] && isset($data[$fieldName])) {

    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 '$config' which will lead to PHP notices.
    Open

            $query .= 'FROM ' . $class::$config['table'] . PHP_EOL;

    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 '$config' which will lead to PHP notices.
    Open

            foreach ($class::$config['fields'] as $fieldName => $fieldInfo) {

    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 '$config' which will lead to PHP notices.
    Open

            $query = 'INSERT INTO ' . $class::$config['table'] . PHP_EOL;

    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