src/FS/Folder/MethodVisibilityCheck.php
public function scan( $path, $extension = "php5" )
	{
		$this->count	= 0;
		$this->found	= 0;
		$this->list		= array();
		$finder	= new FS_File_RecursiveRegexFilter( $path, '@^[^_].*\.'.$extension.'$@', "@function @" );
		foreach( $finder as $entry )
		{
			$checker	= new FS_File_PHP_Check_MethodVisibility( $entry->getPathname() );
			if( $checker->check() )
				continue;
			$this->found++;
			$this->list[$entry->getPathname()]	= $checker->getMethods();
		}
		$this->count	= $finder->getNumberFound();
	}
public function scan( $path, $extension = "php5" )
	{
		$this->count	= 0;
		$this->found	= 0;
		$this->list		= array();
		$finder	= new FS_File_RecursiveRegexFilter( $path, '@^[^_].*\.'.$extension.'$@', "@function @" );
		foreach( $finder as $entry )
		{
			$checker	= new FS_File_PHP_Check_MethodVisibility( $entry->getPathname() );
			if( $checker->check() )
				continue;
			$this->found++;
			$this->list[$entry->getPathname()]	= $checker->getMethods();
		}
		$this->count	= $finder->getNumberFound();
	}
public function scan ( $ path , $ extension = "php5" ) { $ this -> count = 0 ; $ this -> found = 0 ; $ this -> list = array ( ) ; $ finder = new FS_File_RecursiveRegexFilter ( $ path , '@^[^_].*\.' . $ extension . '$@' , "@function @" ) ; foreach ( $ finder as $ entry ) { $ checker = new FS_File_PHP_Check_MethodVisibility ( $ entry -> getPathname ( ) ) ; if ( $ checker -> check ( ) ) continue ; $ this -> found ++ ; $ this -> list [ $ entry -> getPathname ( ) ] = $ checker -> getMethods ( ) ; } $ this -> count = $ finder -> getNumberFound ( ) ; }
Scans a folder containing PHP files for methods without defined visibility.
@access		public
@param		string		$path			Path to Folder containing PHP Files
@param		string		$extension		Extension of PHP Files.
@return		void
Scans a folder containing PHP files for methods without defined visibility .