shimabox/screru

View on GitHub
src/View/Observer.php

Summary

Maintainability
B
6 hrs
Test Coverage
F
37%

Observer has 21 functions (exceeds 20 allowed). Consider refactoring.
Open

class Observer implements Observable
{
    /**
     * はじめて画面が描画されたときに行う処理
     * @var \Closure
Severity: Minor
Found in src/View/Observer.php - About 2 hrs to fix

    Method notifyThatViewWidthHasReachedEndForFirst has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            RemoteWebDriver $driver,
            $contentsWidth,
            $contentsHeight,
            $scrolledWidth,
            $scrolledHeight
    Severity: Minor
    Found in src/View/Observer.php - About 35 mins to fix

      Method notifyFirstRender has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              RemoteWebDriver $driver,
              $contentsWidth,
              $contentsHeight,
              $scrolledWidth,
              $scrolledHeight
      Severity: Minor
      Found in src/View/Observer.php - About 35 mins to fix

        Method notifyFirstVerticalScroll has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                RemoteWebDriver $driver,
                $contentsWidth,
                $contentsHeight,
                $scrolledWidth,
                $scrolledHeight
        Severity: Minor
        Found in src/View/Observer.php - About 35 mins to fix

          Method notifyLastRender has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  RemoteWebDriver $driver,
                  $contentsWidth,
                  $contentsHeight,
                  $scrolledWidth,
                  $scrolledHeight
          Severity: Minor
          Found in src/View/Observer.php - About 35 mins to fix

            Method notifyScreenScroll has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    RemoteWebDriver $driver,
                    $contentsWidth,
                    $contentsHeight,
                    $scrolledWidth,
                    $scrolledHeight
            Severity: Minor
            Found in src/View/Observer.php - About 35 mins to fix

              Method notifyThatViewHeightHasReachedEndForFirst has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      RemoteWebDriver $driver,
                      $contentsWidth,
                      $contentsHeight,
                      $scrolledWidth,
                      $scrolledHeight
              Severity: Minor
              Found in src/View/Observer.php - About 35 mins to fix

                Method notifyRenderComplete has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        RemoteWebDriver $driver,
                        $contentsWidth,
                        $contentsHeight,
                        $scrolledWidth,
                        $scrolledHeight
                Severity: Minor
                Found in src/View/Observer.php - About 35 mins to fix

                  There are no issues that match your filters.

                  Category
                  Status