src/Build.php
public function check(array &$errors = null):int {
		$count = 0;

		foreach($this->taskList as $pathMatch => $task) {
			$absolutePathMatch = implode(DIRECTORY_SEPARATOR, [
				getcwd(),
				$pathMatch,
			]);
			$fileList = Glob::glob($absolutePathMatch);
			if(!empty($fileList)) {
				$task->check($errors);
			}

			$count ++;
		}

		return $count;
	}
public function check(array &$errors = null):int {
		$count = 0;

		foreach($this->taskList as $pathMatch => $task) {
			$absolutePathMatch = implode(DIRECTORY_SEPARATOR, [
				getcwd(),
				$pathMatch,
			]);
			$fileList = Glob::glob($absolutePathMatch);
			if(!empty($fileList)) {
				$task->check($errors);
			}

			$count ++;
		}

		return $count;
	}
public function check ( array & $ errors = null ) : int { $ count = 0 ; foreach ( $ this -> taskList as $ pathMatch => $ task ) { $ absolutePathMatch = implode ( DIRECTORY_SEPARATOR , [ getcwd ( ) , $ pathMatch , ] ) ; $ fileList = Glob :: glob ( $ absolutePathMatch ) ; if ( ! empty ( $ fileList ) ) { $ task -> check ( $ errors ) ; } $ count ++ ; } return $ count ; }
For each task, ensure all requirements are met.
For each task ensure all requirements are met .