Completed
Push — 5.1 ( f422a4...a89502 )
by Rémi
8s
created

Support   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isTraversable() 0 4 2
1
<?php
2
3
namespace Analogue\ORM\System;
4
5
/**
6
 * This class contains a helper methods
7
 */
8
class Support
9
{
10
    /**
11
     * Return true if an object is an array or iterator
12
     *
13
     * @param  mixed $argument
14
     * @return boolean
15
     */
16
    public static function isTraversable($argument)
17
    {
18
        return $argument instanceof \Traversable || is_array($argument);
19
    }
20
}
21