Completed
Push — master ( 3cc9b0...d35865 )
by Timur
02:56
created

CreateCertificateCommand::locatedAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 3
1
<?php
2
3
namespace Laravel\Forge\Certificates\Commands;
4
5
class CreateCertificateCommand extends CertificateCommand
6
{
7
    /**
8
     * Set certificate domain.
9
     *
10
     * @param string $domain
11
     *
12
     * @return static
13
     */
14
    public function identifiedAs(string $domain)
15
    {
16
        return $this->attachPayload('domain', $domain);
17
    }
18
19
    /**
20
     * Set certificate organization name.
21
     *
22
     * @param string $organization
23
     */
24
    public function ownedBy(string $organization)
25
    {
26
        return $this->attachPayload('organization', $organization);
27
    }
28
29
    /**
30
     * Set organization location.
31
     *
32
     * @param string $country
33
     * @param string $state
34
     * @param string $city
35
     *
36
     * @return static
37
     */
38
    public function locatedAt(string $country, string $state, string $city)
39
    {
40
        return $this
41
            ->attachPayload('country', $country)
42
            ->attachPayload('state', $state)
43
            ->attachPayload('city', $city);
44
    }
45
46
    /**
47
     * Set certificate department.
48
     *
49
     * @param string $department*
0 ignored issues
show
Documentation introduced by
There is no parameter named $department*. Did you maybe mean $department?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
50
     *
51
     * @return static
52
     */
53
    public function assignedTo(string $department)
54
    {
55
        return $this->attachPayload('department', $department);
56
    }
57
}
58