BaseRegistry   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isTraversable() 0 4 2
1
<?php namespace Nwidart\LaravelBroadway\Registries;
2
3
abstract class BaseRegistry
4
{
5
    /**
6
     * Check if the given argument is traversable
7
     * @param $argument
8
     * @return bool
9
     */
10
    protected function isTraversable($argument)
11
    {
12
        return is_array($argument) || $argument instanceof \Traversable;
13
    }
14
}
15