CodeExplorer darwinRealpath example
array_splice($tail, 0,
$i + 1
);
if (!
$tail) { return null;
} $tail = \DIRECTORY_SEPARATOR.
implode(\DIRECTORY_SEPARATOR,
$tail);
$tailLen = \
strlen($tail);
$real =
$refl->
getFileName();
if (2 === self::
$caseCheck) { $real =
$this->
darwinRealpath($real);
} if (0 ===
substr_compare($real,
$tail, -
$tailLen,
$tailLen, true
) && 0 !==
substr_compare($real,
$tail, -
$tailLen,
$tailLen, false
) ) { return [substr($tail, -
$tailLen + 1
),
substr($real, -
$tailLen + 1
),
substr($real, 0, -
$tailLen + 1
)];
} return null;
} array_splice($tail, 0,
$i + 1
);
if (!
$tail) { return null;
} $tail = \DIRECTORY_SEPARATOR.
implode(\DIRECTORY_SEPARATOR,
$tail);
$tailLen = \
strlen($tail);
$real =
$refl->
getFileName();
if (2 === self::
$caseCheck) { $real =
$this->
darwinRealpath($real);
} if (0 ===
substr_compare($real,
$tail, -
$tailLen,
$tailLen, true
) && 0 !==
substr_compare($real,
$tail, -
$tailLen,
$tailLen, false
) ) { return [substr($tail, -
$tailLen + 1
),
substr($real, -
$tailLen + 1
),
substr($real, 0, -
$tailLen + 1
)];
} return null;
}