brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

Avoid too many return statements within this method.
Open

                return ["DELETE FROM $table{$where}{$limit}", $this->data];
Severity: Major
Found in src/Database/QueryBuilder.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return 'ERROR_DURING_MASS_ASSIGNMENT: During ->assignData(), the following exception occurred: ' . $e->makeMessage($e->code, $e->data);
    Severity: Major
    Found in src/Exception/Model.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return new static($list);
      Severity: Major
      Found in src/Orm/Collection.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return static::groupJoinM2M($collection, $var, $where, $onlyCount);
        Severity: Major
        Found in src/Orm/Data.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return $this->joinM2M($var, $where);
          Severity: Major
          Found in src/Orm/Data.php - About 30 mins to fix

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

                        throw new \Exception('Cannot unserialise a Connection that does not contain a server address');
            Severity: Minor
            Found in src/DataLayer/Database/Connection.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 $value1 <= $value2;
            Severity: Major
            Found in src/OperatorParser.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return 'NO_SUCH_SERVICE: Tried to access service "{$data}", but it has not yet been definied';
              Severity: Major
              Found in src/Exception/Model.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return false;
                Severity: Major
                Found in src/Orm/Data.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return 'MODEL_DATA:UNEXPECTED_COLUMN_NAME: Property "'.$column.'" does not exist in the schema for this object ('.$model['table_name'].'). Please check the $model for this object, or look at $obj->var_dump()';
                  Severity: Major
                  Found in src/Exception/Model.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return $this->joinM21($var);
                    Severity: Major
                    Found in src/Orm/Data.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return 'MODEL_DATA:INCORRECT_MODEL_FOR_RELATIONSHIP: Property "'.$column.'" expected a Model relating to table "'.$expectedTable.'" but a Model for "'.$suppliedTable.'" was given instead.';
                      Severity: Major
                      Found in src/Exception/Model.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return true;
                        Severity: Major
                        Found in src/Orm/Data.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return 'MODEL_DATA:MODEL_EXPECTED_FOR_KEY: Property "'.$column.'" expected a Model object, but you gave it a variable of type "'.$type.'"';
                          Severity: Major
                          Found in src/Exception/Model.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return 'MODEL_DATA:CANNOT_SET_EXTERNAL_KEYS_TO_THIS_TABLE: Property "'.$column.'" represents a list of objects that have a foreign key that refers to this object. To change this, you must update those objects - you cannot alter this relationship from here.';
                            Severity: Major
                            Found in src/Exception/Model.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return new Collection();
                              Severity: Major
                              Found in src/Orm/Data.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return true;
                                Severity: Major
                                Found in src/Orm/Data.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                      return 'MODEL_DATA:SCALAR_VALUE_EXPECTED_FOR_COLUMN: Property "'.$column.'" on this object is a database column which can only accept scalar values. You tried to assign a "'.$type.'" to it.';
                                  Severity: Major
                                  Found in src/Exception/Model.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return 'MODEL_DATA:DATETIME_VALUE_EXPECTED_FOR_COLUMN: Column "'.$column.'" has been declared as a Datetime field - you tried to set it to "'.$value.'". You can set DateTime fields by passing it: Orm\Date objects, \DateTime objects, strings that resolve when strtotime\'d, unix_timestamps, or null (for nullable columns)';
                                    Severity: Major
                                    Found in src/Exception/Model.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                          return 'MODEL_DATA:SCALAR_VALUE_EXPECTED_FOR_COLUMN: Property "'.$column.'" on this object is a database column which can only accept scalar values. You tried to assign a "'.$type.'" to it. You probably meant to pass this object to column "'.substr($column, 0, -3).'". ';
                                      Severity: Major
                                      Found in src/Exception/Model.php - About 30 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language