This commit is contained in:
Jun Pataleta 2024-03-08 08:00:41 +08:00
commit 3278ce7aba
No known key found for this signature in database
GPG key ID: F83510526D99E2C7
1147 changed files with 2621 additions and 2617 deletions

View file

@ -111,7 +111,7 @@ class number extends base {
* @param array $values
* @return array array of two elements - SQL query and named parameters
*/
public function get_sql_filter(array $values) : array {
public function get_sql_filter(array $values): array {
$operator = (int) ($values["{$this->name}_operator"] ?? self::ANY_VALUE);
$value1 = $values["{$this->name}_value1"] ?? null;

View file

@ -61,7 +61,7 @@ class text extends base {
*
* @return array of comparison operators
*/
private function get_operators() : array {
private function get_operators(): array {
$operators = [
self::ANY_VALUE => get_string('filterisanyvalue', 'core_reportbuilder'),
self::CONTAINS => get_string('filtercontains', 'core_reportbuilder'),

View file

@ -406,7 +406,7 @@ class report {
*
* @deprecated since Moodle 4.1 - please do not use this function any more, {@see custom_report_column_cards_exporter}
*/
public static function get_available_columns(report_model $persistent) : array {
public static function get_available_columns(report_model $persistent): array {
debugging('The function ' . __FUNCTION__ . '() is deprecated, please do not use it any more. ' .
'See \'custom_report_column_cards_exporter\' class for replacement', DEBUG_DEVELOPER);

View file

@ -43,7 +43,7 @@ class audience extends persistent {
*
* @return array
*/
protected static function define_properties() : array {
protected static function define_properties(): array {
return [
'reportid' => [
'type' => PARAM_INT,

View file

@ -78,7 +78,7 @@ class schedule extends persistent {
*
* @return array
*/
protected static function define_properties() : array {
protected static function define_properties(): array {
return [
'reportid' => [
'type' => PARAM_INT,

View file

@ -52,7 +52,7 @@ class user_test extends advanced_testcase {
/**
* Test getting all user identity columns
*/
public function test_get_identity_columns() : void {
public function test_get_identity_columns(): void {
$this->resetAfterTest();
$this->setAdminUser();
@ -99,7 +99,7 @@ class user_test extends advanced_testcase {
/**
* Test getting all user identity filters
*/
public function test_get_identity_filters() : void {
public function test_get_identity_filters(): void {
$this->resetAfterTest();
$this->setAdminUser();