Completed
Push — master ( ea5d12...b135b5 )
by Evgenii
04:00
created

MagicCalls::tanh()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Laratrade\Trader\Contracts;
4
5
/**
6
 * Trait MagicCalls
7
 * @package Laratrade\Trader\Contracts
8
 *
9
 * phpcs:disable Generic.Files.LineLength
10
 * phpcs:disable PSR1.Methods.CamelCapsMethodName
11
 */
12
trait MagicCalls
13
{
14
    /**
15
     * Vector Trigonometric ACos.
16
     *
17
     * Calculates the arc cosine for each value in real and returns the resulting array.
18
     *
19
     * @param array $real Array of real values.
20
     *
21
     * @return array Returns an array with calculated data.
22
     */
23 2
    public function acos(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
24
    {
25 2
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
26
    }
27
28
    /**
29
     * Chaikin A/D Line.
30
     *
31
     * @param array $high   High price, array of real values.
32
     * @param array $low    Low price, array of real values.
33
     * @param array $close  Closing price, array of real values.
34
     * @param array $volume Volume traded, array of real values.
35
     *
36
     * @return array Returns an array with calculated data.
37
     */
38 2
    public function ad(array $high, array $low, array $close, array $volume): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $volume is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
39
    {
40 2
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
41
    }
42
43
    /**
44
     * Vector Arithmetic Add.
45
     *
46
     * Calculates the vector addition of real0 to real1 and returns the resulting vector.
47
     *
48
     * @param array $real0 Array of real values.
49
     * @param array $real1 Array of real values.
50
     *
51
     * @return array Returns an array with calculated data.
52
     */
53 2
    public function add(array $real0, array $real1): array
0 ignored issues
show
Unused Code introduced by
The parameter $real0 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $real1 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
54
    {
55 2
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
56
    }
57
58
    /**
59
     * Chaikin A/D Oscillator.
60
     *
61
     * @param array $high       High price, array of real values.
62
     * @param array $low        Low price, array of real values.
63
     * @param array $close      Closing price, array of real values.
64
     * @param array $volume     Volume traded, array of real values.
65
     * @param int   $fastPeriod Number of period for the fast MA. Valid range from 2 to 100000.
66
     * @param int   $slowPeriod Number of period for the slow MA. Valid range from 2 to 100000.
67
     *
68
     * @return array Returns an array with calculated data.
69
     */
70
    public function adosc(
71
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
72
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
73
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
74
        array $volume,
0 ignored issues
show
Unused Code introduced by
The parameter $volume is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
75
        int $fastPeriod = 3,
0 ignored issues
show
Unused Code introduced by
The parameter $fastPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
76
        int $slowPeriod = 10
0 ignored issues
show
Unused Code introduced by
The parameter $slowPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
77
    ): array {
78
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
79
    }
80
81
    /**
82
     * Average Directional Movement Index.
83
     *
84
     * @param array $high       High price, array of real values.
85
     * @param array $low        Low price, array of real values.
86
     * @param array $close      Closing price, array of real values.
87
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
88
     *
89
     * @return array Returns an array with calculated data.
90
     */
91
    public function adx(array $high, array $low, array $close, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
92
    {
93
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
94
    }
95
96
    /**
97
     * Average Directional Movement Index Rating.
98
     *
99
     * @param array $high       High price, array of real values.
100
     * @param array $low        Low price, array of real values.
101
     * @param array $close      Closing price, array of real values.
102
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
103
     *
104
     * @return array Returns an array with calculated data.
105
     */
106
    public function adxr(array $high, array $low, array $close, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
107
    {
108
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
109
    }
110
111
    /**
112
     * Absolute Price Oscillator.
113
     *
114
     * @param array $real       Array of real values.
115
     * @param int   $fastPeriod Number of period for the fast MA. Valid range from 2 to 100000.
116
     * @param int   $slowPeriod Number of period for the slow MA. Valid range from 2 to 100000.
117
     * @param int   $mAType     Type of Moving Average. MA_TYPE_* series of constants should be used.
118
     *
119
     * @return array Returns an array with calculated data.
120
     */
121
    public function apo(array $real, int $fastPeriod = 12, int $slowPeriod = 26, int $mAType = 0): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $fastPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $slowPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $mAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
122
    {
123
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
124
    }
125
126
    /**
127
     * Aroon.
128
     *
129
     * @param array $high       High price, array of real values.
130
     * @param array $low        Low price, array of real values.
131
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
132
     *
133
     * @return array Returns an array with calculated data.
134
     */
135
    public function aroon(array $high, array $low, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
136
    {
137
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
138
    }
139
140
    /**
141
     * Aroon Oscillator.
142
     *
143
     * @param array $high       High price, array of real values.
144
     * @param array $low        Low price, array of real values.
145
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
146
     *
147
     * @return array Returns an array with calculated data.
148
     */
149
    public function aroonosc(array $high, array $low, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
150
    {
151
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
152
    }
153
154
    /**
155
     * Vector Trigonometric ASin.
156
     *
157
     * @param array $real Array of real values.
158
     *
159
     * @return array Returns an array with calculated data.
160
     */
161
    public function asin(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
162
    {
163
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
164
    }
165
166
    /**
167
     * Vector Trigonometric ATan.
168
     *
169
     * @param array $real Array of real values.
170
     *
171
     * @return array Returns an array with calculated data.
172
     */
173
    public function atan(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
174
    {
175
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
176
    }
177
178
    /**
179
     * Average True Range.
180
     *
181
     * @param array $high       High price, array of real values.
182
     * @param array $low        Low price, array of real values.
183
     * @param array $close      Closing price, array of real values.
184
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
185
     *
186
     * @return array Returns an array with calculated data.
187
     */
188
    public function atr(array $high, array $low, array $close, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
189
    {
190
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
191
    }
192
193
    /**
194
     * Average Price.
195
     *
196
     * @param array $open  Opening price, array of real values.
197
     * @param array $high  High price, array of real values.
198
     * @param array $low   Low price, array of real values.
199
     * @param array $close Closing price, array of real values.
200
     *
201
     * @return array Returns an array with calculated data.
202
     */
203
    public function avgprice(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
204
    {
205
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
206
    }
207
208
    /**
209
     * Bollinger Bands.
210
     *
211
     * @param array $real       Array of real values.
212
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
213
     * @param float $nbDevUp    Deviation multiplier for upper band. Valid range from REAL_MIN to REAL_MAX.
214
     * @param float $nbDevDn    Deviation multiplier for lower band. Valid range from REAL_MIN to REAL_MAX.
215
     * @param int   $mAType     Type of Moving Average. MA_TYPE_* series of constants should be used.
216
     *
217
     * @return array Returns an array with calculated data.
218
     */
219
    public function bbands(
220
        array $real,
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
221
        int $timePeriod = 5,
0 ignored issues
show
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
222
        float $nbDevUp = 2.0,
0 ignored issues
show
Unused Code introduced by
The parameter $nbDevUp is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
223
        float $nbDevDn = 2.0,
0 ignored issues
show
Unused Code introduced by
The parameter $nbDevDn is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
224
        int $mAType = 0
0 ignored issues
show
Unused Code introduced by
The parameter $mAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
225
    ): array {
226
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
227
    }
228
229
    /**
230
     * Beta.
231
     *
232
     * @param array $real0      Array of real values.
233
     * @param array $real1      Array of real values.
234
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
235
     *
236
     * @return array Returns an array with calculated data.
237
     */
238
    public function beta(array $real0, array $real1, int $timePeriod = 5): array
0 ignored issues
show
Unused Code introduced by
The parameter $real0 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $real1 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
239
    {
240
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
241
    }
242
243
    /**
244
     * Balance Of Power.
245
     *
246
     * @param array $open  Opening price, array of real values.
247
     * @param array $high  High price, array of real values.
248
     * @param array $low   Low price, array of real values.
249
     * @param array $close Closing price, array of real values.
250
     *
251
     * @return array Returns an array with calculated data.
252
     */
253
    public function bop(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
254
    {
255
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
256
    }
257
258
    /**
259
     * Commodity Channel Index.
260
     *
261
     * @param array $high       High price, array of real values.
262
     * @param array $low        Low price, array of real values.
263
     * @param array $close      Closing price, array of real values.
264
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
265
     *
266
     * @return array Returns an array with calculated data.
267
     */
268
    public function cci(array $high, array $low, array $close, int $timePeriod = null): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
269
    {
270
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
271
    }
272
273
    /**
274
     * Two Crows.
275
     *
276
     * @param array $open  Opening price, array of real values.
277
     * @param array $high  High price, array of real values.
278
     * @param array $low   Low price, array of real values.
279
     * @param array $close Closing price, array of real values.
280
     *
281
     * @return array Returns an array with calculated data.
282
     */
283
    public static function cdl2crows(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
284
    {
285
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
286
    }
287
288
    /**
289
     * Three Black Crows.
290
     *
291
     * @param array $open  Opening price, array of real values.
292
     * @param array $high  High price, array of real values.
293
     * @param array $low   Low price, array of real values.
294
     * @param array $close Closing price, array of real values.
295
     *
296
     * @return array Returns an array with calculated data.
297
     */
298
    public static function cdl3blackcrows(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
299
    {
300
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
301
    }
302
303
    /**
304
     * Three Inside Up/Down.
305
     *
306
     * @param array $open  Opening price, array of real values.
307
     * @param array $high  High price, array of real values.
308
     * @param array $low   Low price, array of real values.
309
     * @param array $close Closing price, array of real values.
310
     *
311
     * @return array Returns an array with calculated data.
312
     */
313
    public static function cdl3inside(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
314
    {
315
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
316
    }
317
318
    /**
319
     * Three-Line Strike
320
     *
321
     * @param array $open  Opening price, array of real values.
322
     * @param array $high  High price, array of real values.
323
     * @param array $low   Low price, array of real values.
324
     * @param array $close Closing price, array of real values.
325
     *
326
     * @return array Returns an array with calculated data.
327
     */
328
    public static function cdl3linestrike(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
329
    {
330
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
331
    }
332
333
    /**
334
     * Three Outside Up/Down.
335
     *
336
     * @param array $open  Opening price, array of real values.
337
     * @param array $high  High price, array of real values.
338
     * @param array $low   Low price, array of real values.
339
     * @param array $close Closing price, array of real values.
340
     *
341
     * @return array Returns an array with calculated data.
342
     */
343
    public static function cdl3outside(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
344
    {
345
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
346
    }
347
348
    /**
349
     * Three Stars In The South.
350
     *
351
     * @param array $open  Opening price, array of real values.
352
     * @param array $high  High price, array of real values.
353
     * @param array $low   Low price, array of real values.
354
     * @param array $close Closing price, array of real values.
355
     *
356
     * @return array Returns an array with calculated data.
357
     */
358
    public static function cdl3starsinsouth(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
359
    {
360
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
361
    }
362
363
    /**
364
     * Three Advancing White Soldiers.
365
     *
366
     * @param array $open  Opening price, array of real values.
367
     * @param array $high  High price, array of real values.
368
     * @param array $low   Low price, array of real values.
369
     * @param array $close Closing price, array of real values.
370
     *
371
     * @return array Returns an array with calculated data.
372
     */
373
    public static function cdl3whitesoldiers(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
374
    {
375
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
376
    }
377
378
    /**
379
     * Abandoned Baby.
380
     *
381
     * @param array $open        Opening price, array of real values.
382
     * @param array $high        High price, array of real values.
383
     * @param array $low         Low price, array of real values.
384
     * @param array $close       Closing price, array of real values.
385
     * @param float $penetration Percentage of penetration of a candle within another candle.
386
     *
387
     * @return array Returns an array with calculated data.
388
     */
389
    public static function cdlabandonedbaby(
390
        array $open,
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
391
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
392
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
393
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
394
        float $penetration = 0.3
0 ignored issues
show
Unused Code introduced by
The parameter $penetration is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
395
    ): array {
396
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
397
    }
398
399
    /**
400
     * Advance Block.
401
     *
402
     * @param array $open  Opening price, array of real values.
403
     * @param array $high  High price, array of real values.
404
     * @param array $low   Low price, array of real values.
405
     * @param array $close Closing price, array of real values.
406
     *
407
     * @return array Returns an array with calculated data.
408
     */
409
    public static function cdladvanceblock(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
410
    {
411
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
412
    }
413
414
    /**
415
     * Belt-hold.
416
     *
417
     * @param array $open  Opening price, array of real values.
418
     * @param array $high  High price, array of real values.
419
     * @param array $low   Low price, array of real values.
420
     * @param array $close Closing price, array of real values.
421
     *
422
     * @return array Returns an array with calculated data.
423
     */
424
    public static function cdlbelthold(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
425
    {
426
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
427
    }
428
429
    /**
430
     * Breakaway.
431
     *
432
     * @param array $open  Opening price, array of real values.
433
     * @param array $high  High price, array of real values.
434
     * @param array $low   Low price, array of real values.
435
     * @param array $close Closing price, array of real values.
436
     *
437
     * @return array Returns an array with calculated data.
438
     */
439
    public static function cdlbreakaway(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
440
    {
441
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
442
    }
443
444
    /**
445
     * Closing Marubozu.
446
     *
447
     * @param array $open  Opening price, array of real values.
448
     * @param array $high  High price, array of real values.
449
     * @param array $low   Low price, array of real values.
450
     * @param array $close Closing price, array of real values.
451
     *
452
     * @return array Returns an array with calculated data.
453
     */
454
    public static function cdlclosingmarubozu(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
455
    {
456
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
457
    }
458
459
    /**
460
     * Concealing Baby Swallow.
461
     *
462
     * @param array $open  Opening price, array of real values.
463
     * @param array $high  High price, array of real values.
464
     * @param array $low   Low price, array of real values.
465
     * @param array $close Closing price, array of real values.
466
     *
467
     * @return array Returns an array with calculated data.
468
     */
469
    public static function cdlconcealbabyswall(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
470
    {
471
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
472
    }
473
474
    /**
475
     * Counterattack.
476
     *
477
     * @param array $open  Opening price, array of real values.
478
     * @param array $high  High price, array of real values.
479
     * @param array $low   Low price, array of real values.
480
     * @param array $close Closing price, array of real values.
481
     *
482
     * @return array Returns an array with calculated data.
483
     */
484
    public static function cdlcounterattack(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
485
    {
486
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
487
    }
488
489
    /**
490
     * Dark Cloud Cover.
491
     *
492
     * @param array $open        Opening price, array of real values.
493
     * @param array $high        High price, array of real values.
494
     * @param array $low         Low price, array of real values.
495
     * @param array $close       Closing price, array of real values.
496
     * @param float $penetration Percentage of penetration of a candle within another candle.
497
     *
498
     * @return array Returns an array with calculated data.
499
     */
500
    public static function cdldarkcloudcover(
501
        array $open,
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
502
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
503
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
504
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
505
        float $penetration = 0.5
0 ignored issues
show
Unused Code introduced by
The parameter $penetration is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
506
    ): array {
507
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
508
    }
509
510
    /**
511
     * Doji.
512
     *
513
     * @param array $open  Opening price, array of real values.
514
     * @param array $high  High price, array of real values.
515
     * @param array $low   Low price, array of real values.
516
     * @param array $close Closing price, array of real values.
517
     *
518
     * @return array Returns an array with calculated data.
519
     */
520
    public static function cdldoji(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
521
    {
522
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
523
    }
524
525
    /**
526
     * Doji Star.
527
     *
528
     * @param array $open  Opening price, array of real values.
529
     * @param array $high  High price, array of real values.
530
     * @param array $low   Low price, array of real values.
531
     * @param array $close Closing price, array of real values.
532
     *
533
     * @return array Returns an array with calculated data.
534
     */
535
    public static function cdldojistar(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
536
    {
537
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
538
    }
539
540
    /**
541
     * Dragonfly Doji.
542
     *
543
     * @param array $open  Opening price, array of real values.
544
     * @param array $high  High price, array of real values.
545
     * @param array $low   Low price, array of real values.
546
     * @param array $close Closing price, array of real values.
547
     *
548
     * @return array Returns an array with calculated data.
549
     */
550
    public static function cdldragonflydoji(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
551
    {
552
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
553
    }
554
555
    /**
556
     * Engulfing Pattern.
557
     *
558
     * @param array $open  Opening price, array of real values.
559
     * @param array $high  High price, array of real values.
560
     * @param array $low   Low price, array of real values.
561
     * @param array $close Closing price, array of real values.
562
     *
563
     * @return array Returns an array with calculated data.
564
     */
565
    public static function cdlengulfing(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
566
    {
567
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
568
    }
569
570
    /**
571
     * Evening Doji Star.
572
     *
573
     * @param array $open        Opening price, array of real values.
574
     * @param array $high        High price, array of real values.
575
     * @param array $low         Low price, array of real values.
576
     * @param array $close       Closing price, array of real values.
577
     * @param float $penetration Percentage of penetration of a candle within another candle.
578
     *
579
     * @return array Returns an array with calculated data.
580
     */
581
    public static function cdleveningdojistar(
582
        array $open,
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
583
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
584
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
585
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
586
        float $penetration = 0.3
0 ignored issues
show
Unused Code introduced by
The parameter $penetration is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
587
    ): array {
588
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
589
    }
590
591
    /**
592
     * Evening Star.
593
     *
594
     * @param array $open        Opening price, array of real values.
595
     * @param array $high        High price, array of real values.
596
     * @param array $low         Low price, array of real values.
597
     * @param array $close       Closing price, array of real values.
598
     * @param float $penetration [OPTIONAL] [DEFAULT 0.3] Percentage of penetration of a candle within another candle.
599
     *
600
     * @return array Returns an array with calculated data.
601
     */
602
    public static function cdleveningstar(
603
        array $open,
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
604
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
605
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
606
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
607
        float $penetration = 0.3
0 ignored issues
show
Unused Code introduced by
The parameter $penetration is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
608
    ): array {
609
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
610
    }
611
612
    /**
613
     * Up/Down-gap side-by-side white lines.
614
     *
615
     * @param array $open  Opening price, array of real values.
616
     * @param array $high  High price, array of real values.
617
     * @param array $low   Low price, array of real values.
618
     * @param array $close Closing price, array of real values.
619
     *
620
     * @return array Returns an array with calculated data.
621
     */
622
    public static function cdlgapsidesidewhite(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
623
    {
624
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
625
    }
626
627
    /**
628
     * Gravestone Doji.
629
     *
630
     * @param array $open  Opening price, array of real values.
631
     * @param array $high  High price, array of real values.
632
     * @param array $low   Low price, array of real values.
633
     * @param array $close Closing price, array of real values.
634
     *
635
     * @return array Returns an array with calculated data.
636
     */
637
    public static function cdlgravestonedoji(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
638
    {
639
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
640
    }
641
642
    /**
643
     * Hammer.
644
     *
645
     * @param array $open  Opening price, array of real values.
646
     * @param array $high  High price, array of real values.
647
     * @param array $low   Low price, array of real values.
648
     * @param array $close Closing price, array of real values.
649
     *
650
     * @return array Returns an array with calculated data.
651
     */
652
    public static function cdlhammer(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
653
    {
654
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
655
    }
656
657
    /**
658
     * Hanging Man.
659
     *
660
     * @param array $open  Opening price, array of real values.
661
     * @param array $high  High price, array of real values.
662
     * @param array $low   Low price, array of real values.
663
     * @param array $close Closing price, array of real values.
664
     *
665
     * @return array Returns an array with calculated data.
666
     */
667
    public static function cdlhangingman(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
668
    {
669
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
670
    }
671
672
    /**
673
     * Harami Pattern.
674
     *
675
     * @param array $open  Opening price, array of real values.
676
     * @param array $high  High price, array of real values.
677
     * @param array $low   Low price, array of real values.
678
     * @param array $close Closing price, array of real values.
679
     *
680
     * @return array Returns an array with calculated data.
681
     */
682
    public static function cdlharami(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
683
    {
684
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
685
    }
686
687
    /**
688
     * Harami Cross Pattern.
689
     *
690
     * @param array $open  Opening price, array of real values.
691
     * @param array $high  High price, array of real values.
692
     * @param array $low   Low price, array of real values.
693
     * @param array $close Closing price, array of real values.
694
     *
695
     * @return array Returns an array with calculated data.
696
     */
697
    public static function cdlharamicross(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
698
    {
699
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
700
    }
701
702
    /**
703
     * High-Wave Candle.
704
     *
705
     * @param array $open  Opening price, array of real values.
706
     * @param array $high  High price, array of real values.
707
     * @param array $low   Low price, array of real values.
708
     * @param array $close Closing price, array of real values.
709
     *
710
     * @return array Returns an array with calculated data.
711
     */
712
    public static function cdlhighwave(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
713
    {
714
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
715
    }
716
717
    /**
718
     * Hikkake Pattern.
719
     *
720
     * @param array $open  Opening price, array of real values.
721
     * @param array $high  High price, array of real values.
722
     * @param array $low   Low price, array of real values.
723
     * @param array $close Closing price, array of real values.
724
     *
725
     * @return array Returns an array with calculated data.
726
     */
727
    public static function cdlhikkake(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
728
    {
729
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
730
    }
731
732
    /**
733
     * Modified Hikkake Pattern.
734
     *
735
     * @param array $open  Opening price, array of real values.
736
     * @param array $high  High price, array of real values.
737
     * @param array $low   Low price, array of real values.
738
     * @param array $close Closing price, array of real values.
739
     *
740
     * @return array Returns an array with calculated data.
741
     */
742
    public static function cdlhikkakemod(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
743
    {
744
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
745
    }
746
747
    /**
748
     * Homing Pigeon.
749
     *
750
     * @param array $open  Opening price, array of real values.
751
     * @param array $high  High price, array of real values.
752
     * @param array $low   Low price, array of real values.
753
     * @param array $close Closing price, array of real values.
754
     *
755
     * @return array Returns an array with calculated data.
756
     */
757
    public static function cdlhomingpigeon(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
758
    {
759
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
760
    }
761
762
    /**
763
     * Identical Three Crows.
764
     *
765
     * @param array $open  Opening price, array of real values.
766
     * @param array $high  High price, array of real values.
767
     * @param array $low   Low price, array of real values.
768
     * @param array $close Closing price, array of real values.
769
     *
770
     * @return array Returns an array with calculated data.
771
     */
772
    public static function cdlidentical3crows(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
773
    {
774
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
775
    }
776
777
    /**
778
     * In-Neck Pattern.
779
     *
780
     * @param array $open  Opening price, array of real values.
781
     * @param array $high  High price, array of real values.
782
     * @param array $low   Low price, array of real values.
783
     * @param array $close Closing price, array of real values.
784
     *
785
     * @return array Returns an array with calculated data.
786
     */
787
    public static function cdlinneck(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
788
    {
789
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
790
    }
791
792
    /**
793
     * Inverted Hammer.
794
     *
795
     * @param array $open  Opening price, array of real values.
796
     * @param array $high  High price, array of real values.
797
     * @param array $low   Low price, array of real values.
798
     * @param array $close Closing price, array of real values.
799
     *
800
     * @return array Returns an array with calculated data.
801
     */
802
    public static function cdlinvertedhammer(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
803
    {
804
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
805
    }
806
807
    /**
808
     * Kicking.
809
     *
810
     * @param array $open  Opening price, array of real values.
811
     * @param array $high  High price, array of real values.
812
     * @param array $low   Low price, array of real values.
813
     * @param array $close Closing price, array of real values.
814
     *
815
     * @return array Returns an array with calculated data.
816
     */
817
    public static function cdlkicking(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
818
    {
819
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
820
    }
821
822
    /**
823
     * Kicking - bull/bear determined by the longer marubozu.
824
     *
825
     * @param array $open  Opening price, array of real values.
826
     * @param array $high  High price, array of real values.
827
     * @param array $low   Low price, array of real values.
828
     * @param array $close Closing price, array of real values.
829
     *
830
     * @return array Returns an array with calculated data.
831
     */
832
    public static function cdlkickingbylength(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
833
    {
834
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
835
    }
836
837
    /**
838
     * Ladder Bottom.
839
     *
840
     * @param array $open  Opening price, array of real values.
841
     * @param array $high  High price, array of real values.
842
     * @param array $low   Low price, array of real values.
843
     * @param array $close Closing price, array of real values.
844
     *
845
     * @return array Returns an array with calculated data.
846
     */
847
    public static function cdlladderbottom(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
848
    {
849
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
850
    }
851
852
    /**
853
     * Long Legged Doji.
854
     *
855
     * @param array $open  Opening price, array of real values.
856
     * @param array $high  High price, array of real values.
857
     * @param array $low   Low price, array of real values.
858
     * @param array $close Closing price, array of real values.
859
     *
860
     * @return array Returns an array with calculated data.
861
     */
862
    public static function cdllongleggeddoji(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
863
    {
864
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
865
    }
866
867
    /**
868
     * Long Line Candle.
869
     *
870
     * @param array $open  Opening price, array of real values.
871
     * @param array $high  High price, array of real values.
872
     * @param array $low   Low price, array of real values.
873
     * @param array $close Closing price, array of real values.
874
     *
875
     * @return array Returns an array with calculated data.
876
     */
877
    public static function cdllongline(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
878
    {
879
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
880
    }
881
882
    /**
883
     * Marubozu.
884
     *
885
     * @param array $open  Opening price, array of real values.
886
     * @param array $high  High price, array of real values.
887
     * @param array $low   Low price, array of real values.
888
     * @param array $close Closing price, array of real values.
889
     *
890
     * @return array Returns an array with calculated data.
891
     */
892
    public static function cdlmarubozu(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
893
    {
894
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
895
    }
896
897
    /**
898
     * Matching Low.
899
     *
900
     * @param array $open  Opening price, array of real values.
901
     * @param array $high  High price, array of real values.
902
     * @param array $low   Low price, array of real values.
903
     * @param array $close Closing price, array of real values.
904
     *
905
     * @return array Returns an array with calculated data.
906
     */
907
    public static function cdlmatchinglow(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
908
    {
909
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
910
    }
911
912
    /**
913
     * Mat Hold.
914
     *
915
     * @param array $open        Opening price, array of real values.
916
     * @param array $high        High price, array of real values.
917
     * @param array $low         Low price, array of real values.
918
     * @param array $close       Closing price, array of real values.
919
     * @param float $penetration Percentage of penetration of a candle within another candle.
920
     *
921
     * @return array Returns an array with calculated data.
922
     */
923
    public static function cdlmathold(
924
        array $open,
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
925
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
926
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
927
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
928
        float $penetration = 0.5
0 ignored issues
show
Unused Code introduced by
The parameter $penetration is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
929
    ): array {
930
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
931
    }
932
933
    /**
934
     * Morning Doji Star.
935
     *
936
     * @param array $open        Opening price, array of real values.
937
     * @param array $high        High price, array of real values.
938
     * @param array $low         Low price, array of real values.
939
     * @param array $close       Closing price, array of real values.
940
     * @param float $penetration [OPTIONAL] [DEFAULT 0.3] Percentage of penetration of a candle within another candle.
941
     *
942
     * @return array Returns an array with calculated data.
943
     */
944
    public static function cdlmorningdojistar(
945
        array $open,
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
946
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
947
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
948
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
949
        float $penetration = 0.3
0 ignored issues
show
Unused Code introduced by
The parameter $penetration is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
950
    ): array {
951
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
952
    }
953
954
    /**
955
     * Morning Star.
956
     *
957
     * @param array $open        Opening price, array of real values.
958
     * @param array $high        High price, array of real values.
959
     * @param array $low         Low price, array of real values.
960
     * @param array $close       Closing price, array of real values.
961
     * @param float $penetration Percentage of penetration of a candle within another candle.
962
     *
963
     * @return array Returns an array with calculated data.
964
     */
965
    public static function cdlmorningstar(
966
        array $open,
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
967
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
968
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
969
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
970
        float $penetration = 0.3
0 ignored issues
show
Unused Code introduced by
The parameter $penetration is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
971
    ): array {
972
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
973
    }
974
975
    /**
976
     * On-Neck Pattern.
977
     *
978
     * @param array $open  Opening price, array of real values.
979
     * @param array $high  High price, array of real values.
980
     * @param array $low   Low price, array of real values.
981
     * @param array $close Closing price, array of real values.
982
     *
983
     * @return array Returns an array with calculated data.
984
     */
985
    public static function cdlonneck(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
986
    {
987
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
988
    }
989
990
    /**
991
     * Piercing Pattern.
992
     *
993
     * @param array $open  Opening price, array of real values.
994
     * @param array $high  High price, array of real values.
995
     * @param array $low   Low price, array of real values.
996
     * @param array $close Closing price, array of real values.
997
     *
998
     * @return array Returns an array with calculated data.
999
     */
1000
    public static function cdlpiercing(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1001
    {
1002
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1003
    }
1004
1005
    /**
1006
     * Rickshaw Man.
1007
     *
1008
     * @param array $open  Opening price, array of real values.
1009
     * @param array $high  High price, array of real values.
1010
     * @param array $low   Low price, array of real values.
1011
     * @param array $close Closing price, array of real values.
1012
     *
1013
     * @return array Returns an array with calculated data.
1014
     */
1015
    public static function cdlrickshawman(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1016
    {
1017
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1018
    }
1019
1020
    /**
1021
     * Rising/Falling Three Methods.
1022
     *
1023
     * @param array $open  Opening price, array of real values.
1024
     * @param array $high  High price, array of real values.
1025
     * @param array $low   Low price, array of real values.
1026
     * @param array $close Closing price, array of real values.
1027
     *
1028
     * @return array Returns an array with calculated data.
1029
     */
1030
    public static function cdlrisefall3methods(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1031
    {
1032
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1033
    }
1034
1035
    /**
1036
     * Separating Lines.
1037
     *
1038
     * @param array $open  Opening price, array of real values.
1039
     * @param array $high  High price, array of real values.
1040
     * @param array $low   Low price, array of real values.
1041
     * @param array $close Closing price, array of real values.
1042
     *
1043
     * @return array Returns an array with calculated data.
1044
     */
1045
    public static function cdlseparatinglines(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1046
    {
1047
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1048
    }
1049
1050
    /**
1051
     * Shooting Star.
1052
     *
1053
     * @param array $open  Opening price, array of real values.
1054
     * @param array $high  High price, array of real values.
1055
     * @param array $low   Low price, array of real values.
1056
     * @param array $close Closing price, array of real values.
1057
     *
1058
     * @return array Returns an array with calculated data.
1059
     */
1060
    public static function cdlshootingstar(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1061
    {
1062
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1063
    }
1064
1065
    /**
1066
     * Short Line Candle.
1067
     *
1068
     * @param array $open  Opening price, array of real values.
1069
     * @param array $high  High price, array of real values.
1070
     * @param array $low   Low price, array of real values.
1071
     * @param array $close Closing price, array of real values.
1072
     *
1073
     * @return array Returns an array with calculated data.
1074
     */
1075
    public static function cdlshortline(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1076
    {
1077
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1078
    }
1079
1080
    /**
1081
     * Spinning Top.
1082
     *
1083
     * @param array $open  Opening price, array of real values.
1084
     * @param array $high  High price, array of real values.
1085
     * @param array $low   Low price, array of real values.
1086
     * @param array $close Closing price, array of real values.
1087
     *
1088
     * @return array Returns an array with calculated data.
1089
     */
1090
    public static function cdlspinningtop(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1091
    {
1092
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1093
    }
1094
1095
    /**
1096
     * Stalled Pattern.
1097
     *
1098
     * @param array $open  Opening price, array of real values.
1099
     * @param array $high  High price, array of real values.
1100
     * @param array $low   Low price, array of real values.
1101
     * @param array $close Closing price, array of real values.
1102
     *
1103
     * @return array Returns an array with calculated data.
1104
     */
1105
    public static function cdlstalledpattern(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1106
    {
1107
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1108
    }
1109
1110
    /**
1111
     * Stick Sandwich.
1112
     *
1113
     * @param array $open  Opening price, array of real values.
1114
     * @param array $high  High price, array of real values.
1115
     * @param array $low   Low price, array of real values.
1116
     * @param array $close Closing price, array of real values.
1117
     *
1118
     * @return array Returns an array with calculated data.
1119
     */
1120
    public static function cdlsticksandwich(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1121
    {
1122
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1123
    }
1124
1125
    /**
1126
     * Takuri (Dragonfly Doji with very long lower shadow).
1127
     *
1128
     * @param array $open  Opening price, array of real values.
1129
     * @param array $high  High price, array of real values.
1130
     * @param array $low   Low price, array of real values.
1131
     * @param array $close Closing price, array of real values.
1132
     *
1133
     * @return array Returns an array with calculated data.
1134
     */
1135
    public static function cdltakuri(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1136
    {
1137
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1138
    }
1139
1140
    /**
1141
     * Tasuki Gap.
1142
     *
1143
     * @param array $open  Opening price, array of real values.
1144
     * @param array $high  High price, array of real values.
1145
     * @param array $low   Low price, array of real values.
1146
     * @param array $close Closing price, array of real values.
1147
     *
1148
     * @return array Returns an array with calculated data.
1149
     */
1150
    public static function cdltasukigap(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1151
    {
1152
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1153
    }
1154
1155
    /**
1156
     * Thrusting Pattern.
1157
     *
1158
     * @param array $open  Opening price, array of real values.
1159
     * @param array $high  High price, array of real values.
1160
     * @param array $low   Low price, array of real values.
1161
     * @param array $close Closing price, array of real values.
1162
     *
1163
     * @return array Returns an array with calculated data.
1164
     */
1165
    public static function cdlthrusting(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1166
    {
1167
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1168
    }
1169
1170
    /**
1171
     * Tristar Pattern.
1172
     *
1173
     * @param array $open  Opening price, array of real values.
1174
     * @param array $high  High price, array of real values.
1175
     * @param array $low   Low price, array of real values.
1176
     * @param array $close Closing price, array of real values.
1177
     *
1178
     * @return array Returns an array with calculated data.
1179
     */
1180
    public static function cdltristar(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1181
    {
1182
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1183
    }
1184
1185
    /**
1186
     * Unique 3 River.
1187
     *
1188
     * @param array $open  Opening price, array of real values.
1189
     * @param array $high  High price, array of real values.
1190
     * @param array $low   Low price, array of real values.
1191
     * @param array $close Closing price, array of real values.
1192
     *
1193
     * @return array Returns an array with calculated data.
1194
     */
1195
    public static function cdlunique3river(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1196
    {
1197
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1198
    }
1199
1200
    /**
1201
     * Upside Gap Two Crows.
1202
     *
1203
     * @param array $open  Opening price, array of real values.
1204
     * @param array $high  High price, array of real values.
1205
     * @param array $low   Low price, array of real values.
1206
     * @param array $close Closing price, array of real values.
1207
     *
1208
     * @return array Returns an array with calculated data.
1209
     */
1210
    public static function cdlupsidegap2crows(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1211
    {
1212
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1213
    }
1214
1215
    /**
1216
     * Upside/Downside Gap Three Methods.
1217
     *
1218
     * @param array $open  Opening price, array of real values.
1219
     * @param array $high  High price, array of real values.
1220
     * @param array $low   Low price, array of real values.
1221
     * @param array $close Closing price, array of real values.
1222
     *
1223
     * @return array Returns an array with calculated data.
1224
     */
1225
    public static function cdlxsidegap3methods(array $open, array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1226
    {
1227
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1228
    }
1229
1230
    /**
1231
     * Vector Ceil.
1232
     *
1233
     * Calculates the next highest integer for each value in real and returns the resulting array.
1234
     *
1235
     * @param array $real Array of real values.
1236
     *
1237
     * @return array Returns an array with calculated data.
1238
     */
1239
    public static function ceil(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1240
    {
1241
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1242
    }
1243
1244
    /**
1245
     * Chande Momentum Oscillator.
1246
     *
1247
     * @param array $real       Array of real values.
1248
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1249
     *
1250
     * @return array Returns an array with calculated data.
1251
     */
1252
    public static function cmo(array $real, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1253
    {
1254
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1255
    }
1256
1257
    /**
1258
     * Pearson's Correlation Coefficient (r).
1259
     *
1260
     * @param array $real0      Array of real values.
1261
     * @param array $real1      Array of real values.
1262
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1263
     *
1264
     * @return array Returns an array with calculated data.
1265
     */
1266
    public static function correl(array $real0, array $real1, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real0 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $real1 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1267
    {
1268
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1269
    }
1270
1271
    /**
1272
     * Vector Trigonometric Cos.
1273
     *
1274
     * Calculates the cosine for each value in real and returns the resulting array.
1275
     *
1276
     * @param array $real Array of real values.
1277
     *
1278
     * @return array Returns an array with calculated data.
1279
     */
1280
    public static function cos(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1281
    {
1282
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1283
    }
1284
1285
    /**
1286
     * Vector Trigonometric Cosh.
1287
     *
1288
     * Calculates the hyperbolic cosine for each value in real and returns the resulting array.
1289
     *
1290
     * @param array $real Array of real values.
1291
     *
1292
     * @return array Returns an array with calculated data.
1293
     */
1294
    public static function cosh(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1295
    {
1296
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1297
    }
1298
1299
    /**
1300
     * Double Exponential Moving Average.
1301
     *
1302
     * @param array $real       Array of real values.
1303
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1304
     *
1305
     * @return array Returns an array with calculated data.
1306
     */
1307
    public static function dema(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1308
    {
1309
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1310
    }
1311
1312
    /**
1313
     * Vector Arithmetic Div.
1314
     *
1315
     * Divides each value from real0 by the corresponding value from real1 and returns the resulting array.
1316
     *
1317
     * @param array $real0 Array of real values.
1318
     * @param array $real1 Array of real values.
1319
     *
1320
     * @return array Returns an array with calculated data.
1321
     */
1322
    public static function div(array $real0, array $real1): array
0 ignored issues
show
Unused Code introduced by
The parameter $real0 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $real1 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1323
    {
1324
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1325
    }
1326
1327
    /**
1328
     * Directional Movement Index.
1329
     *
1330
     * @param array $high       High price, array of real values.
1331
     * @param array $low        Low price, array of real values.
1332
     * @param array $close      Closing price, array of real values.
1333
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1334
     *
1335
     * @return array  Returns an array with calculated data.
1336
     */
1337
    public static function dx(array $high, array $low, array $close, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1338
    {
1339
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1340
    }
1341
1342
    /**
1343
     * Exponential Moving Average.
1344
     *
1345
     * @param array $real       Array of real values.
1346
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1347
     *
1348
     * @return array Returns an array with calculated data.
1349
     */
1350
    public static function ema(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1351
    {
1352
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1353
    }
1354
1355
    /**
1356
     * Get error code.
1357
     *
1358
     * Get error code of the last operation.
1359
     *
1360
     * @return int Returns the error code identified by one of the ERR_* constants.
1361
     */
1362
    public function errno(): int
1363
    {
1364
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1365
    }
1366
1367
    /**
1368
     * Vector Arithmetic Exp.
1369
     *
1370
     * Calculates e raised to the power of each value in real. Returns an array with the calculated data.
1371
     *
1372
     * @param array $real Array of real values.
1373
     *
1374
     * @return array Returns an array with calculated data.
1375
     */
1376
    public static function exp(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1377
    {
1378
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1379
    }
1380
1381
    /**
1382
     * Vector Floor.
1383
     *
1384
     * Calculates the next lowest integer for each value in real and returns the resulting array.
1385
     *
1386
     * @param array $real Array of real values.
1387
     *
1388
     * @return array Returns an array with calculated data.
1389
     */
1390
    public static function floor(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1391
    {
1392
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1393
    }
1394
1395
    /**
1396
     * Get compatibility mode.
1397
     *
1398
     * Get compatibility mode which affects the way calculations are done by all the extension functions.
1399
     *
1400
     * @return int Returns the compatibility mode id which can be identified by COMPATIBILITY_* series of constants.
1401
     */
1402
    public static function get_compat(): int
1403
    {
1404
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1405
    }
1406
1407
    /**
1408
     * Get unstable period.
1409
     *
1410
     * Get unstable period factor for a particular function.
1411
     *
1412
     * @param int $functionId Function ID the factor to be read for. FUNC_UNST_* series of constants should be used.
1413
     *
1414
     * @return int Returns the unstable period factor for the corresponding function.
1415
     */
1416
    public static function get_unstable_period(int $functionId): int
0 ignored issues
show
Unused Code introduced by
The parameter $functionId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1417
    {
1418
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1419
    }
1420
1421
    /**
1422
     * Hilbert Transform - Dominant Cycle Period.
1423
     *
1424
     * @param array $real Array of real values.
1425
     *
1426
     * @return array Returns an array with calculated data.
1427
     */
1428
    public static function ht_dcperiod(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1429
    {
1430
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1431
    }
1432
1433
    /**
1434
     * Hilbert Transform - Dominant Cycle Phase.
1435
     *
1436
     * @param array $real Array of real values.
1437
     *
1438
     * @return array Returns an array with calculated data.
1439
     */
1440
    public static function ht_dcphase(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1441
    {
1442
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1443
    }
1444
1445
    /**
1446
     * Hilbert Transform - Phasor Components.
1447
     *
1448
     * @param array $open  Opening price, array of real values.
1449
     * @param array $close Closing price, array of real values.
1450
     *
1451
     * @return array Returns an array with calculated data.
1452
     */
1453
    public static function ht_phasor(array $open, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1454
    {
1455
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1456
    }
1457
1458
    /**
1459
     * Hilbert Transform - Phasor Components.
1460
     *
1461
     * @param array $open  Opening price, array of real values.
1462
     * @param array $close Closing price, array of real values.
1463
     *
1464
     * @return array Returns an array with calculated data.
1465
     */
1466
    public function ht_sine(array $open, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $open is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1467
    {
1468
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1469
    }
1470
1471
    /**
1472
     * Hilbert Transform - Instantaneous Trendline.
1473
     *
1474
     * @param array $real Array of real values.
1475
     *
1476
     * @return array Returns an array with calculated data.
1477
     */
1478
    public static function ht_trendline(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1479
    {
1480
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1481
    }
1482
1483
    /**
1484
     * Hilbert Transform - Trend vs Cycle Mode.
1485
     *
1486
     * @param array $real Array of real values.
1487
     *
1488
     * @return array Returns an array with calculated data.
1489
     */
1490
    public static function ht_trendmode(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1491
    {
1492
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1493
    }
1494
1495
    /**
1496
     * Kaufman Adaptive Moving Average.
1497
     *
1498
     * @param array $real       Array of real values.
1499
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1500
     *
1501
     * @return array Returns an array with calculated data.
1502
     */
1503
    public static function kama(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1504
    {
1505
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1506
    }
1507
1508
    /**
1509
     * Linear Regression Angle.
1510
     *
1511
     * @param array $real       Array of real values.
1512
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1513
     *
1514
     * @return array Returns an array with calculated data.
1515
     */
1516
    public static function linearreg_angle(array $real, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1517
    {
1518
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1519
    }
1520
1521
    /**
1522
     * Linear Regression Angle.
1523
     *
1524
     * @param array $real       Array of real values.
1525
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1526
     *
1527
     * @return array Returns an array with calculated data.
1528
     */
1529
    public static function linearreg_intercept(array $real, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1530
    {
1531
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1532
    }
1533
1534
    /**
1535
     * Linear Regression Slope.
1536
     *
1537
     * @param array $real       Array of real values.
1538
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1539
     *
1540
     * @return array Returns an array with calculated data.
1541
     */
1542
    public static function linearreg_slope(array $real, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1543
    {
1544
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1545
    }
1546
1547
    /**
1548
     * Linear Regression.
1549
     *
1550
     * @param array $real       Array of real values.
1551
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1552
     *
1553
     * @return array Returns an array with calculated data.
1554
     */
1555
    public static function linearreg(array $real, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1556
    {
1557
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1558
    }
1559
1560
    /**
1561
     * Vector Log Natural.
1562
     *
1563
     * Calculates the natural logarithm for each value in real and returns the resulting array.
1564
     *
1565
     * @param array $real Array of real values.
1566
     *
1567
     * @return array Returns an array with calculated data.
1568
     */
1569
    public static function ln(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1570
    {
1571
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1572
    }
1573
1574
    /**
1575
     * Vector Log10.
1576
     *
1577
     * Calculates the base-10 logarithm for each value in real and returns the resulting array.
1578
     *
1579
     * @param array $real Array of real values.
1580
     *
1581
     * @return array Returns an array with calculated data.
1582
     */
1583
    public static function log10(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1584
    {
1585
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1586
    }
1587
1588
    /**
1589
     * Moving average.
1590
     *
1591
     * @param array $real       Array of real values.
1592
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1593
     * @param int   $mAType     Type of Moving Average. MA_TYPE_* series of constants should be used.
1594
     *
1595
     * @return array Returns an array with calculated data.
1596
     */
1597
    public static function ma(array $real, int $timePeriod = 30, int $mAType = 0): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $mAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1598
    {
1599
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1600
    }
1601
1602
    /**
1603
     * Moving Average Convergence/Divergence.
1604
     *
1605
     * @param array $real         Array of real values.
1606
     * @param int   $fastPeriod   Number of period for the fast MA. Valid range from 2 to 100000.
1607
     * @param int   $slowPeriod   Number of period for the slow MA. Valid range from 2 to 100000.
1608
     * @param int   $signalPeriod Smoothing for the signal line (nb of period). Valid range from 1 to 100000.
1609
     *
1610
     * @return array Returns an array with calculated data.
1611
     */
1612
    public static function macd(
1613
        array $real,
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1614
        int $fastPeriod = 12,
0 ignored issues
show
Unused Code introduced by
The parameter $fastPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1615
        int $slowPeriod = 26,
0 ignored issues
show
Unused Code introduced by
The parameter $slowPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1616
        int $signalPeriod = 9
0 ignored issues
show
Unused Code introduced by
The parameter $signalPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1617
    ): array {
1618
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1619
    }
1620
1621
    /**
1622
     * Moving Average Convergence/Divergence with controllable Moving Average type.
1623
     *
1624
     * @param array $real         Array of real values.
1625
     * @param int   $fastPeriod   Number of period for the fast MA. Valid range from 2 to 100000.
1626
     * @param int   $fastMAType   Type of Moving Average for fast MA. MA_TYPE_* series of constants should be used.
1627
     * @param int   $slowPeriod   Number of period for the slow MA. Valid range from 2 to 100000.
1628
     * @param int   $slowMAType   Type of Moving Average for fast MA. MA_TYPE_* series of constants should be used.
1629
     * @param int   $signalPeriod Smoothing for the signal line (nb of period). Valid range from 1 to 100000.
1630
     *
1631
     * @return array Returns an array with calculated data.
1632
     */
1633
    public static function macdext(
1634
        array $real,
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1635
        int $fastPeriod = 12,
0 ignored issues
show
Unused Code introduced by
The parameter $fastPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1636
        int $fastMAType = 0,
0 ignored issues
show
Unused Code introduced by
The parameter $fastMAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1637
        int $slowPeriod = 26,
0 ignored issues
show
Unused Code introduced by
The parameter $slowPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1638
        int $slowMAType = 0,
0 ignored issues
show
Unused Code introduced by
The parameter $slowMAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1639
        int $signalPeriod = 9
0 ignored issues
show
Unused Code introduced by
The parameter $signalPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1640
    ): array {
1641
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1642
    }
1643
1644
    /**
1645
     * Moving Average Convergence/Divergence Fix 12/26.
1646
     *
1647
     * @param array $real         Array of real values.
1648
     * @param int   $signalPeriod Smoothing for the signal line (nb of period). Valid range from 1 to 100000.
1649
     *
1650
     * @return array Returns an array with calculated data.
1651
     */
1652
    public static function macdfix(array $real, int $signalPeriod = 9): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $signalPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1653
    {
1654
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1655
    }
1656
1657
    /**
1658
     * MESA Adaptive Moving Average.
1659
     *
1660
     * @param array $real      Array of real values.
1661
     * @param float $fastLimit Upper limit use in the adaptive algorithm. Valid range from 0.01 to 0.99.
1662
     * @param float $slowLimit Lower limit use in the adaptive algorithm. Valid range from 0.01 to 0.99.
1663
     *
1664
     * @return array Returns an array with calculated data.
1665
     */
1666
    public static function mama(array $real, float $fastLimit = 0.5, float $slowLimit = 0.05): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $fastLimit is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $slowLimit is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1667
    {
1668
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1669
    }
1670
1671
    /**
1672
     * Moving average with variable period
1673
     *
1674
     * @param array $real      Array of real values.
1675
     * @param array $periods   Array of real values.
1676
     * @param int   $minPeriod Value less than minimum will be changed to Minimum period. Valid range from 2 to 100000
1677
     * @param int   $maxPeriod Value higher than maximum will be changed to Maximum period. Valid range from 2 to 100000
1678
     * @param int   $mAType    Type of Moving Average. MA_TYPE_* series of constants should be used.
1679
     *
1680
     * @return array Returns an array with calculated data.
1681
     */
1682
    public static function mavp(
1683
        array $real,
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1684
        array $periods,
0 ignored issues
show
Unused Code introduced by
The parameter $periods is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1685
        int $minPeriod = 2,
0 ignored issues
show
Unused Code introduced by
The parameter $minPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1686
        int $maxPeriod = 30,
0 ignored issues
show
Unused Code introduced by
The parameter $maxPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1687
        int $mAType = 0
0 ignored issues
show
Unused Code introduced by
The parameter $mAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1688
    ): array {
1689
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1690
    }
1691
1692
    /**
1693
     * Highest value over a specified period.
1694
     *
1695
     * @param array $real       Array of real values.
1696
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1697
     *
1698
     * @return array Returns an array with calculated data.
1699
     */
1700
    public static function max(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1701
    {
1702
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1703
    }
1704
1705
    /**
1706
     * Index of highest value over a specified period
1707
     *
1708
     * @param array $real       Array of real values.
1709
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1710
     *
1711
     * @return array Returns an array with calculated data.
1712
     */
1713
    public static function maxindex(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1714
    {
1715
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1716
    }
1717
1718
    /**
1719
     * Median Price.
1720
     *
1721
     * @param array $high High price, array of real values.
1722
     * @param array $low  Low price, array of real values.
1723
     *
1724
     * @return array Returns an array with calculated data.
1725
     */
1726
    public static function medprice(array $high, array $low): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1727
    {
1728
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1729
    }
1730
1731
    /**
1732
     * Money Flow Index.
1733
     *
1734
     * @param array $high       High price, array of real values.
1735
     * @param array $low        Low price, array of real values.
1736
     * @param array $close      Closing price, array of real values.
1737
     * @param array $volume     Volume traded, array of real values.
1738
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1739
     *
1740
     * @return array Returns an array with calculated data.
1741
     */
1742
    public static function mfi(array $high, array $low, array $close, array $volume, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $volume is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1743
    {
1744
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1745
    }
1746
1747
    /**
1748
     * MidPoint over period.
1749
     *
1750
     * @param array $real       Array of real values.
1751
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1752
     *
1753
     * @return array Returns an array with calculated data.
1754
     */
1755
    public static function midpoint(array $real, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1756
    {
1757
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1758
    }
1759
1760
    /**
1761
     * Midpoint Price over period.
1762
     *
1763
     * @param array $high       High price, array of real values.
1764
     * @param array $low        Low price, array of real values.
1765
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1766
     *
1767
     * @return array Returns an array with calculated data.
1768
     */
1769
    public static function midprice(array $high, array $low, int $timePeriod = 14)
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1770
    {
1771
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1772
    }
1773
1774
    /**
1775
     * Lowest value over a specified period.
1776
     *
1777
     * @param array $real       Array of real values.
1778
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1779
     *
1780
     * @return array Returns an array with calculated data.
1781
     */
1782
    public static function min(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1783
    {
1784
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1785
    }
1786
1787
    /**
1788
     * Index of lowest value over a specified period.
1789
     *
1790
     * @param array $real       Array of real values.
1791
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1792
     *
1793
     * @return array Returns an array with calculated data.
1794
     */
1795
    public static function minindex(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1796
    {
1797
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1798
    }
1799
1800
    /**
1801
     * Lowest and highest values over a specified period.
1802
     *
1803
     * @param array $real       Array of real values.
1804
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1805
     *
1806
     * @return array Returns an array with calculated data.
1807
     */
1808
    public static function minmax(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1809
    {
1810
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1811
    }
1812
1813
    /**
1814
     * Indexes of lowest and highest values over a specified period.
1815
     *
1816
     * @param array $real       Array of real values.
1817
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1818
     *
1819
     * @return array Returns an array with calculated data.
1820
     */
1821
    public static function minmaxindex(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1822
    {
1823
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1824
    }
1825
1826
    /**
1827
     * Minus Directional Indicator.
1828
     *
1829
     * @param array $high       High price, array of real values.
1830
     * @param array $low        Low price, array of real values.
1831
     * @param array $close      Closing price, array of real values.
1832
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1833
     *
1834
     * @return array Returns an array with calculated data.
1835
     */
1836
    public static function minus_di(array $high, array $low, array $close, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1837
    {
1838
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1839
    }
1840
1841
    /**
1842
     * Minus Directional Movement.
1843
     *
1844
     * @param array $high       High price, array of real values.
1845
     * @param array $low        Low price, array of real values.
1846
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1847
     *
1848
     * @return array Returns an array with calculated data.
1849
     */
1850
    public static function minus_dm(array $high, array $low, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1851
    {
1852
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1853
    }
1854
1855
    /**
1856
     * Momentum.
1857
     *
1858
     * @param array $real       Array of real values.
1859
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1860
     *
1861
     * @return array Returns an array with calculated data.
1862
     */
1863
    public static function mom(array $real, int $timePeriod = 10): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1864
    {
1865
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1866
    }
1867
1868
    /**
1869
     * Vector Arithmetic Mult.
1870
     *
1871
     * Calculates the vector dot product of real0 with real1 and returns the resulting vector.
1872
     *
1873
     * @param array $real0 Array of real values.
1874
     * @param array $real1 Array of real values.
1875
     *
1876
     * @return array Returns an array with calculated data.
1877
     */
1878
    public static function mult(array $real0, array $real1): array
0 ignored issues
show
Unused Code introduced by
The parameter $real0 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $real1 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1879
    {
1880
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1881
    }
1882
1883
    /**
1884
     * Normalized Average True Range.
1885
     *
1886
     * @param array $high       High price, array of real values.
1887
     * @param array $low        Low price, array of real values.
1888
     * @param array $close      Closing price, array of real values.
1889
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1890
     *
1891
     * @return array Returns an array with calculated data.
1892
     */
1893
    public static function natr(array $high, array $low, array $close, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1894
    {
1895
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1896
    }
1897
1898
    /**
1899
     * On Balance Volume.
1900
     *
1901
     * @param array $real   Array of real values.
1902
     * @param array $volume Volume traded, array of real values.
1903
     *
1904
     * @return array Returns an array with calculated data.
1905
     */
1906
    public static function obv(array $real, array $volume): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $volume is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1907
    {
1908
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1909
    }
1910
1911
    /**
1912
     * Plus Directional Indicator.
1913
     *
1914
     * @param array $high       High price, array of real values.
1915
     * @param array $low        Low price, array of real values.
1916
     * @param array $close      Closing price, array of real values.
1917
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1918
     *
1919
     * @return array Returns an array with calculated data.
1920
     */
1921
    public static function plus_di(array $high, array $low, array $close, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1922
    {
1923
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1924
    }
1925
1926
    /**
1927
     * Plus Directional Movement.
1928
     *
1929
     * @param array $high       High price, array of real values.
1930
     * @param array $low        Low price, array of real values.
1931
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1932
     *
1933
     * @return array Returns an array with calculated data.
1934
     */
1935
    public static function plus_dm(array $high, array $low, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1936
    {
1937
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1938
    }
1939
1940
    /**
1941
     * Percentage Price Oscillator.
1942
     *
1943
     * @param array $real       Array of real values.
1944
     * @param int   $fastPeriod Number of period for the fast MA. Valid range from 2 to 100000.
1945
     * @param int   $slowPeriod Number of period for the slow MA. Valid range from 2 to 100000.
1946
     * @param int   $mAType     Type of Moving Average. MA_TYPE_* series of constants should be used.
1947
     *
1948
     * @return array Returns an array with calculated data.
1949
     */
1950
    public static function ppo(array $real, int $fastPeriod = 12, int $slowPeriod = 26, int $mAType = 0): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $fastPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $slowPeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $mAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1951
    {
1952
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1953
    }
1954
1955
    /**
1956
     * Rate of change : ((price/prevPrice)-1)*100.
1957
     *
1958
     * @param array $real       Array of real values.
1959
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1960
     *
1961
     * @return array Returns an array with calculated data.
1962
     */
1963
    public static function roc(array $real, int $timePeriod = 10): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1964
    {
1965
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1966
    }
1967
1968
    /**
1969
     * Rate of change Percentage: (price-prevPrice)/prevPrice.
1970
     *
1971
     * @param array $real       Array of real values.
1972
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1973
     *
1974
     * @return array Returns an array with calculated data.
1975
     */
1976
    public static function rocp(array $real, int $timePeriod = 10): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1977
    {
1978
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1979
    }
1980
1981
    /**
1982
     * Rate of change ratio 100 scale: (price/prevPrice)*100.
1983
     *
1984
     * @param array $real       Array of real values.
1985
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1986
     *
1987
     * @return array Returns an array with calculated data.
1988
     */
1989
    public static function rocr100(array $real, int $timePeriod = 10): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1990
    {
1991
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
1992
    }
1993
1994
    /**
1995
     * Rate of change ratio: (price/prevPrice).
1996
     *
1997
     * @param array $real       Array of real values.
1998
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
1999
     *
2000
     * @return array Returns an array with calculated data.
2001
     */
2002
    public static function rocr(array $real, int $timePeriod = 10): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2003
    {
2004
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2005
    }
2006
2007
    /**
2008
     * Relative Strength Index.
2009
     *
2010
     * @param array $real       Array of real values.
2011
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2012
     *
2013
     * @return array Returns an array with calculated data.
2014
     */
2015
    public static function rsi(array $real, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2016
    {
2017
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2018
    }
2019
2020
    /**
2021
     * Parabolic SAR.
2022
     *
2023
     * @param array $high         High price, array of real values.
2024
     * @param array $low          Low price, array of real values.
2025
     * @param float $acceleration Acceleration Factor used up to the Maximum value. Valid range from 0 to REAL_MAX.
2026
     * @param float $maximum      Acceleration Factor Maximum value. Valid range from 0 to REAL_MAX.
2027
     *
2028
     * @return array Returns an array with calculated data.
2029
     */
2030
    public static function sar(array $high, array $low, float $acceleration = 0.02, float $maximum = 0.2): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $acceleration is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $maximum is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2031
    {
2032
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2033
    }
2034
2035
    /**
2036
     * Parabolic SAR - Extended.
2037
     *
2038
     * @param array $high                  High price, array of real values.
2039
     * @param array $low                   Low price, array of real values.
2040
     * @param float $startValue            Start value and direction. 0 for Auto, >0 for Long, <0 for Short. Valid range from TRADER_REAL_MIN to TRADER_REAL_MAX.
2041
     * @param float $offsetOnReverse       Percent offset added/removed to initial stop on short/long reversal. Valid range from 0 to TRADER_REAL_MAX.
2042
     * @param float $accelerationInitLong  Acceleration Factor initial value for the Long direction. Valid range from 0 to TRADER_REAL_MAX.
2043
     * @param float $accelerationLong      Acceleration Factor for the Long direction. Valid range from 0 to TRADER_REAL_MAX.
2044
     * @param float $accelerationMaxLong   Acceleration Factor maximum value for the Long direction. Valid range from 0 to TRADER_REAL_MAX.
2045
     * @param float $accelerationInitShort Acceleration Factor initial value for the Short direction. Valid range from 0 to TRADER_REAL_MAX.
2046
     * @param float $accelerationShort     Acceleration Factor for the Short direction. Valid range from 0 to TRADER_REAL_MAX.
2047
     * @param float $accelerationMaxShort  Acceleration Factor maximum value for the Short direction. Valid range from 0 to TRADER_REAL_MAX.
2048
     *
2049
     * @return array Returns an array with calculated data.
2050
     */
2051
    public static function sarext(
2052
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2053
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2054
        float $startValue = 0.0,
0 ignored issues
show
Unused Code introduced by
The parameter $startValue is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2055
        float $offsetOnReverse = 0.0,
0 ignored issues
show
Unused Code introduced by
The parameter $offsetOnReverse is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2056
        float $accelerationInitLong = 0.02,
0 ignored issues
show
Unused Code introduced by
The parameter $accelerationInitLong is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2057
        float $accelerationLong = 0.02,
0 ignored issues
show
Unused Code introduced by
The parameter $accelerationLong is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2058
        float $accelerationMaxLong = 0.2,
0 ignored issues
show
Unused Code introduced by
The parameter $accelerationMaxLong is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2059
        float $accelerationInitShort = 0.02,
0 ignored issues
show
Unused Code introduced by
The parameter $accelerationInitShort is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2060
        float $accelerationShort = 0.02,
0 ignored issues
show
Unused Code introduced by
The parameter $accelerationShort is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2061
        float $accelerationMaxShort = 0.2
0 ignored issues
show
Unused Code introduced by
The parameter $accelerationMaxShort is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2062
    ): array {
2063
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2064
    }
2065
2066
    /**
2067
     * Set compatibility mode.
2068
     *
2069
     * Set compatibility mode which will affect the way calculations are done by all the extension functions.
2070
     *
2071
     * @param int $compatId Compatibility Id. TRADER_COMPATIBILITY_* series of constants should be used.
2072
     */
2073
    public static function set_compat(int $compatId)
2074
    {
2075
        trader_set_compat($compatId);
2076
    }
2077
2078
    /**
2079
     * Set unstable period.
2080
     *
2081
     * Influences unstable period factor for functions, which are sensible to it. More information about unstable periods can be found on the » TA-Lib API documentation page.
2082
     *
2083
     * @param int $functionId Function ID the factor should be set for. FUNC_UNST_* constant series can be used to affect the corresponding function.
2084
     * @param int $timePeriod Unstable period value.
2085
     */
2086
    public static function set_unstable_period(int $functionId, int $timePeriod)
2087
    {
2088
        trader_set_unstable_period($functionId, $timePeriod);
2089
    }
2090
2091
    /**
2092
     * Vector Trigonometric Sin.
2093
     *
2094
     * Calculates the sine for each value in real and returns the resulting array.
2095
     *
2096
     * @param array $real Array of real values.
2097
     *
2098
     * @return array Returns an array with calculated data.
2099
     */
2100
    public static function sin(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2101
    {
2102
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2103
    }
2104
2105
    /**
2106
     * Vector Trigonometric Sinh.
2107
     *
2108
     * Calculates the hyperbolic sine for each value in real and returns the resulting array.
2109
     *
2110
     * @param array $real Array of real values.
2111
     *
2112
     * @return array Returns an array with calculated data.
2113
     */
2114
    public static function sinh(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2115
    {
2116
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2117
    }
2118
2119
    /**
2120
     * Simple Moving Average.
2121
     *
2122
     * @param array $real       Array of real values.
2123
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2124
     *
2125
     * @return array Returns an array with calculated data.
2126
     */
2127
    public static function sma(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2128
    {
2129
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2130
    }
2131
2132
    /**
2133
     * Vector Square Root.
2134
     *
2135
     * Calculates the square root of each value in real and returns the resulting array.
2136
     *
2137
     * @param array $real Array of real values.
2138
     *
2139
     * @return array Returns an array with calculated data.
2140
     */
2141
    public static function sqrt(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2142
    {
2143
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2144
    }
2145
2146
    /**
2147
     * Standard Deviation.
2148
     *
2149
     * @param array $real       Array of real values.
2150
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2151
     * @param float $nbDev      Number of deviations
2152
     *
2153
     * @return array Returns an array with calculated data.
2154
     */
2155
    public static function stddev(array $real, int $timePeriod = 5, float $nbDev = 1.0): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $nbDev is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2156
    {
2157
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2158
    }
2159
2160
    /**
2161
     * Stochastic.
2162
     *
2163
     * @param array $high         High price, array of real values.
2164
     * @param array $low          Low price, array of real values.
2165
     * @param array $close        Time period for building the Fast-K line. Valid range from 1 to 100000.
2166
     * @param int   $fastK_Period Time period for building the Fast-K line. Valid range from 1 to 100000.
2167
     * @param int   $slowK_Period Smoothing for making the Slow-K line. Valid range from 1 to 100000, usually set to 3.
2168
     * @param int   $slowK_MAType Type of Moving Average for Slow-K. MA_TYPE_* series of constants should be used.
2169
     * @param int   $slowD_Period Smoothing for making the Slow-D line. Valid range from 1 to 100000.
2170
     * @param int   $slowD_MAType Type of Moving Average for Slow-D. MA_TYPE_* series of constants should be used.
2171
     *
2172
     * @return array Returns an array with calculated data.
2173
     */
2174
    public static function stoch(
2175
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2176
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2177
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2178
        int $fastK_Period = 5,
0 ignored issues
show
Unused Code introduced by
The parameter $fastK_Period is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2179
        int $slowK_Period = 3,
0 ignored issues
show
Unused Code introduced by
The parameter $slowK_Period is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2180
        int $slowK_MAType = 0,
0 ignored issues
show
Unused Code introduced by
The parameter $slowK_MAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2181
        int $slowD_Period = 3,
0 ignored issues
show
Unused Code introduced by
The parameter $slowD_Period is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2182
        int $slowD_MAType = 0
0 ignored issues
show
Unused Code introduced by
The parameter $slowD_MAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2183
    ): array {
2184
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2185
    }
2186
2187
    /**
2188
     * Stochastic Fast.
2189
     *
2190
     * @param array $high         High price, array of real values.
2191
     * @param array $low          Low price, array of real values.
2192
     * @param array $close        Time period for building the Fast-K line. Valid range from 1 to 100000.
2193
     * @param int   $fastK_Period Time period for building the Fast-K line. Valid range from 1 to 100000.
2194
     * @param int   $fastD_Period Smoothing for making the Fast-D line. Valid range from 1 to 100000, usually set to 3.
2195
     * @param int   $fastD_MAType Type of Moving Average for Fast-D. MA_TYPE_* series of constants should be used.
2196
     *
2197
     * @return array Returns an array with calculated data.
2198
     */
2199
    public static function stochf(
2200
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2201
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2202
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2203
        int $fastK_Period = 5,
0 ignored issues
show
Unused Code introduced by
The parameter $fastK_Period is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2204
        int $fastD_Period = 3,
0 ignored issues
show
Unused Code introduced by
The parameter $fastD_Period is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2205
        int $fastD_MAType = 0
0 ignored issues
show
Unused Code introduced by
The parameter $fastD_MAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2206
    ): array {
2207
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2208
    }
2209
2210
    /**
2211
     * Stochastic Relative Strength Index.
2212
     *
2213
     * @param array $real         Array of real values.
2214
     * @param int   $timePeriod   Number of period. Valid range from 2 to 100000.
2215
     * @param int   $fastK_Period Time period for building the Fast-K line. Valid range from 1 to 100000.
2216
     * @param int   $fastD_Period Smoothing for making the Fast-D line. Valid range from 1 to 100000, usually set to 3.
2217
     * @param int   $fastD_MAType Type of Moving Average for Fast-D. MA_TYPE_* series of constants should be used.
2218
     *
2219
     * @return array Returns an array with calculated data.
2220
     */
2221
    public static function stochrsi(
2222
        array $real,
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2223
        int $timePeriod = 14,
0 ignored issues
show
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2224
        int $fastK_Period = 5,
0 ignored issues
show
Unused Code introduced by
The parameter $fastK_Period is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2225
        int $fastD_Period = 3,
0 ignored issues
show
Unused Code introduced by
The parameter $fastD_Period is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2226
        int $fastD_MAType = 0
0 ignored issues
show
Unused Code introduced by
The parameter $fastD_MAType is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2227
    ): array {
2228
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2229
    }
2230
2231
    /**
2232
     * Vector Arithmetic Subtraction.
2233
     *
2234
     * Calculates the vector subtraction of real1 from real0 and returns the resulting vector.
2235
     *
2236
     * @param array $real0 Array of real values.
2237
     * @param array $real1 Array of real values.
2238
     *
2239
     * @return array Returns an array with calculated data.
2240
     */
2241
    public static function sub(array $real0, array $real1): array
0 ignored issues
show
Unused Code introduced by
The parameter $real0 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $real1 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2242
    {
2243
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2244
    }
2245
2246
    /**
2247
     * Summation.
2248
     *
2249
     * @param array $real       Array of real values.
2250
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2251
     *
2252
     * @return array Returns an array with calculated data.
2253
     */
2254
    public static function sum(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2255
    {
2256
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2257
    }
2258
2259
    /**
2260
     * Triple Exponential Moving Average (T3).
2261
     *
2262
     * @param array $real       Array of real values.
2263
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2264
     * @param float $vFactor    Volume Factor. Valid range from 1 to 0.
2265
     *
2266
     * @return array Returns an array with calculated data.
2267
     */
2268
    public static function t3(array $real, int $timePeriod = 5, float $vFactor = 0.7): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $vFactor is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2269
    {
2270
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2271
    }
2272
2273
    /**
2274
     * Vector Trigonometric Tan.
2275
     *
2276
     * Calculates the tangent for each value in real and returns the resulting array.
2277
     *
2278
     * @param array $real Array of real values.
2279
     *
2280
     * @return array Returns an array with calculated data.
2281
     */
2282
    public static function tan(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2283
    {
2284
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2285
    }
2286
2287
    /**
2288
     * Vector Trigonometric Tanh.
2289
     *
2290
     * Calculates the hyperbolic tangent for each value in real and returns the resulting array.
2291
     *
2292
     * @param array $real Array of real values.
2293
     *
2294
     * @return array Returns an array with calculated data.
2295
     */
2296
    public static function tanh(array $real): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2297
    {
2298
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2299
    }
2300
2301
    /**
2302
     * Triple Exponential Moving Average.
2303
     *
2304
     * @param array $real       Array of real values.
2305
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2306
     *
2307
     * @return array Returns an array with calculated data.
2308
     */
2309
    public static function tema(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2310
    {
2311
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2312
    }
2313
2314
    /**
2315
     * True Range.
2316
     *
2317
     * @param array $high  High price, array of real values.
2318
     * @param array $low   Low price, array of real values.
2319
     * @param array $close Closing price, array of real values.
2320
     *
2321
     * @return array Returns an array with calculated data.
2322
     */
2323
    public static function trange(array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2324
    {
2325
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2326
    }
2327
2328
    /**
2329
     * Triangular Moving Average.
2330
     *
2331
     * @param array $real       Array of real values.
2332
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2333
     *
2334
     * @return array Returns an array with calculated data.
2335
     */
2336
    public static function trima(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2337
    {
2338
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2339
    }
2340
2341
    /**
2342
     * 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA.
2343
     *
2344
     * @param array $real       Array of real values.
2345
     * @param int   $timePeriod [OPTIONAL] [DEFAULT 30] Number of period. Valid range from 2 to 100000.
2346
     *
2347
     * @return array Returns an array with calculated data.
2348
     */
2349
    public static function trix(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2350
    {
2351
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2352
    }
2353
2354
    /**
2355
     * Time Series Forecast.
2356
     *
2357
     * @param array $real       Array of real values.
2358
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2359
     *
2360
     * @return array Returns an array with calculated data.
2361
     */
2362
    public static function tsf(array $real, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2363
    {
2364
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2365
    }
2366
2367
    /**
2368
     * Typical Price.
2369
     *
2370
     * @param array $high  High price, array of real values.
2371
     * @param array $low   Low price, array of real values.
2372
     * @param array $close Closing price, array of real values.
2373
     *
2374
     * @return array Returns an array with calculated data.
2375
     */
2376
    public static function typprice(array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2377
    {
2378
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2379
    }
2380
2381
    /**
2382
     * Ultimate Oscillator.
2383
     *
2384
     * @param array $high        High price, array of real values.
2385
     * @param array $low         Low price, array of real values.
2386
     * @param array $close       Closing price, array of real values.
2387
     * @param int   $timePeriod1 Number of bars for 1st period. Valid range from 1 to 100000.
2388
     * @param int   $timePeriod2 Number of bars for 2nd period. Valid range from 1 to 100000.
2389
     * @param int   $timePeriod3 Number of bars for 3rd period. Valid range from 1 to 100000.
2390
     *
2391
     * @return array Returns an array with calculated data.
2392
     */
2393
    public static function ultosc(
2394
        array $high,
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2395
        array $low,
0 ignored issues
show
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2396
        array $close,
0 ignored issues
show
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2397
        int $timePeriod1 = 7,
0 ignored issues
show
Unused Code introduced by
The parameter $timePeriod1 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2398
        int $timePeriod2 = 14,
0 ignored issues
show
Unused Code introduced by
The parameter $timePeriod2 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2399
        int $timePeriod3 = 28
0 ignored issues
show
Unused Code introduced by
The parameter $timePeriod3 is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2400
    ): array {
2401
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2402
    }
2403
2404
    /**
2405
     * Variance.
2406
     *
2407
     * @param array $real       Array of real values.
2408
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2409
     * @param float $nbDev      Number of deviations
2410
     *
2411
     * @return array Returns an array with calculated data.
2412
     */
2413
    public static function var(array $real, int $timePeriod = 5, float $nbDev = 1.0): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $nbDev is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2414
    {
2415
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2416
    }
2417
2418
    /**
2419
     * Weighted Close Price.
2420
     *
2421
     * @param array $high  High price, array of real values.
2422
     * @param array $low   Low price, array of real values.
2423
     * @param array $close Closing price, array of real values.
2424
     *
2425
     * @return array Returns an array with calculated data.
2426
     */
2427
    public static function wclprice(array $high, array $low, array $close): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2428
    {
2429
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2430
    }
2431
2432
    /**
2433
     * Williams' %R.
2434
     *
2435
     * @param array $high       High price, array of real values.
2436
     * @param array $low        Low price, array of real values.
2437
     * @param array $close      Closing price, array of real values.
2438
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2439
     *
2440
     * @return array Returns an array with calculated data.
2441
     */
2442
    public static function willr(array $high, array $low, array $close, int $timePeriod = 14): array
0 ignored issues
show
Unused Code introduced by
The parameter $high is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $low is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $close is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2443
    {
2444
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2445
    }
2446
2447
    /**
2448
     * Weighted Moving Average.
2449
     *
2450
     * @param array $real       Array of real values.
2451
     * @param int   $timePeriod Number of period. Valid range from 2 to 100000.
2452
     *
2453
     * @return array Returns an array with calculated data.
2454
     */
2455
    public static function wma(array $real, int $timePeriod = 30): array
0 ignored issues
show
Unused Code introduced by
The parameter $real is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timePeriod is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
2456
    {
2457
        return $this->__call(__FUNCTION__, func_get_args());
0 ignored issues
show
Bug introduced by
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...
Bug introduced by
It seems like __call() must be provided by classes using this trait. How about adding it as abstract method to this trait?

This check looks for methods that are used by a trait but not required by it.

To illustrate, let’s look at the following code example

trait Idable {
    public function equalIds(Idable $other) {
        return $this->getId() === $other->getId();
    }
}

The trait Idable provides a method equalsId that in turn relies on the method getId(). If this method does not exist on a class mixing in this trait, the method will fail.

Adding the getId() as an abstract method to the trait will make sure it is available.

Loading history...
2458
    }
2459
}
2460