Passed
Push — master ( d4f709...8319cd )
by Mike
07:40 queued 01:16
created

Client   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
ccs 0
cts 7
cp 0
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIterator() 0 7 2
1
<?php
2
3
namespace MGDigital\BusQue\Redis\Predis;
4
5
use Predis\Client as BaseClient;
6
7
/**
8
 * {@inheritdoc}
9
 */
10
class Client extends BaseClient
11
{
12
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function getIterator()
17
    {
18
        if (!$this->getConnection() instanceof \Traversable) {
19
            return new \ArrayIterator([$this]);
20
        }
21
        return parent::getIterator();
22
    }
23
}
24