lib/xrstf/Composer52/ClassLoader.php
public function add($prefix, $paths, $prepend = false) {
		if (!$prefix) {
			if ($prepend) {
				$this->fallbackDirs = array_merge(
					(array) $paths,
					$this->fallbackDirs
				);
			}
			else {
				$this->fallbackDirs = array_merge(
					$this->fallbackDirs,
					(array) $paths
				);
			}

			return;
		}

		if (!isset($this->prefixes[$prefix])) {
			$this->prefixes[$prefix] = (array) $paths;
			return;
		}

		if ($prepend) {
			$this->prefixes[$prefix] = array_merge(
				(array) $paths,
				$this->prefixes[$prefix]
			);
		}
		else {
			$this->prefixes[$prefix] = array_merge(
				$this->prefixes[$prefix],
				(array) $paths
			);
		}
	}
public function add($prefix, $paths, $prepend = false) {
		if (!$prefix) {
			if ($prepend) {
				$this->fallbackDirs = array_merge(
					(array) $paths,
					$this->fallbackDirs
				);
			}
			else {
				$this->fallbackDirs = array_merge(
					$this->fallbackDirs,
					(array) $paths
				);
			}

			return;
		}

		if (!isset($this->prefixes[$prefix])) {
			$this->prefixes[$prefix] = (array) $paths;
			return;
		}

		if ($prepend) {
			$this->prefixes[$prefix] = array_merge(
				(array) $paths,
				$this->prefixes[$prefix]
			);
		}
		else {
			$this->prefixes[$prefix] = array_merge(
				$this->prefixes[$prefix],
				(array) $paths
			);
		}
	}
public function add ( $ prefix , $ paths , $ prepend = false ) { if ( ! $ prefix ) { if ( $ prepend ) { $ this -> fallbackDirs = array_merge ( ( array ) $ paths , $ this -> fallbackDirs ) ; } else { $ this -> fallbackDirs = array_merge ( $ this -> fallbackDirs , ( array ) $ paths ) ; } return ; } if ( ! isset ( $ this -> prefixes [ $ prefix ] ) ) { $ this -> prefixes [ $ prefix ] = ( array ) $ paths ; return ; } if ( $ prepend ) { $ this -> prefixes [ $ prefix ] = array_merge ( ( array ) $ paths , $ this -> prefixes [ $ prefix ] ) ; } else { $ this -> prefixes [ $ prefix ] = array_merge ( $ this -> prefixes [ $ prefix ] , ( array ) $ paths ) ; } }
Registers a set of classes, merging with any others previously set.

@param string       $prefix   the classes prefix
@param array|string $paths    the location(s) of the classes
@param bool         $prepend  prepend the location(s)
Registers a set of classes merging with any others previously set .