nabbar/SwaggerValidator-PHP

View on GitHub

Showing 188 of 604 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

                      return 'TypeNumber';
      Severity: Major
      Found in src/Common/FactorySwagger.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, $keyAllOf . ' Combined Object Type cannot be empty !', __METHOD__, __LINE__);
        Severity: Major
        Found in src/DataType/TypeCombined.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

                    return $this->checkDataIsEmpty();
            Severity: Major
            Found in src/Common/Context.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

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

                  Avoid too many return statements within this method.
                  Open

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

                    Avoid too many return statements within this method.
                    Open

                            return $context->setValidationError(\SwaggerValidator\Common\Context::VALIDATION_TYPE_DATATYPE, 'The format does not match with registred patterns', __METHOD__, __LINE__);
                    Severity: Major
                    Found in src/DataType/TypeNumber.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                              return \SwaggerValidator\Common\Factory::getInstance()->OAuth2ApplicationSecurity;
                      Severity: Major
                      Found in src/Common/FactorySwagger.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return 'TypeObject';
                        Severity: Major
                        Found in src/Common/FactorySwagger.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return $this->loadRequestFormData($paramName);
                          Severity: Major
                          Found in src/Common/Context.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $this->returnBuildObject($context, \SwaggerValidator\Common\Factory::getInstance()->Reference, $originType, $originKey, $jsonData);
                            Severity: Major
                            Found in src/Common/FactorySwagger.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return $jsonData;
                              Severity: Major
                              Found in src/Common/FactorySwagger.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return $this->returnBuildObject($context, \SwaggerValidator\Common\Factory::getInstance()->TypeObject, $originType, $originKey, $jsonData);
                                Severity: Major
                                Found in src/Common/FactorySwagger.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return 'TypeString';
                                  Severity: Major
                                  Found in src/Common/FactorySwagger.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

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

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

                                                    return $jsonData;
                                        Severity: Major
                                        Found in src/Common/FactorySwagger.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language