ongr-archive / ongr-strict-standard

[NOT MAINTAINED] Strict PHPCS standard for PSR-2 code based on Squiz standards
MIT License
13 stars 14 forks source link

Bitwise operator sniff #112

Open emaslak opened 9 years ago

emaslak commented 9 years ago
        $iterator->setFlags(
            \SplFileObject::READ_CSV |
            \SplFileObject::READ_AHEAD |
            \SplFileObject::DROP_NEW_LINE |
            \SplFileObject::SKIP_EMPTY
        );

Gives an error "Expected 1 space after "|"; newline found". With "or"/"and" operators there are no errors, so I assume just bitwise operator should be added to sniff.