| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 18 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 17 | public function compose(View $view)  | 
            ||
| 18 |     { | 
            ||
| 19 | $confirm_url = '';  | 
            ||
| 20 | $profile_url = '';  | 
            ||
| 21 |         if (WhichPortal::isApplicantPortal()) { | 
            ||
| 22 |             $confirm_url = route('two_factor.confirm'); | 
            ||
| 23 |             $profile_url = route('settings.edit'); | 
            ||
| 24 |         } elseif (WhichPortal::isManagerPortal()) { | 
            ||
| 25 |             $confirm_url = route('manager.two_factor.confirm'); | 
            ||
| 26 |             $profile_url = route('manager.settings.edit'); | 
            ||
| 27 |         } elseif (WhichPortal::isAdminPortal()) { | 
            ||
| 28 |             $confirm_url = route('admin.two_factor.confirm'); | 
            ||
| 29 |             $profile_url = backpack_url('2fa'); | 
            ||
| 30 | }  | 
            ||
| 31 |         $view->with('two_factor', Lang::get('two_factor')) | 
            ||
| 32 |             ->with('otp', Lang::get('one_time_password')) | 
            ||
| 33 |             ->with('confirm_url', $confirm_url) | 
            ||
| 34 |             ->with('profile_url', $profile_url); | 
            ||
| 35 | }  | 
            ||
| 37 |