haleks/laravel-markdown

View on GitHub

Showing 6 of 9 total issues

Method getEchoMethods has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getEchoMethods()
    {
        $methods = [
            'compileRawEchos' => strlen(stripcslashes($this->rawTags[0])),
            'compileEscapedEchos' => strlen(stripcslashes($this->escapedTags[0])),
Severity: Minor
Found in src/Compilers/BladeExtCompiler.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                    return -1;
    Severity: Major
    Found in src/Compilers/BladeExtCompiler.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return 1;
      Severity: Major
      Found in src/Compilers/BladeExtCompiler.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return -1;
        Severity: Major
        Found in src/Compilers/BladeExtCompiler.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return 1;
          Severity: Major
          Found in src/Compilers/BladeExtCompiler.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return $methods;
            Severity: Major
            Found in src/Compilers/BladeExtCompiler.php - About 30 mins to fix
              Severity
              Category
              Status
              Source
              Language