BaguettePHP/mastodon-api

View on GitHub

Showing 92 of 443 total issues

Function request has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Severity: Minor
Found in docs/resources/combined.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

    Severity: Critical
    Found in docs/resources/combined.js - About 1 hr to fix

      Function selection has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      Severity: Minor
      Found in docs/resources/combined.js - About 1 hr to fix

        Method save has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function save()
            {
                if ($this->read_only) {
                    throw new \RuntimeException('This config store is read only.');
                }
        Severity: Minor
        Found in src/Config/DotEnvStorage.php - About 1 hr to fix

          Function load has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          Severity: Minor
          Found in docs/resources/combined.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

            Severity: Critical
            Found in docs/resources/combined.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

              Severity: Critical
              Found in docs/resources/combined.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                Severity: Critical
                Found in docs/resources/combined.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                  Severity: Critical
                  Found in docs/resources/combined.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                    Severity: Critical
                    Found in docs/resources/combined.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                      Severity: Critical
                      Found in docs/resources/combined.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                        Severity: Critical
                        Found in docs/resources/combined.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                          Severity: Critical
                          Found in docs/resources/combined.js - About 1 hr to fix

                            Function init has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            Severity: Minor
                            Found in docs/resources/combined.js - About 1 hr to fix

                              Function cookie has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              Severity: Minor
                              Found in docs/resources/combined.js - About 1 hr to fix

                                Method get_client_app has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function get_client_app(m\Client $client, m\Service\Scope $scope, array $callback_uris)
                                    {
                                        $file = strtr($client->getHostname(), ['/' => '_']);
                                        $path = __DIR__ . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, ['..', 'cache', "{$file}.json"]);
                                
                                
                                Severity: Minor
                                Found in sample/inc/app.php - About 1 hr to fix

                                  Function selectCurrent has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  Severity: Minor
                                  Found in docs/resources/combined.js - About 1 hr to fix

                                    Function populate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    Severity: Minor
                                    Found in docs/resources/combined.js - About 1 hr to fix

                                      Method session has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function session($instance, $client_id, $client_secret, array $options)
                                      {
                                          $scope = null;
                                          $grant = null;
                                          $authorization = null;
                                      Severity: Minor
                                      Found in src/functions.php - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                        Severity: Major
                                        Found in docs/resources/combined.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language