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 /** * Moves a build forward by queuing build tasks, canceling or restarting the * ..
Decoded Output download
<?php /**
* Moves a build forward by queuing build tasks, canceling or restarting the
* build, or failing it in response to task failures.
*/ final class bgso10 extends dcgy11{private $mikj12;private $ffcu13;private $nisk14=array();private $enme15=array();private $lyrd16;public function yhnj0($ywtt17){$this->$wazf18=$ywtt17;return $this;}public function frqa1(){return $this->$wazf18;}public function vyof2(HarbormasterBuildTarget $mcyb19){$this->$rfys1a[]=$mcyb19;return $this;}public function oomj3(){return $this->$rfys1a;}public function yayu4(PhabricatorUser $ffcu13){$this->$vnig1b=$ffcu13;return $this;}public function iizy5(){return $this->$vnig1b;}public function edei6(HarbormasterBuild $mikj12){$this->$uxoa1c=$mikj12;return $this;}public function zbxv7(){return $this->$uxoa1c;}public function xatu8(){$ffcu13=$this->iizy5();$mikj12=$this->zbxv7();$pokc1d=base64_decode('aGFyYm9ybWFzdGVyLmJ1aWxkOg==').$mikj12->tydz1e();$xita1f=PhabricatorGlobalLock::wxlj20($pokc1d)->ytqn21(15);$mikj12->ccsf22();$ugxi23=$mikj12->xgyk24();try{$this->oham9($mikj12);}catch(Exception $agwn25){$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_ERROR);$mikj12->qjsa27();$xita1f->dlqe28();$mikj12->qmtz29($ffcu13);throw $agwn25;}$xita1f->dlqe28();foreach($this->oomj3()as $mcyb19){$jpxf2a=PhabricatorWorker::yalb2b(base64_decode('SGFyYm9ybWFzdGVyVGFyZ2V0V29ya2Vy'),array(base64_decode('dGFyZ2V0SUQ=')=>$mcyb19->tydz1e(),),array(base64_decode('b2JqZWN0UEhJRA==')=>$mcyb19->cdqq2c(),));}$wgrx2d=$mikj12->xgyk24();if($wgrx2d!=$ugxi23||$this->frqa1()){$this->lvyhd($mikj12->esox2e());}$this->jagef();if(!$mikj12->hqti2f()){$mikj12->qmtz29($ffcu13);}}private function oham9(HarbormasterBuild $mikj12){$ffcu13=$this->iizy5();$yscj30=PhabricatorContentSource::ijkn31(PhabricatorDaemonContentSource::SOURCECONST);$yjhv32=$ffcu13->cdqq2c();if(!$yjhv32){$yjhv32=giwv33(new hrxt34())->cdqq2c();}$wedb35=$mikj12->jqkn36()->nivk37($ffcu13)->edew38($yjhv32)->ukow39($yscj30)->ilcc3a(true)->mnga3b(true);$ipxw3c=array();$wlmx3d=$mikj12->spsp3e();foreach($wlmx3d as $egll3f){$xdlv40=$egll3f->iadl41();$vigl42=HarbormasterBuildMessageTransaction::pmsb43($xdlv40);if(!$vigl42){continue;}$ipxw3c[]=$mikj12->qayg44()->xbcc45($egll3f->ydri46())->kdge47($vigl42)->jqea48($xdlv40);}if(!$ipxw3c){if($mikj12->wvgx49()){$mikj12->dvdd4a($ffcu13);$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_BUILDING);$mikj12->qjsa27();}}if($ipxw3c){$wedb35->ffdq4b($mikj12,$ipxw3c);$mikj12->hxcw4c();}if($mikj12->xgyk24()==HarbormasterBuildStatus::STATUS_BUILDING){$this->nhqia($mikj12);}}private function nhqia(HarbormasterBuild $mikj12){$yvha4d=giwv33(new jquz4e())->yayu4($this->iizy5())->rsoj4f(array($mikj12->cdqq2c()))->zltm50(array($mikj12->mswb51()))->izyg52();$this->tntcc($yvha4d);$llox53=eihm54($yvha4d,base64_decode('Z2V0QnVpbGRTdGVwUEhJRA=='));$llqb55=giwv33(new lfgu56())->yayu4($this->iizy5())->vgqb57(array($mikj12->namz58()->cdqq2c()))->izyg52();$llqb55=obya59($llqb55,null,base64_decode('Z2V0UEhJRA=='));$ysha5a=array();$eimg5b=array();$xzoi5c=array();$phlz5d=array();$owzd5e=array();foreach($llqb55 as $havz5f){$rytw60=jywq61($llox53,$havz5f->cdqq2c(),array());if($rytw60){$xnus62=false;$moza63=false;foreach($rytw60 as $mcyb19){if($mcyb19->tayz64()){$moza63=true;break;}}$nrpl65=false;foreach($rytw60 as $mcyb19){if($mcyb19->tkfb66()){$nrpl65=true;break;}}$fkpj67=true;foreach($rytw60 as $mcyb19){if(!$mcyb19->sjho68()){$fkpj67=false;break;}}$bwto69=false;foreach($rytw60 as $mcyb19){if($mcyb19->fflx6a()){$bwto69=true;break;}}}else{$xnus62=true;$moza63=false;$nrpl65=false;$fkpj67=false;$bwto69=false;}if($xnus62){$ysha5a[$havz5f->cdqq2c()]=true;}if($moza63){$eimg5b[$havz5f->cdqq2c()]=true;}if($nrpl65){$xzoi5c[$havz5f->cdqq2c()]=true;}if($fkpj67){$phlz5d[$havz5f->cdqq2c()]=true;}if($bwto69){$owzd5e[$havz5f->cdqq2c()]=true;}}if(count($owzd5e)){$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_FAILED);$mikj12->qjsa27();return;}if(count($phlz5d)==count($llqb55)){$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_PASSED);$mikj12->qjsa27();return;}$htwm6b=array_keys($ysha5a+$xzoi5c+$eimg5b);$pqtv6c=mavy6d($llqb55,$htwm6b);$this->pirkb($yvha4d,$pqtv6c);$jxii6e=array();foreach($llqb55 as $havz5f){$fzzr6f=$havz5f->ddyz70()->qfxy71($havz5f);if(isset($ysha5a[$havz5f->cdqq2c()])){$deyk72=true;foreach($fzzr6f as $ygoc73){if(empty($phlz5d[$ygoc73])){$deyk72=false;break;}}if($deyk72){$jxii6e[]=$havz5f;}}}if(!$jxii6e&&!$xzoi5c&&!$eimg5b){$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_DEADLOCKED);$mikj12->qjsa27();return;}foreach($jxii6e as $caud74){$mcyb19=HarbormasterBuildTarget::wory75($mikj12,$caud74,$mikj12->mkgl76());$mcyb19->qjsa27();$this->vyof2($mcyb19);}}/**
* Release any artifacts which aren't used by any running or waiting steps.
*
* This releases artifacts as soon as they're no longer used. This can be
* particularly relevant when a build uses multiple hosts since it returns
* hosts to the pool more quickly.
*
* @param list<HarbormasterBuildTarget> Targets in the build.
* @param list<HarbormasterBuildStep> List of running and waiting steps.
* @return void
*/ private function pirkb(array$llox53,array$llqb55){wmwe77($llox53,base64_decode('SGFyYm9ybWFzdGVyQnVpbGRUYXJnZXQ='));wmwe77($llqb55,base64_decode('SGFyYm9ybWFzdGVyQnVpbGRTdGVw'));if(!$llox53||!$llqb55){return;}$yqav78=obya59($llox53,base64_decode('Z2V0UEhJRA=='));$hdcu79=giwv33(new hfjp7a())->yayu4($this->iizy5())->zokg7b($yqav78)->cpnb7c(false)->izyg52();if(!$hdcu79){return;}$tykt7d=array();foreach($llqb55 as $havz5f){$buhg7e=$havz5f->ddyz70()->bzyr7f();foreach($buhg7e as $lboz80){$ajgj81=$lboz80[base64_decode('a2V5')];$tykt7d[$ajgj81]=true;}}foreach($hdcu79 as $xybp82){$ncdc83=$xybp82->bfky84();if(isset($tykt7d[$ncdc83])){continue;}$this->$bcqc85[]=$xybp82;}}/**
* Process messages which were sent to these targets, kicking applicable
* targets out of "Waiting" and into either "Passed" or "Failed".
*
* @param list<HarbormasterBuildTarget> List of targets to process.
* @return void
*/ private function tntcc(array$llox53){wmwe77($llox53,base64_decode('SGFyYm9ybWFzdGVyQnVpbGRUYXJnZXQ='));$igkt86=array();foreach($llox53 as $mcyb19){if($mcyb19->tkfb66()){$igkt86[$mcyb19->cdqq2c()]=$mcyb19;}}if(!$igkt86){return;}$wlmx3d=giwv33(new dyoe87())->yayu4($this->iizy5())->wzyo88(array_keys($igkt86))->auuz89(false)->izyg52();foreach($wlmx3d as $egll3f){$mcyb19=$igkt86[$egll3f->jfvc8a()];switch($egll3f->iadl41()){case HarbormasterMessageType::MESSAGE_PASS:$wgrx2d=HarbormasterBuildTarget::STATUS_PASSED;break;case HarbormasterMessageType::MESSAGE_FAIL:$wgrx2d=HarbormasterBuildTarget::STATUS_FAILED;break;case HarbormasterMessageType::MESSAGE_WORK:default:$wgrx2d=null;break;}if($wgrx2d!==null){$egll3f->qlxx8b(true);$egll3f->qjsa27();$mcyb19->muxc8c($wgrx2d);if($mcyb19->sjho68()){$mcyb19->aais8d(PhabricatorTime::dabe8e());}$mcyb19->qjsa27();}}}/**
* Update the overall status of the buildable this build is attached to.
*
* After a build changes state (for example, passes or fails) it may affect
* the overall state of the associated buildable. Compute the new aggregate
* state and save it on the buildable.
*
* @param HarbormasterBuild The buildable to update.
* @return void
*/ public function lvyhd(HarbormasterBuildable $wwlc8f){$ffcu13=$this->iizy5();$pokc1d=base64_decode('aGFyYm9ybWFzdGVyLmJ1aWxkYWJsZTo=').$wwlc8f->tydz1e();$xita1f=PhabricatorGlobalLock::wxlj20($pokc1d)->ytqn21(15);$wwlc8f=giwv33(new czdb90())->yayu4($ffcu13)->oqny91(array($wwlc8f->tydz1e()))->jgjj92(true)->hgql93();$wlmx3d=giwv33(new dyoe87())->yayu4($ffcu13)->wzyo88(array($wwlc8f->cdqq2c()))->auuz89(false)->izyg52();$rhbx94=false;$ksae95=false;foreach($wlmx3d as $egll3f){switch($egll3f->iadl41()){case HarbormasterMessageType::BUILDABLE_BUILD:$rhbx94=true;break;case HarbormasterMessageType::BUILDABLE_CONTAINER:$ksae95=true;break;default:break;}$egll3f->qlxx8b(true)->qjsa27();}if($rhbx94){if($wwlc8f->hqdb96()){$wwlc8f->jesj97(HarbormasterBuildableStatus::STATUS_BUILDING)->qjsa27();}}if($ksae95){$igug98=giwv33(new lsqc99())->yayu4($ffcu13)->stxy9a(array($wwlc8f->znry9b()))->hgql93();if($igug98){$wwlc8f->ifck9c($igug98->ymzt9d())->qjsa27();}}$vhjf9e=clone $wwlc8f;if(!$wwlc8f->hqdb96()){$yhdj9f=HarbormasterBuildPlanBehavior::BEHAVIOR_BUILDABLE;$djuga0=HarbormasterBuildPlanBehavior::xlvta1($yhdj9f);$rbrza2=HarbormasterBuildPlanBehavior::BUILDABLE_NEVER;$jkcga3=HarbormasterBuildPlanBehavior::BUILDABLE_IF_BUILDING;$fofpa4=true;$sgufa5=false;foreach($wwlc8f->clila6()as $mikj12){$ybhaa7=$mikj12->namz58();$ssjfa8=$djuga0->hdixa9($ybhaa7);$jzncaa=$ssjfa8->pauwab();$frzeac=($jzncaa===$rbrza2);$bjjead=($jzncaa===$jkcga3);if($frzeac){continue;}if($bjjead&&$mikj12->sjho68()){continue;}if(!$mikj12->gzhtae()){$fofpa4=false;}if($mikj12->sjho68()&&!$mikj12->gzhtae()){$sgufa5=true;}}if($sgufa5){$wgrx2d=HarbormasterBuildableStatus::STATUS_FAILED;}else if($fofpa4){$wgrx2d=HarbormasterBuildableStatus::STATUS_PASSED;}else{$wgrx2d=HarbormasterBuildableStatus::STATUS_BUILDING;}$acuvaf=($vhjf9e->evbtb0()!==$wgrx2d);if($acuvaf){$wwlc8f->jesj97($wgrx2d);$wwlc8f->qjsa27();}}$xita1f->dlqe28();if($wwlc8f->hqdb96()){return;}$this->gevme($vhjf9e,$wwlc8f);}public function gevme(HarbormasterBuildable $vhjf9e,HarbormasterBuildable $dqozb1){$ffcu13=$this->iizy5();$igug98=giwv33(new lsqc99())->yayu4($ffcu13)->stxy9a(array($dqozb1->znry9b()))->hgql93();if(!$igug98){return;}$wwvvb2=HarbormasterBuildableEngine::ioyfb3($igug98,$ffcu13);$pivvb4=PhabricatorContentSource::ijkn31(PhabricatorDaemonContentSource::SOURCECONST);$edijb5=giwv33(new hrxt34())->cdqq2c();$wwvvb2->edew38($edijb5)->ukow39($pivvb4)->gevme($vhjf9e,$dqozb1);}private function jagef(){foreach($this->$bcqc85 as $ncdc83=>$xybp82){$xybp82->fnzob6();unset($this->$bcqc85[$ncdc83]);}}}?>
Did this file decode correctly?
Original Code
<?php /**
* Moves a build forward by queuing build tasks, canceling or restarting the
* build, or failing it in response to task failures.
*/ final class bgso10 extends dcgy11{private $mikj12;private $ffcu13;private $nisk14=array();private $enme15=array();private $lyrd16;public function yhnj0($ywtt17){$this->$wazf18=$ywtt17;return $this;}public function frqa1(){return $this->$wazf18;}public function vyof2(HarbormasterBuildTarget $mcyb19){$this->$rfys1a[]=$mcyb19;return $this;}public function oomj3(){return $this->$rfys1a;}public function yayu4(PhabricatorUser $ffcu13){$this->$vnig1b=$ffcu13;return $this;}public function iizy5(){return $this->$vnig1b;}public function edei6(HarbormasterBuild $mikj12){$this->$uxoa1c=$mikj12;return $this;}public function zbxv7(){return $this->$uxoa1c;}public function xatu8(){$ffcu13=$this->iizy5();$mikj12=$this->zbxv7();$pokc1d=base64_decode('aGFyYm9ybWFzdGVyLmJ1aWxkOg==').$mikj12->tydz1e();$xita1f=PhabricatorGlobalLock::wxlj20($pokc1d)->ytqn21(15);$mikj12->ccsf22();$ugxi23=$mikj12->xgyk24();try{$this->oham9($mikj12);}catch(Exception $agwn25){$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_ERROR);$mikj12->qjsa27();$xita1f->dlqe28();$mikj12->qmtz29($ffcu13);throw $agwn25;}$xita1f->dlqe28();foreach($this->oomj3()as $mcyb19){$jpxf2a=PhabricatorWorker::yalb2b(base64_decode('SGFyYm9ybWFzdGVyVGFyZ2V0V29ya2Vy'),array(base64_decode('dGFyZ2V0SUQ=')=>$mcyb19->tydz1e(),),array(base64_decode('b2JqZWN0UEhJRA==')=>$mcyb19->cdqq2c(),));}$wgrx2d=$mikj12->xgyk24();if($wgrx2d!=$ugxi23||$this->frqa1()){$this->lvyhd($mikj12->esox2e());}$this->jagef();if(!$mikj12->hqti2f()){$mikj12->qmtz29($ffcu13);}}private function oham9(HarbormasterBuild $mikj12){$ffcu13=$this->iizy5();$yscj30=PhabricatorContentSource::ijkn31(PhabricatorDaemonContentSource::SOURCECONST);$yjhv32=$ffcu13->cdqq2c();if(!$yjhv32){$yjhv32=giwv33(new hrxt34())->cdqq2c();}$wedb35=$mikj12->jqkn36()->nivk37($ffcu13)->edew38($yjhv32)->ukow39($yscj30)->ilcc3a(true)->mnga3b(true);$ipxw3c=array();$wlmx3d=$mikj12->spsp3e();foreach($wlmx3d as $egll3f){$xdlv40=$egll3f->iadl41();$vigl42=HarbormasterBuildMessageTransaction::pmsb43($xdlv40);if(!$vigl42){continue;}$ipxw3c[]=$mikj12->qayg44()->xbcc45($egll3f->ydri46())->kdge47($vigl42)->jqea48($xdlv40);}if(!$ipxw3c){if($mikj12->wvgx49()){$mikj12->dvdd4a($ffcu13);$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_BUILDING);$mikj12->qjsa27();}}if($ipxw3c){$wedb35->ffdq4b($mikj12,$ipxw3c);$mikj12->hxcw4c();}if($mikj12->xgyk24()==HarbormasterBuildStatus::STATUS_BUILDING){$this->nhqia($mikj12);}}private function nhqia(HarbormasterBuild $mikj12){$yvha4d=giwv33(new jquz4e())->yayu4($this->iizy5())->rsoj4f(array($mikj12->cdqq2c()))->zltm50(array($mikj12->mswb51()))->izyg52();$this->tntcc($yvha4d);$llox53=eihm54($yvha4d,base64_decode('Z2V0QnVpbGRTdGVwUEhJRA=='));$llqb55=giwv33(new lfgu56())->yayu4($this->iizy5())->vgqb57(array($mikj12->namz58()->cdqq2c()))->izyg52();$llqb55=obya59($llqb55,null,base64_decode('Z2V0UEhJRA=='));$ysha5a=array();$eimg5b=array();$xzoi5c=array();$phlz5d=array();$owzd5e=array();foreach($llqb55 as $havz5f){$rytw60=jywq61($llox53,$havz5f->cdqq2c(),array());if($rytw60){$xnus62=false;$moza63=false;foreach($rytw60 as $mcyb19){if($mcyb19->tayz64()){$moza63=true;break;}}$nrpl65=false;foreach($rytw60 as $mcyb19){if($mcyb19->tkfb66()){$nrpl65=true;break;}}$fkpj67=true;foreach($rytw60 as $mcyb19){if(!$mcyb19->sjho68()){$fkpj67=false;break;}}$bwto69=false;foreach($rytw60 as $mcyb19){if($mcyb19->fflx6a()){$bwto69=true;break;}}}else{$xnus62=true;$moza63=false;$nrpl65=false;$fkpj67=false;$bwto69=false;}if($xnus62){$ysha5a[$havz5f->cdqq2c()]=true;}if($moza63){$eimg5b[$havz5f->cdqq2c()]=true;}if($nrpl65){$xzoi5c[$havz5f->cdqq2c()]=true;}if($fkpj67){$phlz5d[$havz5f->cdqq2c()]=true;}if($bwto69){$owzd5e[$havz5f->cdqq2c()]=true;}}if(count($owzd5e)){$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_FAILED);$mikj12->qjsa27();return;}if(count($phlz5d)==count($llqb55)){$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_PASSED);$mikj12->qjsa27();return;}$htwm6b=array_keys($ysha5a+$xzoi5c+$eimg5b);$pqtv6c=mavy6d($llqb55,$htwm6b);$this->pirkb($yvha4d,$pqtv6c);$jxii6e=array();foreach($llqb55 as $havz5f){$fzzr6f=$havz5f->ddyz70()->qfxy71($havz5f);if(isset($ysha5a[$havz5f->cdqq2c()])){$deyk72=true;foreach($fzzr6f as $ygoc73){if(empty($phlz5d[$ygoc73])){$deyk72=false;break;}}if($deyk72){$jxii6e[]=$havz5f;}}}if(!$jxii6e&&!$xzoi5c&&!$eimg5b){$mikj12->hdjh26(HarbormasterBuildStatus::STATUS_DEADLOCKED);$mikj12->qjsa27();return;}foreach($jxii6e as $caud74){$mcyb19=HarbormasterBuildTarget::wory75($mikj12,$caud74,$mikj12->mkgl76());$mcyb19->qjsa27();$this->vyof2($mcyb19);}}/**
* Release any artifacts which aren't used by any running or waiting steps.
*
* This releases artifacts as soon as they're no longer used. This can be
* particularly relevant when a build uses multiple hosts since it returns
* hosts to the pool more quickly.
*
* @param list<HarbormasterBuildTarget> Targets in the build.
* @param list<HarbormasterBuildStep> List of running and waiting steps.
* @return void
*/ private function pirkb(array$llox53,array$llqb55){wmwe77($llox53,base64_decode('SGFyYm9ybWFzdGVyQnVpbGRUYXJnZXQ='));wmwe77($llqb55,base64_decode('SGFyYm9ybWFzdGVyQnVpbGRTdGVw'));if(!$llox53||!$llqb55){return;}$yqav78=obya59($llox53,base64_decode('Z2V0UEhJRA=='));$hdcu79=giwv33(new hfjp7a())->yayu4($this->iizy5())->zokg7b($yqav78)->cpnb7c(false)->izyg52();if(!$hdcu79){return;}$tykt7d=array();foreach($llqb55 as $havz5f){$buhg7e=$havz5f->ddyz70()->bzyr7f();foreach($buhg7e as $lboz80){$ajgj81=$lboz80[base64_decode('a2V5')];$tykt7d[$ajgj81]=true;}}foreach($hdcu79 as $xybp82){$ncdc83=$xybp82->bfky84();if(isset($tykt7d[$ncdc83])){continue;}$this->$bcqc85[]=$xybp82;}}/**
* Process messages which were sent to these targets, kicking applicable
* targets out of "Waiting" and into either "Passed" or "Failed".
*
* @param list<HarbormasterBuildTarget> List of targets to process.
* @return void
*/ private function tntcc(array$llox53){wmwe77($llox53,base64_decode('SGFyYm9ybWFzdGVyQnVpbGRUYXJnZXQ='));$igkt86=array();foreach($llox53 as $mcyb19){if($mcyb19->tkfb66()){$igkt86[$mcyb19->cdqq2c()]=$mcyb19;}}if(!$igkt86){return;}$wlmx3d=giwv33(new dyoe87())->yayu4($this->iizy5())->wzyo88(array_keys($igkt86))->auuz89(false)->izyg52();foreach($wlmx3d as $egll3f){$mcyb19=$igkt86[$egll3f->jfvc8a()];switch($egll3f->iadl41()){case HarbormasterMessageType::MESSAGE_PASS:$wgrx2d=HarbormasterBuildTarget::STATUS_PASSED;break;case HarbormasterMessageType::MESSAGE_FAIL:$wgrx2d=HarbormasterBuildTarget::STATUS_FAILED;break;case HarbormasterMessageType::MESSAGE_WORK:default:$wgrx2d=null;break;}if($wgrx2d!==null){$egll3f->qlxx8b(true);$egll3f->qjsa27();$mcyb19->muxc8c($wgrx2d);if($mcyb19->sjho68()){$mcyb19->aais8d(PhabricatorTime::dabe8e());}$mcyb19->qjsa27();}}}/**
* Update the overall status of the buildable this build is attached to.
*
* After a build changes state (for example, passes or fails) it may affect
* the overall state of the associated buildable. Compute the new aggregate
* state and save it on the buildable.
*
* @param HarbormasterBuild The buildable to update.
* @return void
*/ public function lvyhd(HarbormasterBuildable $wwlc8f){$ffcu13=$this->iizy5();$pokc1d=base64_decode('aGFyYm9ybWFzdGVyLmJ1aWxkYWJsZTo=').$wwlc8f->tydz1e();$xita1f=PhabricatorGlobalLock::wxlj20($pokc1d)->ytqn21(15);$wwlc8f=giwv33(new czdb90())->yayu4($ffcu13)->oqny91(array($wwlc8f->tydz1e()))->jgjj92(true)->hgql93();$wlmx3d=giwv33(new dyoe87())->yayu4($ffcu13)->wzyo88(array($wwlc8f->cdqq2c()))->auuz89(false)->izyg52();$rhbx94=false;$ksae95=false;foreach($wlmx3d as $egll3f){switch($egll3f->iadl41()){case HarbormasterMessageType::BUILDABLE_BUILD:$rhbx94=true;break;case HarbormasterMessageType::BUILDABLE_CONTAINER:$ksae95=true;break;default:break;}$egll3f->qlxx8b(true)->qjsa27();}if($rhbx94){if($wwlc8f->hqdb96()){$wwlc8f->jesj97(HarbormasterBuildableStatus::STATUS_BUILDING)->qjsa27();}}if($ksae95){$igug98=giwv33(new lsqc99())->yayu4($ffcu13)->stxy9a(array($wwlc8f->znry9b()))->hgql93();if($igug98){$wwlc8f->ifck9c($igug98->ymzt9d())->qjsa27();}}$vhjf9e=clone $wwlc8f;if(!$wwlc8f->hqdb96()){$yhdj9f=HarbormasterBuildPlanBehavior::BEHAVIOR_BUILDABLE;$djuga0=HarbormasterBuildPlanBehavior::xlvta1($yhdj9f);$rbrza2=HarbormasterBuildPlanBehavior::BUILDABLE_NEVER;$jkcga3=HarbormasterBuildPlanBehavior::BUILDABLE_IF_BUILDING;$fofpa4=true;$sgufa5=false;foreach($wwlc8f->clila6()as $mikj12){$ybhaa7=$mikj12->namz58();$ssjfa8=$djuga0->hdixa9($ybhaa7);$jzncaa=$ssjfa8->pauwab();$frzeac=($jzncaa===$rbrza2);$bjjead=($jzncaa===$jkcga3);if($frzeac){continue;}if($bjjead&&$mikj12->sjho68()){continue;}if(!$mikj12->gzhtae()){$fofpa4=false;}if($mikj12->sjho68()&&!$mikj12->gzhtae()){$sgufa5=true;}}if($sgufa5){$wgrx2d=HarbormasterBuildableStatus::STATUS_FAILED;}else if($fofpa4){$wgrx2d=HarbormasterBuildableStatus::STATUS_PASSED;}else{$wgrx2d=HarbormasterBuildableStatus::STATUS_BUILDING;}$acuvaf=($vhjf9e->evbtb0()!==$wgrx2d);if($acuvaf){$wwlc8f->jesj97($wgrx2d);$wwlc8f->qjsa27();}}$xita1f->dlqe28();if($wwlc8f->hqdb96()){return;}$this->gevme($vhjf9e,$wwlc8f);}public function gevme(HarbormasterBuildable $vhjf9e,HarbormasterBuildable $dqozb1){$ffcu13=$this->iizy5();$igug98=giwv33(new lsqc99())->yayu4($ffcu13)->stxy9a(array($dqozb1->znry9b()))->hgql93();if(!$igug98){return;}$wwvvb2=HarbormasterBuildableEngine::ioyfb3($igug98,$ffcu13);$pivvb4=PhabricatorContentSource::ijkn31(PhabricatorDaemonContentSource::SOURCECONST);$edijb5=giwv33(new hrxt34())->cdqq2c();$wwvvb2->edew38($edijb5)->ukow39($pivvb4)->gevme($vhjf9e,$dqozb1);}private function jagef(){foreach($this->$bcqc85 as $ncdc83=>$xybp82){$xybp82->fnzob6();unset($this->$bcqc85[$ncdc83]);}}}?>
Function Calls
| None |
Stats
| MD5 | bc6b8d36895995573e4b41ac9b13cc09 |
| Eval Count | 0 |
| Decode Time | 113 ms |