Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
freefcw authored and StyleCIBot committed Jan 17, 2018
1 parent 94ad2ae commit f544807
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/Services/ContestService.php
Expand Up @@ -24,6 +24,7 @@ public function getContest($id)
{
return $this->repository->findOrFail($id);
}

/**
* ContestService constructor.
*/
Expand Down
5 changes: 2 additions & 3 deletions app/Support/helpers.php
Expand Up @@ -6,7 +6,6 @@
use App\Entities\User;
use App\Services\ContestService;
use Carbon\Carbon;
use Carbon\CarbonInterval;
use Illuminate\Database\Eloquent\Collection;

if (!function_exists('get_option')) {
Expand Down Expand Up @@ -60,9 +59,9 @@ function show_ratio($number, $total)
if (!function_exists('display_penalize_time')) {
function display_penalize_time($seconds)
{
$hour = (int)($seconds / (Carbon::SECONDS_PER_MINUTE * Carbon::MINUTES_PER_HOUR));
$hour = (int) ($seconds / (Carbon::SECONDS_PER_MINUTE * Carbon::MINUTES_PER_HOUR));
$seconds -= $hour * Carbon::SECONDS_PER_MINUTE * Carbon::MINUTES_PER_HOUR;
$minute = (int)($seconds / Carbon::SECONDS_PER_MINUTE);
$minute = (int) ($seconds / Carbon::SECONDS_PER_MINUTE);
$leftSeconds = $seconds % Carbon::SECONDS_PER_MINUTE;

return sprintf('%d:%02d:%02d', $hour, $minute, $leftSeconds);
Expand Down

0 comments on commit f544807

Please sign in to comment.