Completed
Push — master ( 615ffe...7d43d8 )
by Freek
01:26
created

src/macros/getHumanCount.php (9 issues)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
use Illuminate\Support\Collection;
4
5
/*
6
 * Get the second item from the collection.
7
 *
8
 * @param mixed $index
9
 *
10
 * @return mixed
11
 */
12
Collection::macro('second', function () {
13
    return $this->get(1);
0 ignored issues
show
The variable $this does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
14
});
15
16
/*
17
 * Get the third item from the collection.
18
 *
19
 * @param mixed $index
20
 *
21
 * @return mixed
22
 */
23
Collection::macro('third', function () {
24
    return $this->get(2);
0 ignored issues
show
The variable $this does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
25
});
26
27
/*
28
 * Get the fourth item from the collection.
29
 *
30
 * @param mixed $index
31
 *
32
 * @return mixed
33
 */
34
Collection::macro('fourth', function () {
35
    return $this->get(3);
0 ignored issues
show
The variable $this does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
36
});
37
38
/*
39
 * Get the fifth item from the collection.
40
 *
41
 * @param mixed $index
42
 *
43
 * @return mixed
44
 */
45
Collection::macro('fifth', function () {
46
    return $this->get(4);
0 ignored issues
show
The variable $this does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
47
});
48
49
/*
50
 * Get the sixth item from the collection.
51
 *
52
 * @param mixed $index
53
 *
54
 * @return mixed
55
 */
56
Collection::macro('sixth', function () {
57
    return $this->get(5);
0 ignored issues
show
The variable $this does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
58
});
59
60
/*
61
 * Get the seventh item from the collection.
62
 *
63
 * @param mixed $index
64
 *
65
 * @return mixed
66
 */
67
Collection::macro('seventh', function () {
68
    return $this->get(6);
0 ignored issues
show
The variable $this does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
69
});
70
71
/*
72
 * Get the eighth item from the collection.
73
 *
74
 * @param mixed $index
75
 *
76
 * @return mixed
77
 */
78
Collection::macro('eighth', function () {
79
    return $this->get(7);
0 ignored issues
show
The variable $this does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
80
});
81
82
/*
83
 * Get the ninth item from the collection.
84
 *
85
 * @param mixed $index
86
 *
87
 * @return mixed
88
 */
89
Collection::macro('ninth', function () {
90
    return $this->get(8);
0 ignored issues
show
The variable $this does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
91
});
92
93
/*
94
 * Get the tenth item from the collection.
95
 *
96
 * @param mixed $index
97
 *
98
 * @return mixed
99
 */
100
Collection::macro('tenth', function () {
101
    return $this->get(9);
0 ignored issues
show
The variable $this does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
102
});
103