includes/phing/src/Tasks/PhpCodeSnifferConfigurationTask.php
public function setExtensions($extensions)
    {
        $this->_extensions = array();
        $token             = ' ,;';
        $extension         = strtok($extensions, $token);

        while ($extension !== false) {
            $this->_extensions[] = $extension;
            $extension           = strtok($token);
        }

    }
public function setExtensions($extensions)
    {
        $this->_extensions = array();
        $token             = ' ,;';
        $extension         = strtok($extensions, $token);

        while ($extension !== false) {
            $this->_extensions[] = $extension;
            $extension           = strtok($token);
        }

    }
public function setExtensions ( $ extensions ) { $ this -> _extensions = array ( ) ; $ token = ' ,;' ; $ extension = strtok ( $ extensions , $ token ) ; while ( $ extension !== false ) { $ this -> _extensions [ ] = $ extension ; $ extension = strtok ( $ token ) ; } }
Sets the file extensions to scan.

@param string $extensions A string containing file extensions, delimited
by spaces, commas or semicolons.

@return void
Sets the file extensions to scan .