* @throws PathReadProtectedException If the provided path name is read-protected
* @throws DirPointerNotOpenedException If opendir() returns not a directory resource
*/
- public static final function createFrameworkDirectoryPointer ($pathName, $inConstructor = false) {
+ public static final function createFrameworkDirectoryPointer ($pathName, $inConstructor = FALSE) {
// Some pre-sanity checks...
if (is_null($pathName)) {
// No pathname given
if ($inConstructor) {
return NULL;
} else {
- throw new PathIsEmptyException(null, self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
+ throw new PathIsEmptyException(NULL, self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
}
} elseif (!is_string($pathName)) {
// Is not a string
if ($inConstructor) {
return NULL;
} else {
- throw new InvalidPathStringException(null, self::EXCEPTION_INVALID_STRING);
+ throw new InvalidPathStringException(NULL, self::EXCEPTION_INVALID_STRING);
}
} elseif (!is_dir($pathName)) {
// Not a directory
$rawLine = $this->readRawDirectory();
// Shall we exclude directories?
- if ((!is_null($rawLine)) && ($rawLine !== false) && (!in_array($rawLine, $except))) {
+ if ((!is_null($rawLine)) && ($rawLine !== FALSE) && (!in_array($rawLine, $except))) {
// Return read data
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DIRECTORY[' . __LINE__ . ']: rawLine[' . gettype($rawLine) . ']=' . $rawLine);
return $rawLine;
- } elseif ((!is_null($rawLine)) && ($rawLine !== false)) {
+ } elseif ((!is_null($rawLine)) && ($rawLine !== FALSE)) {
// Exclude this part
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DIRECTORY[' . __LINE__ . ']: rawline[' . gettype($rawLine) . ']=' . $rawLine . ' - Recursive call!');
return $this->readDirectoryExcept($except);