Passed
Branch master (f496ba)
by stéphane
02:11
created

Compact.php (9 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
3
namespace Dallgoot\Yaml;
4
5
use Dallgoot\Yaml\Types as T;
6
7
/**
0 ignored issues
show
Doc comment is empty
Loading history...
8
 *
9
 */
0 ignored issues
show
Missing @category tag in class comment
Loading history...
Missing @package tag in class comment
Loading history...
Missing @author tag in class comment
Loading history...
Missing @license tag in class comment
Loading history...
Missing @link tag in class comment
Loading history...
10
class Compact extends \ArrayIterator
11
{
12
13
    public function __construct($argument)
0 ignored issues
show
Missing function doc comment
Loading history...
14
    {
15
        if ($argument instanceof \Countable && count($argument) > 0) {
16
            # it's an array-like
0 ignored issues
show
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Loading history...
17
        } else {
18
            //it's an object-like
19
        }
20
    }
21
}
22