wikimedia/mediawiki-core

View on GitHub

Showing 11,773 of 11,773 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

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

          Avoid too many return statements within this method.
          Open

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

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

                          return new MediaTransformError( 'thumbnail_error',
                              $scalerParams['clientWidth'], $scalerParams['clientHeight'],
                              wfMessage( 'unknown-error' )
                          );
              Severity: Major
              Found in includes/media/TransformationalImageHandler.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

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

                  Avoid too many return statements within this method.
                  Open

                                  return $this->isASCII( $val );
                  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( 'thumbnail-temp-create' )->text()
                                );
                    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_BAD;
                      Severity: Major
                      Found in includes/media/ExifBitmapHandler.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

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

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

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

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

                                              return [ 'before', $param ];
                                  Severity: Major
                                  Found in includes/Message/Message.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

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

                                      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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language