wikimedia/mediawiki-core

View on GitHub

Showing 9,710 of 11,773 total issues

Avoid too many return statements within this method.
Open

            return false;
Severity: Major
Found in includes/media/JpegHandler.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $this->isByte( $val );
    Severity: Major
    Found in includes/media/Exif.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return $finalTimestamp;
      Severity: Major
      Found in includes/media/IPTC.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return $content;
        Severity: Major
        Found in includes/media/FormatMetadata.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return [ 'after', $this->formatPlaintext( $param['plaintext'], $format ) ];
          Severity: Major
          Found in includes/Message/Message.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return new ThumbnailImage( $image, $dstUrl, false, $newParams );
            Severity: Major
            Found in includes/media/TransformationalImageHandler.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return $this->isUndefined( $val );
              Severity: Major
              Found in includes/media/Exif.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return false;
                Severity: Major
                Found in includes/media/Exif.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return new MediaTransformError( 'thumbnail_error',
                                  $params['width'], $params['height'],
                                  wfMessage( 'filemissing' )
                              );
                  Severity: Major
                  Found in includes/media/SvgHandler.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return self::METADATA_COMPATIBLE;
                    Severity: Major
                    Found in includes/media/ExifBitmapHandler.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                          return $services->getContentLanguage();
                      Severity: Major
                      Found in includes/GlobalFunctions.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return [ 'before', $this->getLanguage()->timeanddate( $param['datetime'] ) ];
                        Severity: Major
                        Found in includes/Message/Message.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $this->formatListParam( $param['list'], $param['type'], $format );
                          Severity: Major
                          Found in includes/Message/Message.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return true;
                            Severity: Major
                            Found in includes/media/JpegHandler.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return new ThumbnailImage( $image, $dstUrl, $dstPath, $params );
                              Severity: Major
                              Found in includes/media/DjVuHandler.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                    return "\n*" . implode( "\n*", $vals );
                                Severity: Major
                                Found in includes/media/FormatMetadata.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $value;
                                  Severity: Major
                                  Found in includes/Request/PathRouter.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return [ 'before', $this->getLanguage()->formatTimePeriod( $param['period'] ) ];
                                    Severity: Major
                                    Found in includes/Message/Message.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return $err;
                                      Severity: Major
                                      Found in includes/media/TransformationalImageHandler.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return false;
                                        Severity: Major
                                        Found in includes/media/Exif.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language