Completed
Pull Request — master (#156)
by Lucas
02:51
created

GetHumanCount::fourth()   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
6
7
class GetHumanCount
8
{
9
    /**
10
     * Get the second item from the collection.
11
     *
12
     * @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...
13
     *
14
     * @return mixed
15
     */
16
    public function second()
17
    {
18
        return function () {
19
            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...
20
        };
21
    }
22
23
    /**
24
     * Get the third item from the collection.
25
     *
26
     * @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...
27
     *
28
     * @return mixed
29
     */
30
    public function third()
31
    {
32
        return function () {
33
            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...
34
        };
35
    }
36
37
    /**
38
     * Get the fourth item from the collection.
39
     *
40
     * @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...
41
     *
42
     * @return mixed
43
     */
44
    public function fourth()
45
    {
46
        return function () {
47
            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...
48
        };
49
    }
50
51
    /**
52
     * Get the fifth item from the collection.
53
     *
54
     * @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...
55
     *
56
     * @return mixed
57
     */
58
    public function fifth()
59
    {
60
        return function () {
61
            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...
62
        };
63
    }
64
65
    /**
66
     * Get the sixth item from the collection.
67
     *
68
     * @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...
69
     *
70
     * @return mixed
71
     */
72
    public function sixth()
73
    {
74
        return function () {
75
            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...
76
        };
77
    }
78
79
    /**
80
     * Get the seventh item from the collection.
81
     *
82
     * @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...
83
     *
84
     * @return mixed
85
     */
86
    public function seventh()
87
    {
88
        return function () {
89
            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...
90
        };
91
    }
92
93
    /**
94
     * Get the eighth item from the collection.
95
     *
96
     * @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...
97
     *
98
     * @return mixed
99
     */
100
    public function eighth()
101
    {
102
        return function () {
103
            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...
104
        };
105
    }
106
107
    /**
108
     * Get the ninth item from the collection.
109
     *
110
     * @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...
111
     *
112
     * @return mixed
113
     */
114
    public function ninth()
115
    {
116
        return function () {
117
            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...
118
        };
119
    }
120
121
    /**
122
     * Get the tenth item from the collection.
123
     *
124
     * @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...
125
     *
126
     * @return mixed
127
     */
128
    public function tenth()
129
    {
130
        return function () {
131
            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...
132
        };
133
    }
134
}
135