protected static function addPatterns(IgnoreManager $manager, $patterns)
    {
        $enabled = false === $patterns ? false : true;
        $manager->setEnabled($enabled);

        if (\is_array($patterns)) {
            foreach ($patterns as $pattern) {
                $manager->addPattern($pattern);
            }
        }
    }
protected static function addPatterns(IgnoreManager $manager, $patterns)
    {
        $enabled = false === $patterns ? false : true;
        $manager->setEnabled($enabled);

        if (\is_array($patterns)) {
            foreach ($patterns as $pattern) {
                $manager->addPattern($pattern);
            }
        }
    }
protected static function addPatterns ( IgnoreManager $ manager , $ patterns ) { $ enabled = false === $ patterns ? false : true ; $ manager -> setEnabled ( $ enabled ) ; if ( \ is_array ( $ patterns ) ) { foreach ( $ patterns as $ pattern ) { $ manager -> addPattern ( $ pattern ) ; } } }
Add ignore file patterns in the ignore manager.

@param IgnoreManager $manager  The ignore files manager
@param array|bool    $patterns The patterns for ignore files
Add ignore file patterns in the ignore manager .