Skip to content

Commit 38e7308

Browse files
committed
Fixing few typos.
1 parent fd0a060 commit 38e7308

24 files changed

+39
-41
lines changed

app/V1Module/router/RouterFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function createRouter()
3838
$router[] = self::createAssignmentsRoutes("$prefix/exercise-assignments");
3939
$router[] = self::createGroupsRoutes("$prefix/groups");
4040
$router[] = self::createGroupInvitationsRoutes("$prefix/group-invitations");
41-
$router[] = self::createGroupAtrributesRoutes("$prefix/group-attributes");
41+
$router[] = self::createGroupAttributesRoutes("$prefix/group-attributes");
4242
$router[] = self::createInstancesRoutes("$prefix/instances");
4343
$router[] = self::createReferenceSolutionsRoutes("$prefix/reference-solutions");
4444
$router[] = self::createAssignmentSolutionsRoutes("$prefix/assignment-solutions");
@@ -306,7 +306,7 @@ private static function createGroupInvitationsRoutes(string $prefix): RouteList
306306
* @param string $prefix Route prefix
307307
* @return RouteList All endpoint routes
308308
*/
309-
private static function createGroupAtrributesRoutes(string $prefix): RouteList
309+
private static function createGroupAttributesRoutes(string $prefix): RouteList
310310
{
311311
$router = new RouteList();
312312

app/model/entity/Exercise.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
class Exercise implements IExercise
2121
{
2222
use ExerciseData;
23-
use CreateableEntity;
24-
use UpdateableEntity;
25-
use DeleteableEntity;
23+
use CreatableEntity;
24+
use UpdatableEntity;
25+
use DeletableEntity;
2626
use VersionableEntity;
2727

2828
/**

app/model/entity/ExerciseScoreConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class ExerciseScoreConfig implements JsonSerializable
1515
{
16-
use CreateableEntity;
16+
use CreatableEntity;
1717

1818
/**
1919
* @ORM\Id

app/model/entity/ExerciseTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class ExerciseTag
1212
{
13-
use CreateableEntity;
13+
use CreatableEntity;
1414

1515
/**
1616
* @ORM\Id

app/model/entity/ExerciseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*/
1313
class ExerciseTest implements JsonSerializable
1414
{
15-
use CreateableEntity;
16-
use UpdateableEntity;
15+
use CreatableEntity;
16+
use UpdatableEntity;
1717

1818
/**
1919
* @ORM\Id

app/model/entity/Group.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class Group
2626
{
27-
use DeleteableEntity;
27+
use DeletableEntity;
2828

2929
public function __construct(
3030
string $externalId,
@@ -227,7 +227,7 @@ public function isDirectlyArchived(): bool
227227
*/
228228
protected $isExam = false;
229229

230-
/**
230+
/**
231231
* @ORM\Column(type="datetime", nullable=true)
232232
* When an exam in this groups begins. In the exam period, a user must lock in a group to be allowed
233233
* submitting solutions. This is completely independent of the isExam flag.
@@ -632,7 +632,7 @@ private function getAdminIdsInternal(bool $inherited): array
632632
$admins = []; // key is user ID, value is true
633633
while ($group !== null) {
634634
// getMembershipsInternal inherited flag goes: true = only inherited, false = only direct, null = all
635-
$directAdmins = $group->getMembershipsInternal([ GroupMembership::TYPE_ADMIN ], $inherited ? null : false);
635+
$directAdmins = $group->getMembershipsInternal([GroupMembership::TYPE_ADMIN], $inherited ? null : false);
636636
foreach ($directAdmins as $membership) {
637637
$admins[$membership->getUser()->getId()] = true;
638638
}

app/model/entity/GroupExamLock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class GroupExamLock implements JsonSerializable
1616
{
17-
use CreateableEntity;
17+
use CreatableEntity;
1818

1919
/**
2020
* @ORM\Id

app/model/entity/GroupExternalAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
class GroupExternalAttribute implements JsonSerializable
1717
{
18-
use CreateableEntity;
18+
use CreatableEntity;
1919

2020
/**
2121
* @ORM\Id

app/model/entity/GroupInvitation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
class GroupInvitation implements JsonSerializable
1414
{
15-
use CreateableEntity;
15+
use CreatableEntity;
1616

1717
/**
1818
* @ORM\Id
@@ -23,7 +23,7 @@ class GroupInvitation implements JsonSerializable
2323
*/
2424
protected $id;
2525

26-
/**
26+
/**
2727
* @ORM\Column(type="datetime", nullable=true)
2828
* @var DateTime
2929
*/

app/model/entity/Instance.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
*/
1515
class Instance
1616
{
17-
use UpdateableEntity;
18-
use DeleteableEntity;
19-
use CreateableEntity;
17+
use UpdatableEntity;
18+
use DeletableEntity;
19+
use CreatableEntity;
2020

2121
/**
2222
* @ORM\Id

0 commit comments

Comments
 (0)