Completed
Pull Request — master (#156)
by Lucas
03:54 queued 01:43
created

GetHumanCount::second()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Spatie\CollectionMacros\Macros;
4
5
class GetHumanCount
6
{
7
    /**
8
     * Get the second item from the collection.
9
     *
10
     * @param mixed $index
0 ignored issues
show
Bug introduced by
There is no parameter named $index. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
11
     *
12
     * @return mixed
13
     */
14
    public function second()
15
    {
16
        return function () {
17
            return $this->get(1);
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Spatie\Collection...s\Macros\GetHumanCount>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
18
        };
19
    }
20
21
    /**
22
     * Get the third item from the collection.
23
     *
24
     * @param mixed $index
0 ignored issues
show
Bug introduced by
There is no parameter named $index. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
25
     *
26
     * @return mixed
27
     */
28
    public function third()
29
    {
30
        return function () {
31
            return $this->get(2);
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Spatie\Collection...s\Macros\GetHumanCount>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
32
        };
33
    }
34
35
    /**
36
     * Get the fourth item from the collection.
37
     *
38
     * @param mixed $index
0 ignored issues
show
Bug introduced by
There is no parameter named $index. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
39
     *
40
     * @return mixed
41
     */
42
    public function fourth()
43
    {
44
        return function () {
45
            return $this->get(3);
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Spatie\Collection...s\Macros\GetHumanCount>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
46
        };
47
    }
48
49
    /**
50
     * Get the fifth item from the collection.
51
     *
52
     * @param mixed $index
0 ignored issues
show
Bug introduced by
There is no parameter named $index. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
53
     *
54
     * @return mixed
55
     */
56
    public function fifth()
57
    {
58
        return function () {
59
            return $this->get(4);
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Spatie\Collection...s\Macros\GetHumanCount>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
60
        };
61
    }
62
63
    /**
64
     * Get the sixth item from the collection.
65
     *
66
     * @param mixed $index
0 ignored issues
show
Bug introduced by
There is no parameter named $index. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
67
     *
68
     * @return mixed
69
     */
70
    public function sixth()
71
    {
72
        return function () {
73
            return $this->get(5);
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Spatie\Collection...s\Macros\GetHumanCount>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
74
        };
75
    }
76
77
    /**
78
     * Get the seventh item from the collection.
79
     *
80
     * @param mixed $index
0 ignored issues
show
Bug introduced by
There is no parameter named $index. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
81
     *
82
     * @return mixed
83
     */
84
    public function seventh()
85
    {
86
        return function () {
87
            return $this->get(6);
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Spatie\Collection...s\Macros\GetHumanCount>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
88
        };
89
    }
90
91
    /**
92
     * Get the eighth item from the collection.
93
     *
94
     * @param mixed $index
0 ignored issues
show
Bug introduced by
There is no parameter named $index. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
95
     *
96
     * @return mixed
97
     */
98
    public function eighth()
99
    {
100
        return function () {
101
            return $this->get(7);
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Spatie\Collection...s\Macros\GetHumanCount>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
102
        };
103
    }
104
105
    /**
106
     * Get the ninth item from the collection.
107
     *
108
     * @param mixed $index
0 ignored issues
show
Bug introduced by
There is no parameter named $index. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
109
     *
110
     * @return mixed
111
     */
112
    public function ninth()
113
    {
114
        return function () {
115
            return $this->get(8);
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Spatie\Collection...s\Macros\GetHumanCount>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
116
        };
117
    }
118
119
    /**
120
     * Get the tenth item from the collection.
121
     *
122
     * @param mixed $index
0 ignored issues
show
Bug introduced by
There is no parameter named $index. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
123
     *
124
     * @return mixed
125
     */
126
    public function tenth()
127
    {
128
        return function () {
129
            return $this->get(9);
0 ignored issues
show
Bug introduced by
The method get() does not seem to exist on object<Spatie\Collection...s\Macros\GetHumanCount>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
130
        };
131
    }
132
}
133