classes/phing/tasks/ext/PhpCodeSnifferTask.php
public function setAllowedFileExtensions($extensions)
    {
        $this->allowedFileExtensions = [];
        $token = ' ,;';
        $ext = strtok($extensions, $token);
        while ($ext !== false) {
            $this->allowedFileExtensions[] = $ext;
            $ext = strtok($token);
        }
    }
public function setAllowedFileExtensions($extensions)
    {
        $this->allowedFileExtensions = [];
        $token = ' ,;';
        $ext = strtok($extensions, $token);
        while ($ext !== false) {
            $this->allowedFileExtensions[] = $ext;
            $ext = strtok($token);
        }
    }
public function setAllowedFileExtensions ( $ extensions ) { $ this -> allowedFileExtensions = [ ] ; $ token = ' ,;' ; $ ext = strtok ( $ extensions , $ token ) ; while ( $ ext !== false ) { $ this -> allowedFileExtensions [ ] = $ ext ; $ ext = strtok ( $ token ) ; } }
Sets the allowed file extensions when using directories instead of specific files

@param array $extensions
Sets the allowed file extensions when using directories instead of specific files