Code cleanup.

This commit is contained in:
James Cole
2016-04-28 05:50:29 +02:00
parent 2d368f226e
commit 19d7e27fa9
13 changed files with 42 additions and 71 deletions

View File

@@ -86,13 +86,13 @@ class EventServiceProvider extends ServiceProvider
} catch (QueryException $e) {
Log::error('Trying to save new LimitRepetition failed: ' . $e->getMessage());
}
} else {
if ($set->count() == 1) {
$repetition = $set->first();
$repetition->amount = $budgetLimit->amount;
$repetition->save();
}
if ($set->count() == 1) {
$repetition = $set->first();
$repetition->amount = $budgetLimit->amount;
$repetition->save();
}
}
}
);