Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved Code Checker Errors. #8

Open
wants to merge 2 commits into
base: MOODLE_401_STABLE
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions classes/local/RecipeEmitter/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

namespace logstore_caliper\local\RecipeEmitter;

use \IMSGlobal\Caliper\entities\agent;
use \IMSGlobal\Caliper\entities\session;
use \IMSGlobal\Caliper\entities\lis;
use IMSGlobal\Caliper\entities\agent;
use IMSGlobal\Caliper\entities\session;
use IMSGlobal\Caliper\entities\lis;


/**
Expand Down
8 changes: 4 additions & 4 deletions classes/local/RecipeEmitter/Events/AssignmentGraded.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\entities\agent;
use \IMSGlobal\Caliper\events;
use \IMSGlobal\Caliper\entities\assignable;
use \IMSGlobal\Caliper\entities\outcome;
use IMSGlobal\Caliper\entities\agent;
use IMSGlobal\Caliper\events;
use IMSGlobal\Caliper\entities\assignable;
use IMSGlobal\Caliper\entities\outcome;

/**
* This file contains the class representing a Assignment Graded event
Expand Down
8 changes: 4 additions & 4 deletions classes/local/RecipeEmitter/Events/AssignmentSubmitted.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\entities\agent;
use \IMSGlobal\Caliper\events;
use \IMSGlobal\Caliper\entities\assignable;
use \IMSGlobal\Caliper\actions;
use IMSGlobal\Caliper\entities\agent;
use IMSGlobal\Caliper\events;
use IMSGlobal\Caliper\entities\assignable;
use IMSGlobal\Caliper\actions;

/**
* This file contains the class representing an Assignment Submitted event
Expand Down
10 changes: 5 additions & 5 deletions classes/local/RecipeEmitter/Events/AttemptCompleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\entities\agent;
use \IMSGlobal\Caliper\events;
use \IMSGlobal\Caliper\entities\assignable;
use \IMSGlobal\Caliper\entities\assessment;
use \IMSGlobal\Caliper\actions;
use IMSGlobal\Caliper\entities\agent;
use IMSGlobal\Caliper\events;
use IMSGlobal\Caliper\entities\assignable;
use IMSGlobal\Caliper\entities\assessment;
use IMSGlobal\Caliper\actions;

/**
* This file contains the class representing an Attempt Completed event
Expand Down
10 changes: 5 additions & 5 deletions classes/local/RecipeEmitter/Events/AttemptStarted.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\entities\agent;
use \IMSGlobal\Caliper\events;
use \IMSGlobal\Caliper\entities\assignable;
use \IMSGlobal\Caliper\entities\assessment;
use \IMSGlobal\Caliper\actions;
use IMSGlobal\Caliper\entities\agent;
use IMSGlobal\Caliper\events;
use IMSGlobal\Caliper\entities\assignable;
use IMSGlobal\Caliper\entities\assessment;
use IMSGlobal\Caliper\actions;

/**
* This file contains the class representing an Assessment Started event
Expand Down
4 changes: 2 additions & 2 deletions classes/local/RecipeEmitter/Events/CourseViewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\entities\lis;
use \IMSGlobal\Caliper\events;
use IMSGlobal\Caliper\entities\lis;
use IMSGlobal\Caliper\events;

/**
* This file contains the class representing a Course Viewed event
Expand Down
2 changes: 1 addition & 1 deletion classes/local/RecipeEmitter/Events/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\events;
use IMSGlobal\Caliper\events;

/**
* This file contains the class representing a generic event
Expand Down
4 changes: 2 additions & 2 deletions classes/local/RecipeEmitter/Events/ModuleType.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\util;
use \IMSGlobal\Caliper\entities;
use IMSGlobal\Caliper\util;
use IMSGlobal\Caliper\entities;

/**
* This file contains the class representing a Module Type event
Expand Down
2 changes: 1 addition & 1 deletion classes/local/RecipeEmitter/Events/ModuleViewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\entities;
use IMSGlobal\Caliper\entities;

/**
* This file contains the class representing a Module Viewed event
Expand Down
6 changes: 3 additions & 3 deletions classes/local/RecipeEmitter/Events/UserLoggedin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\events;
use \IMSGlobal\Caliper\actions;
use \IMSGlobal\Caliper\entities\agent;
use IMSGlobal\Caliper\events;
use IMSGlobal\Caliper\actions;
use IMSGlobal\Caliper\entities\agent;

/**
* This file contains the class representing a User Logged In event
Expand Down
6 changes: 3 additions & 3 deletions classes/local/RecipeEmitter/Events/UserLoggedout.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\events;
use \IMSGlobal\Caliper\actions;
use \IMSGlobal\Caliper\entities\agent;
use IMSGlobal\Caliper\events;
use IMSGlobal\Caliper\actions;
use IMSGlobal\Caliper\entities\agent;

/**
* This file contains User Logged Out event
Expand Down
2 changes: 1 addition & 1 deletion classes/local/RecipeEmitter/Events/Viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace logstore_caliper\local\RecipeEmitter\Events;

use \IMSGlobal\Caliper\events;
use IMSGlobal\Caliper\events;

/**
* This file contains the abstract class representing a Viewed event
Expand Down
2 changes: 1 addition & 1 deletion classes/local/Translator/Events/AssignmentGraded.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function read(array $expandedevent) {
'graded_user_name' => "{$expandedevent['graded_user']->firstname} {$expandedevent['graded_user']->lastname}",
'result_id' => "{$expandedevent['module']->url}/user/{$expandedevent['user']->id}" .
"/attempt/{$expandedevent['grade']->attemptnumber}/result",
'grade' => $expandedevent['grade']->grade
'grade' => $expandedevent['grade']->grade,

]);
}
Expand Down
4 changes: 2 additions & 2 deletions classes/local/Translator/Events/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace logstore_caliper\local\Translator\Events;

use \IMSGlobal\Caliper\entities\lis;
use IMSGlobal\Caliper\entities\lis;

/**
* This file contains the class representing a generic Moodle event.
Expand Down Expand Up @@ -65,7 +65,7 @@ public function read(array $expandedevent) {
'course_number' => $expandedevent['course']->idnumber,
'course_name' => $expandedevent['course']->fullname ?: 'A Moodle course',
'course_description' => $expandedevent['course']->summary ?: 'A Moodle course',
'roles' => $lisroles
'roles' => $lisroles,
];
}
}
10 changes: 5 additions & 5 deletions classes/log/store.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@

require_once(__DIR__ . '/../../vendor/autoload.php');

use \LogExpander;
use \logstore_caliper\local\Translator;
use \logstore_caliper\local\RecipeEmitter;
use LogExpander;
use logstore_caliper\local\Translator;
use logstore_caliper\local\RecipeEmitter;

use \IMSGlobal\Caliper;
use \IMSGlobal\Caliper\entities\lis;
use IMSGlobal\Caliper;
use IMSGlobal\Caliper\entities\lis;
use logstore_caliper\log_expander_controller;

/**
Expand Down
2 changes: 1 addition & 1 deletion db/tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
'hour' => '*',
'day' => '*',
'dayofweek' => '*',
'month' => '*'
'month' => '*',
),
);