ArrayFormatter::output()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Sanderdekroon\Parlant\Formatter;
4
5
class ArrayFormatter implements FormatterInterface
6
{
7
8
    /**
9
     * Return an array of \WP_Posts instances.
10
     * @param  array  $arguments
11
     * @return array
12
     */
13 1
    public function output(array $arguments)
14
    {
15 1
        return get_posts($arguments);
0 ignored issues
show
Bug introduced by
The function get_posts was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

15
        return /** @scrutinizer ignore-call */ get_posts($arguments);
Loading history...
16
    }
17
}
18