laravel/framework

View on GitHub
src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php

Summary

Maintainability
B
4 hrs
Test Coverage

File MakesHttpRequests.php has 302 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace Illuminate\Foundation\Testing\Concerns;

use Illuminate\Contracts\Http\Kernel as HttpKernel;
Severity: Minor
Found in src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php - About 3 hrs to fix

    Method call has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function call($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
    Severity: Major
    Found in src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php - About 50 mins to fix

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

          public function json($method, $uri, array $data = [], array $headers = [], $options = 0)
      Severity: Minor
      Found in src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status