| @@ -64,7 +64,7 @@ discard block | ||
| 64 | 64 | // | 
| 65 | 65 |  function get_platform($user_agent) { | 
| 66 | 66 |      if (strstr($user_agent, 'Windows')) { | 
| 67 | -        if (strstr($user_agent, 'Win64')||strstr($user_agent, 'WOW64')) { | |
| 67 | +        if (strstr($user_agent, 'Win64') || strstr($user_agent, 'WOW64')) { | |
| 68 | 68 | return 'windows_x86_64'; | 
| 69 | 69 |          } else { | 
| 70 | 70 | return 'windows_intelx86'; | 
| @@ -138,7 +138,7 @@ discard block | ||
| 138 | 138 | $token, | 
| 139 | 139 | $user->id, | 
| 140 | 140 | (string)$v->filename, | 
| 141 | - $green?"btn-success":"btn-info", | |
| 141 | + $green ? "btn-success" : "btn-info", | |
| 142 | 142 | (string)$v->platform, | 
| 143 | 143 | (string)$v->size_mb, | 
| 144 | 144 | (string)$v->version_num | 
| @@ -147,7 +147,7 @@ discard block | ||
| 147 | 147 | |
| 148 | 148 |  function download_button_vbox($v, $project_id, $token, $user) { | 
| 149 | 149 | // if no vbox version exists for platform, don't show vbox button | 
| 150 | -    if(!$v->vbox_filename) { | |
| 150 | +    if (!$v->vbox_filename) { | |
| 151 | 151 | return; | 
| 152 | 152 | } | 
| 153 | 153 | return sprintf( | 
| @@ -436,7 +436,7 @@ discard block | ||
| 436 | 436 | handle_get_info(); | 
| 437 | 437 |  } else { | 
| 438 | 438 |      $dev = get_str("dev", true); | 
| 439 | -    $user_agent = get_str("user_agent", true);      // for debugging | |
| 439 | +    $user_agent = get_str("user_agent", true); // for debugging | |
| 440 | 440 |      if (!$user_agent) { | 
| 441 | 441 | $user_agent = $_SERVER['HTTP_USER_AGENT']; | 
| 442 | 442 | } | 
| @@ -136,7 +136,7 @@ discard block | ||
| 136 | 136 | // Adapt to your web site. The following assumes Bootstrap. | 
| 137 | 137 | // | 
| 138 | 138 |      function show_download_button($info, $is_vbox) { | 
| 139 | - $desc = $is_vbox?$info->boinc_vbox:$info->boinc; | |
| 139 | + $desc = $is_vbox ? $info->boinc_vbox : $info->boinc; | |
| 140 | 140 |          echo sprintf(' | 
| 141 | 141 | <form action="https://boinc.berkeley.edu/concierge.php" method="post"> | 
| 142 | 142 | <input type=hidden name=project_id value="%d"> | 
| @@ -150,7 +150,7 @@ discard block | ||
| 150 | 150 | (string)$info->token, | 
| 151 | 151 | (int)$info->user_id, | 
| 152 | 152 | (string)$desc->filename, | 
| 153 | - $is_vbox?" + VirtualBox":"", | |
| 153 | + $is_vbox ? " + VirtualBox" : "", | |
| 154 | 154 | (string)$info->platform, | 
| 155 | 155 | (string)$desc->size_mb | 
| 156 | 156 | ); |