public function getMaximumCRAPIndex() {
		$maximumCRAP = 0;
		foreach ($this->getFiles() as $file) {
			foreach ($file->getLines() as $line) {
				if ($line->getType() == CloverLine::TYPE_METHOD) {
					if ($line->getCrap() > $maximumCRAP) {
						$maximumCRAP = $line->getCRAP();
					}
				}
			}
		}
		foreach ($this->getPackages() as $package) {
			foreach ($package->getFiles() as $file) {
				foreach ($file->getLines() as $line) {
					if ($line->getType() == CloverLine::TYPE_METHOD) {
						if ($line->getCrap() > $maximumCRAP) {
							$maximumCRAP = $line->getCRAP();
						}
					}
				}
			}
		}

		return $maximumCRAP;
	}
public function getMaximumCRAPIndex() {
		$maximumCRAP = 0;
		foreach ($this->getFiles() as $file) {
			foreach ($file->getLines() as $line) {
				if ($line->getType() == CloverLine::TYPE_METHOD) {
					if ($line->getCrap() > $maximumCRAP) {
						$maximumCRAP = $line->getCRAP();
					}
				}
			}
		}
		foreach ($this->getPackages() as $package) {
			foreach ($package->getFiles() as $file) {
				foreach ($file->getLines() as $line) {
					if ($line->getType() == CloverLine::TYPE_METHOD) {
						if ($line->getCrap() > $maximumCRAP) {
							$maximumCRAP = $line->getCRAP();
						}
					}
				}
			}
		}

		return $maximumCRAP;
	}
public function getMaximumCRAPIndex ( ) { $ maximumCRAP = 0 ; foreach ( $ this -> getFiles ( ) as $ file ) { foreach ( $ file -> getLines ( ) as $ line ) { if ( $ line -> getType ( ) == CloverLine :: TYPE_METHOD ) { if ( $ line -> getCrap ( ) > $ maximumCRAP ) { $ maximumCRAP = $ line -> getCRAP ( ) ; } } } } foreach ( $ this -> getPackages ( ) as $ package ) { foreach ( $ package -> getFiles ( ) as $ file ) { foreach ( $ file -> getLines ( ) as $ line ) { if ( $ line -> getType ( ) == CloverLine :: TYPE_METHOD ) { if ( $ line -> getCrap ( ) > $ maximumCRAP ) { $ maximumCRAP = $ line -> getCRAP ( ) ; } } } } } return $ maximumCRAP ; }
Return the maximum C.R.A.P. index

@return int
Return the maximum C . R . A . P . index