Passed
Push — master ( 342193...f80fe6 )
by Andrea Marco
03:14 queued 11s
created

lazyJsonPages()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
use Illuminate\Support\LazyCollection;
4
5
if (!function_exists('lazyJsonPages')) {
6
    /**
7
     * Load the given JSON source in a lazy collection.
8
     *
9
     * @param \Psr\Http\Message\RequestInterface|\Illuminate\Http\Client\Response $source
10
     * @param string $path
11
     * @param callable|array|string|int $config
12
     * @return LazyCollection
13
     */
14
    function lazyJsonPages($source, string $path, $config): LazyCollection
15
    {
16
        return LazyCollection::fromJsonPages($source, $path, $config);
17
    }
18
}
19