src/FS/File/PHP/Check/MethodVisibility.php
public function check()
	{
		$this->checked	= TRUE;
		$this->methods	= array();
		$matches		= array();
		$content		= FS_File_Reader::load( $this->fileName );
		if( preg_match( "@class @i", $content ) )
			if( preg_match_all( "@\tfunction (& *)?([a-z][a-z0-9]+)@i", $content, $matches ) )
				foreach( $matches[2] as $match )
					$this->methods[]	= $match;
		return empty( $this->methods );
	}
public function check()
	{
		$this->checked	= TRUE;
		$this->methods	= array();
		$matches		= array();
		$content		= FS_File_Reader::load( $this->fileName );
		if( preg_match( "@class @i", $content ) )
			if( preg_match_all( "@\tfunction (& *)?([a-z][a-z0-9]+)@i", $content, $matches ) )
				foreach( $matches[2] as $match )
					$this->methods[]	= $match;
		return empty( $this->methods );
	}
public function check ( ) { $ this -> checked = TRUE ; $ this -> methods = array ( ) ; $ matches = array ( ) ; $ content = FS_File_Reader :: load ( $ this -> fileName ) ; if ( preg_match ( "@class @i" , $ content ) ) if ( preg_match_all ( "@\tfunction (& *)?([a-z][a-z0-9]+)@i" , $ content , $ matches ) ) foreach ( $ matches [ 2 ] as $ match ) $ this -> methods [ ] = $ match ; return empty ( $ this -> methods ) ; }
Indicates whether all methods have a defined visibility.
@access		public
@return		bool
Indicates whether all methods have a defined visibility .