nabbar/SwaggerValidator-PHP

View on GitHub

Showing 188 of 604 total issues

Avoid too many return statements within this method.
Open

            return $value;
Severity: Major
Found in src/DataType/TypeCommon.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

              return $this->getExampleType($context);
      Severity: Major
      Found in src/DataType/TypeString.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $context->setDataCheck($keyItems)->setValidationError(\SwaggerValidator\Common\Context::VALIDATION_TYPE_SWAGGER_ERROR, null, __METHOD__, __LINE__);
        Severity: Major
        Found in src/DataType/TypeArray.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return urlencode($value);
          Severity: Major
          Found in src/DataType/TypeCommon.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return $context->setDataValue(array($context->getDataValue()));
            Severity: Major
            Found in src/DataType/TypeCommon.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return $context->setDataCheck($keyType)->setValidationError(\SwaggerValidator\Common\Context::VALIDATION_TYPE_DATATYPE, null, __METHOD__, __LINE__);
              Severity: Major
              Found in src/DataType/TypeArray.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return $context->setDataCheck('maxLength')->setValidationError(\SwaggerValidator\Common\Context::VALIDATION_TYPE_DATASIZE, null, __METHOD__, __LINE__);
                Severity: Major
                Found in src/DataType/TypeString.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $this->generateRandowSign();
                  Severity: Major
                  Found in src/DataType/TypeString.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return $context;
                    Severity: Major
                    Found in src/DataType/TypeCommon.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return $context->setDataValue(explode(',', $context->getDataValue()));
                      Severity: Major
                      Found in src/DataType/TypeCommon.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $this->$keyItems->validate($context, $context->getDataValue());
                        Severity: Major
                        Found in src/DataType/TypeArray.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return $this->formatModel($context, $this->getExampleType($context));
                          Severity: Major
                          Found in src/DataType/TypeCommon.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $context->setDataCheck($keyMinItems)->setValidationError(\SwaggerValidator\Common\Context::VALIDATION_TYPE_DATASIZE, 'Value has not enough items', __METHOD__, __LINE__);
                            Severity: Major
                            Found in src/DataType/TypeArray.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return $context->setDataCheck($keyMaxItems)->setValidationError(\SwaggerValidator\Common\Context::VALIDATION_TYPE_DATASIZE, 'Value has too many items', __METHOD__, __LINE__);
                              Severity: Major
                              Found in src/DataType/TypeArray.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

                                              return $context->setDataCheck('minLength')->setValidationError(\SwaggerValidator\Common\Context::VALIDATION_TYPE_DATASIZE, null, __METHOD__, __LINE__);
                                  Severity: Major
                                  Found in src/DataType/TypeString.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                        return $context->setValidationError(\SwaggerValidator\Common\Context::VALIDATION_TYPE_SWAGGER_ERROR, null, __METHOD__, __LINE__);
                                    Severity: Major
                                    Found in src/DataType/TypeCommon.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return 'http://localhost/path/script.php?query#fragment';
                                      Severity: Major
                                      Found in src/DataType/TypeString.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $context->setDataCheck($keyUniqueItems)->setValidationError(\SwaggerValidator\Common\Context::VALIDATION_TYPE_DATAVALUE, 'Value has not only uniq items', __METHOD__, __LINE__);
                                        Severity: Major
                                        Found in src/DataType/TypeArray.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language