mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
Merge branch 'MDL-65292' of https://github.com/stronk7/moodle
This commit is contained in:
commit
3278ce7aba
1147 changed files with 2621 additions and 2617 deletions
|
@ -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;
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue