More code updates

This commit is contained in:
Dane Everitt
2017-10-07 17:21:41 -05:00
parent cc297eea09
commit 17642bffe7
32 changed files with 209 additions and 2863 deletions

View File

@@ -140,8 +140,9 @@ class ServerRepository extends EloquentRepository implements ServerRepositoryInt
*/
public function getDaemonServiceData($id)
{
$instance = $this->getBuilder()->with('egg.nest', 'pack')->find($id, $this->getColumns());
Assert::integerish($id, 'First argument passed to getDaemonServiceData must be integer, received %s.');
$instance = $this->getBuilder()->with('egg.nest', 'pack')->find($id, $this->getColumns());
if (! $instance) {
throw new RecordNotFoundException();
}