fix gitlab tests
This commit is contained in:
@@ -53,7 +53,7 @@ class ClassController extends BaseApiController
|
||||
|
||||
$section = $this->queryService->find((int) $classSection->id);
|
||||
|
||||
if (! $section) {
|
||||
if (!$section) {
|
||||
return $this->error('Class section not found.', Response::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ class ClassController extends BaseApiController
|
||||
{
|
||||
$this->authorize('delete', $classSection);
|
||||
|
||||
if (! $this->commandService->delete($classSection)) {
|
||||
if (!$this->commandService->delete($classSection)) {
|
||||
return $this->error('Class section not found.', Response::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
@@ -125,8 +125,7 @@ class ClassController extends BaseApiController
|
||||
try {
|
||||
$created = $this->seedService->seedDefaults();
|
||||
} catch (\Throwable $e) {
|
||||
Log::error('Seeding default classes failed: '.$e->getMessage());
|
||||
|
||||
Log::error('Seeding default classes failed: ' . $e->getMessage());
|
||||
return $this->error('Unable to seed default classes.', Response::HTTP_INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user