Passed
Push — master ( 26152a...8fe73e )
by F
04:04
created

AddressController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PWWEB\Localisation\Controllers;
4
5
use App\Http\Controllers\Controller;
1 ignored issue
show
Bug introduced by
The type App\Http\Controllers\Controller was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use PWWEB\Localisation\Models\Address\Type;
7
use PWWEB\Localisation\Models\Country;
8
9
class AddressController extends Controller
10
{
11
    /**
12
     * Show a list of addresses.
13
     *
14
     * @return \Illuminate\Contracts\Support\Renderable
15
     */
16
    public function index()
17
    {
18
    }
19
20
    /**
21
     * Show the address form for creation.
22
     *
23
     * @return \Illuminate\Contracts\Support\Renderable
24
     */
25
    public function create()
26
    {
27
        $types = Type::all();
28
        $countries = Country::all();
29
30
        return view('localisation::address.add', compact('types', 'countries'));
31
    }
32
33
    /**
34
     * Store an address.
35
     *
36
     * @return \Illuminate\Contracts\Support\Renderable
37
     */
38
    public function store()
39
    {
40
    }
41
}
42