Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php final class PhabricatorOwnerPathQuery extends Phobject { public static function ..
Decoded Output download
<?php
final class PhabricatorOwnerPathQuery extends Phobject {
public static function loadAffectedPaths(
PhabricatorRepository $repository,
PhabricatorRepositoryCommit $commit,
PhabricatorUser $user) {
$drequest = DiffusionRequest::newFromDictionary(
array(
'user' => $user,
'repository' => $repository,
'commit' => $commit->getCommitIdentifier(),
));
$path_query = DiffusionPathChangeQuery::newFromDiffusionRequest(
$drequest);
$paths = $path_query->loadChanges();
$result = array();
foreach ($paths as $path) {
$basic_path = '/'.$path->getPath();
if ($path->getFileType() == DifferentialChangeType::FILE_DIRECTORY) {
$basic_path = rtrim($basic_path, '/').'/';
}
$result[] = $basic_path;
}
return $result;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorOwnerPathQuery extends Phobject {
public static function loadAffectedPaths(
PhabricatorRepository $repository,
PhabricatorRepositoryCommit $commit,
PhabricatorUser $user) {
$drequest = DiffusionRequest::newFromDictionary(
array(
'user' => $user,
'repository' => $repository,
'commit' => $commit->getCommitIdentifier(),
));
$path_query = DiffusionPathChangeQuery::newFromDiffusionRequest(
$drequest);
$paths = $path_query->loadChanges();
$result = array();
foreach ($paths as $path) {
$basic_path = '/'.$path->getPath();
if ($path->getFileType() == DifferentialChangeType::FILE_DIRECTORY) {
$basic_path = rtrim($basic_path, '/').'/';
}
$result[] = $basic_path;
}
return $result;
}
}
Function Calls
None |
Stats
MD5 | e4e112dc11224c236ea946f47c8b687b |
Eval Count | 0 |
Decode Time | 102 ms |