e107inc/e107

View on GitHub
e107_handlers/resize_handler.php

Summary

Maintainability
B
6 hrs
Test Coverage
F
0%

Avoid too many return statements within this method.
Open

                    if (eShims::readfile($source_file) === FALSE) { return FALSE; }
Severity: Major
Found in e107_handlers/resize_handler.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return FALSE;
    Severity: Major
    Found in e107_handlers/resize_handler.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return TRUE;
      Severity: Major
      Found in e107_handlers/resize_handler.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

            if ($destination_file == "stdout") return TRUE;        // Can't do anything more if file sent to stdout - assume success
        Severity: Major
        Found in e107_handlers/resize_handler.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return FALSE;
          Severity: Major
          Found in e107_handlers/resize_handler.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return copy($source_file,$destination_file);
            Severity: Major
            Found in e107_handlers/resize_handler.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return FALSE; // Unsupported image type
              Severity: Major
              Found in e107_handlers/resize_handler.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return FALSE;
                Severity: Major
                Found in e107_handlers/resize_handler.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                        return FALSE;
                  Severity: Major
                  Found in e107_handlers/resize_handler.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                              return FALSE;
                    Severity: Major
                    Found in e107_handlers/resize_handler.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return ($source_file == $destination_file);
                      Severity: Major
                      Found in e107_handlers/resize_handler.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    if (!function_exists('imagecreatefromgif')) return FALSE;        // Some versions of GD library don't support GIF
                        Severity: Major
                        Found in e107_handlers/resize_handler.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                return TRUE;
                          Severity: Major
                          Found in e107_handlers/resize_handler.php - About 30 mins to fix

                            There are no issues that match your filters.

                            Category
                            Status