chippyash/Math-Matrix

View on GitHub

Showing 183 of 183 total issues

Missing class import via use statement (line '116', column '23').
Open

            throw new \InvalidArgumentException($productName);

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '45', column '23').
Open

            throw new \InvalidArgumentException('Matrix is not NumericMatrix');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '60', column '27').
Open

                throw new \InvalidArgumentException('pptions[edgeFunc]');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '58', column '23').
Open

            throw new \InvalidArgumentException('size must be >= 1');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Avoid too many return statements within this method.
Open

                    return $value;
Severity: Major
Found in src/Chippyash/Math/Matrix/Traits/ConvertNumberToNumeric.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return $this->transform(new $tName(), $extra);
    Severity: Major
    Found in src/Chippyash/Math/Matrix/NumericMatrix.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return TypeFactory::createInt(($value ? 1 : 0));
      Severity: Major
      Found in src/Chippyash/Math/Matrix/Traits/ConvertNumberToNumeric.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return TypeFactory::createRational($scalar);
        Severity: Major
        Found in src/Chippyash/Math/Matrix/Traits/CreateCorrectScalarType.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return ComplexTypeFactory::create($scalar);
          Severity: Major
          Found in src/Chippyash/Math/Matrix/Traits/CreateCorrectScalarType.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return RationalTypeFactory::create($value ? 1 : 0, 1);
            Severity: Major
            Found in src/Chippyash/Math/Matrix/Traits/ConvertNumberToRational.php - About 30 mins to fix

              Missing class import via use statement (line '150', column '23').
              Open

                          throw new \InvalidArgumentException('$rows must be >= 1');

              MissingImport

              Since: 2.7.0

              Importing all external classes in a file through use statements makes them clearly visible.

              Example

              function make() {
                  return new \stdClass();
              }

              Source http://phpmd.org/rules/cleancode.html#MissingImport

              Avoid too many return statements within this method.
              Open

                              return TypeFactory::createInt(0);
              Severity: Major
              Found in src/Chippyash/Math/Matrix/Traits/ConvertNumberToNumeric.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                    return ComplexTypeFactory::create($scalar);
                Severity: Major
                Found in src/Chippyash/Math/Matrix/Traits/CreateCorrectScalarType.php - About 30 mins to fix

                  Missing class import via use statement (line '104', column '19').
                  Open

                          throw new \InvalidArgumentException($attr());

                  MissingImport

                  Since: 2.7.0

                  Importing all external classes in a file through use statements makes them clearly visible.

                  Example

                  function make() {
                      return new \stdClass();
                  }

                  Source http://phpmd.org/rules/cleancode.html#MissingImport

                  Missing class import via use statement (line '221', column '19').
                  Open

                          throw new \InvalidArgumentException(self::ERR_INVALID_OP_NAME);

                  MissingImport

                  Since: 2.7.0

                  Importing all external classes in a file through use statements makes them clearly visible.

                  Example

                  function make() {
                      return new \stdClass();
                  }

                  Source http://phpmd.org/rules/cleancode.html#MissingImport

                  Avoid too many return statements within this method.
                  Open

                                  return RationalTypeFactory::create(0, 1);
                  Severity: Major
                  Found in src/Chippyash/Math/Matrix/Traits/ConvertNumberToRational.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return RationalTypeFactory::create($scalar);
                    Severity: Major
                    Found in src/Chippyash/Math/Matrix/Traits/CreateCorrectScalarType.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return ComplexTypeFactory::create(($value ? 1 : 0), 0);
                      Severity: Major
                      Found in src/Chippyash/Math/Matrix/Traits/ConvertNumberToComplex.php - About 30 mins to fix

                        Missing class import via use statement (line '43', column '23').
                        Open

                                    throw new \InvalidArgumentException('$cols must be >= 1');

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Missing class import via use statement (line '81', column '23').
                        Open

                                    throw new \InvalidArgumentException("{$name} is unknown for tuning");

                        MissingImport

                        Since: 2.7.0

                        Importing all external classes in a file through use statements makes them clearly visible.

                        Example

                        function make() {
                            return new \stdClass();
                        }

                        Source http://phpmd.org/rules/cleancode.html#MissingImport

                        Severity
                        Category
                        Status
                        Source
                        Language