Concentrated issues

Here is the list of the lines that generated the most issues.

File Count Analysis
None:7819
  •   No Null For Index
  •   Written Only Variables
  •   Unused Global
  •   Used Once Variables (In Scope)
  •   Parent, Static Or Self Outside Class
  •   Unused Enumeration Case
None:27517
  •   Written Only Variables
  •   Unused Global
  •   Used Once Variables (In Scope)
  •   Parent, Static Or Self Outside Class
  •   Used Once Variables
  •   Undefined Classes
/mod/lesson/classes/external.php:46615
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:105115
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:119515
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:148015
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:160915
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lti/classes/output/course_tools_page_header.php:3814
  •   Use Named Boolean In Argument Definition
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Assign Default To Properties
  •   Used Once Variables (In Scope)
  •   Unfinished Object
/mod/subsection/lib.php:17914
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Empty Function
None:9714
  •   No Null For Index
  •   Written Only Variables
  •   Undefined Variable
  •   Unused Global
  •   Used Once Variables (In Scope)
  •   Parent, Static Or Self Outside Class
/lib/adodb/adodb.inc.php:135113
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
/lib/evalmath/evalmath.class.php:25013
  •   Wrong Precedence In Expression
  •   Weak Type With Array
  •   Buried Assignation
  •   Uses Default Values
  •   Strict Comparison With Booleans
  •   Logical Should Use Symbolic Operators
/mod/bigbluebuttonbn/classes/local/bigbluebutton/recordings/recording_data.php:17213
  •   Mismatched Type
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Never Called Parameter
/mod/workshop/form/rubric/lib.php:24813
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/blog/lib.php:109312
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Could Inject Parameter
/lib/tcpdf/tcpdf.php:693112
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Too Many Local Variables
  •   Never Called Parameter
/mod/assign/externallib.php:229112
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/assign/externallib.php:297912
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:37112
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:129012
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:194012
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:203412
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/renderer.php:10112
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Use ::Class Operator
  •   Could Make A Function
/mod/quiz/classes/external.php:206412
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/workshop/classes/external.php:41412
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/workshop/form/accumulative/lib.php:20712
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/mod/workshop/form/comments/lib.php:20712
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/mod/workshop/form/numerrors/lib.php:24412
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/badges/lib.php:9011
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Missing Some Returntype
/lib/dml/moodle_database.php:37911
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/navigationlib.php:613611
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   array_key_exists() Works On Arrays
  •   Null Or Boolean Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Indices Are Int Or String
/lib/setuplib.php:14211
  •   Undefined Interfaces
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Unresolved Instanceof
  •   Preprocessable
/mod/book/locallib.php:43411
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Could Inject Parameter
/mod/data/locallib.php:79611
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Could Inject Parameter
/mod/forum/locallib.php:60211
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Could Inject Parameter
/mod/glossary/locallib.php:66111
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Could Inject Parameter
/mod/lesson/tabs.php:5111
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/wiki/locallib.php:176011
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Could Inject Parameter
/admin/search.php:3810
  •   Undefined Properties
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Logical Should Use Symbolic Operators
/admin/settings.php:5710
  •   Undefined Properties
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Logical Should Use Symbolic Operators
/admin/tool/mfa/lib.php:6710
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/calendar/lib.php:214210
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   No Class In Global
  •   Undefined Classes
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/course/renderer.php:34310
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/course/renderer.php:35310
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/customfield/classes/data_controller.php:8610
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Could Inject Parameter
  •   Implicit Nullable Type
/customfield/classes/field_controller.php:8410
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Could Inject Parameter
  •   Implicit Nullable Type
/grade/lib.php:88310
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   No Class In Global
  •   StandaloneType True False Null
  •   No Return Used
  •   Could Inject Parameter
  •   Never Called Parameter
/grade/report/lib.php:94410
  •   Use Named Boolean In Argument Definition
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Method Could Be Static
/lib/adodb/adodb.inc.php:189310
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
/lib/adodb/drivers/adodb-text.inc.php:7310
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Undefined Classes
  •   Forgotten Visibility
  •   Different Argument Counts
/lib/behat/classes/behat_config_util.php:85710
  •   Wrong Type For Native PHP Function
  •   Variable Is Not A Condition
  •   Check JSON
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   @ Operator
  •   Could Make A Function
  •   Preprocessable
/lib/dml/oci_native_moodle_database.php:87810
  •   No Default For Referenced Parameter
  •   Assumptions
  •   Max Level Of Nesting
  •   Class-typed References
  •   No Return Used
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/filelib.php:110710
  •   Assumptions
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Too Many Local Variables
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/filestorage/file_storage.php:17510
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/formslib.php:143110
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Forgotten Visibility
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/lib/moodlelib.php:473610
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/php-css-parser/RuleSet/DeclarationBlock.php:6010
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Merge If Then
  •   Bail Out Early
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Strict Comparison With Booleans
/lib/tcpdf/tcpdf.php:1565110
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Too Many Local Variables
  •   Could Inject Parameter
  •   Never Called Parameter
/mod/lesson/tabs.php:5210
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/quiz/classes/local/access_rule_base.php:7710
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
  •   Unreachable Method
/mod/quiz/report/statistics/statistics_table.php:55510
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Never Called Parameter
/mod/scorm/classes/report.php:4610
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Unreachable Method
/mod/workshop/locallib.php:180310
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/question/bank/editquestion/classes/editquestion_helper.php:7610
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Could Inject Parameter
/question/type/ordering/questiontype.php:31110
  •   Unused Public Methods
  •   Mismatched Type
  •   Avoid Using stdClass
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/repository/googledocs/lib.php:67610
  •   Unused Public Methods
  •   Assumptions
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
/repository/onedrive/lib.php:56410
  •   Unused Public Methods
  •   Assumptions
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
/search/classes/engine.php:40210
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   No Return Used
  •   Never Called Parameter
/admin/tool/customlang/classes/local/mlang/phpparser.php:2409
  •   No Need For Else
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Could Make A Function
  •   Avoid Substr() One
  •   Logical Should Use Symbolic Operators
/admin/tool/dbtransfer/locallib.php:799
  •   Don't Pollute Global Space
  •   Mismatched Type
  •   Undefined Interfaces
  •   No Class In Global
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/admin/tool/mfa/classes/local/factor/object_factor_base.php:2449
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   StandaloneType True False Null
/admin/tool/mfa/factor/totp/extlib/ParagonIE/ConstantTime/Base32.php:429
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Different Argument Counts
/admin/tool/mfa/lib.php:1219
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/admin/tool/usertours/tests/helper_trait.php:329
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
  •   Method Could Be Static
  •   Never Called Parameter
/admin/tool/usertours/tests/helper_trait.php:689
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
  •   Method Could Be Static
  •   Never Called Parameter
/analytics/classes/local/target/base.php:3259
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/analytics/classes/local/target/base.php:3509
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Client.php:21859
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
  •   Could Inject Parameter
/backup/util/xml/parser/tests/parser_test.php:7609
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Written Only Variables
  •   Repeated Regex
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Used Once Variables
  •   Could Make A Function
  •   Preprocessable
/badges/classes/output/external_badge.php:919
  •   Undefined Properties
  •   Should Use Ternary Operator
  •   Return True False
  •   Uses Default Values
  •   Could Make A Function
  •   Else If Versus Elseif
/competency/lib.php:2909
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/course/lib.php:35339
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Could Inject Parameter
/course/renderer.php:2009
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/customfield/classes/category_controller.php:809
  •   Mismatched Type
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Could Inject Parameter
  •   Implicit Nullable Type
/enrol/flatfile/lib.php:1979
  •   Should Use Ternary Operator
  •   strpos() Too Much
  •   Undefined Variable
  •   Uses Default Values
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/enrol/self/lib.php:849
  •   Undefined Properties
  •   Should Use Ternary Operator
  •   Mismatched Type
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/grade/grading/form/lib.php:6849
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Unreachable Method
  •   Method Could Be Static
/grade/report/overview/lib.php:4149
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/group/lib.php:7159
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
  •   Never Called Parameter
/lib/adodb/adodb-active-record.inc.php:6639
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Native Alias Functions Usage
/lib/adodb/adodb-datadict.inc.php:8409
  •   Missing Assignation In Branches
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Else If Versus Elseif
/lib/adodb/adodb-datadict.inc.php:9009
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Forgotten Visibility
  •   Method Could Be Static
/lib/adodb/adodb-perf.inc.php:4249
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
  •   Same Name For Property And Method
/lib/adodb/adodb.inc.php:32669
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
/lib/behat/classes/behat_config_manager.php:2019
  •   Wrong Type For Native PHP Function
  •   Merge If Then
  •   Check JSON
  •   Uses Default Values
  •   Iffectations
  •   @ Operator
  •   Could Make A Function
  •   Preprocessable
/lib/behat/extension/Moodle/BehatExtension/Definition/Cli/AvailableDefinitionsController.php:929
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/lib/classes/context.php:7109
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/classes/hub/api.php:2599
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/classes/message/inbound/private_files_handler.php:769
  •   Unused Public Methods
  •   Mismatch Parameter Name
  •   Avoid Using stdClass
  •   Too Many Local Variables
  •   Undefined Classes
  •   Modified Typed Parameter
  •   Could Inject Parameter
  •   Method Could Be Static
/lib/classes/plugininfo/base.php:4489
  •   Avoid Optional Properties
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Drop Else After Return
  •   Logical Should Use Symbolic Operators
  •   Use === null
/lib/classes/user.php:13039
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
  •   Missing Some Returntype
/lib/datalib.php:3639
  •   Don't Pollute Global Space
  •   Mismatched Type
  •   No Class In Global
  •   Undefined Classes
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/lib/dml/moodle_database.php:23009
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
  •   Never Called Parameter
/lib/enrollib.php:25579
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/enrollib.php:26849
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   StandaloneType True False Null
/lib/enrollib.php:28159
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/enrollib.php:35619
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   StandaloneType True False Null
/lib/filebrowser/file_info.php:2339
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
  •   Never Called Parameter
/lib/grouplib.php:15349
  •   Don't Pollute Global Space
  •   Undefined Interfaces
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Undefined Classes
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
  •   Never Called Parameter
/lib/guzzlehttp/psr7/src/StreamWrapper.php:729
  •   Unused Public Methods
  •   No Default For Referenced Parameter
  •   Useless Referenced Argument
  •   Class-typed References
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/navigationlib.php:44819
  •   Mismatch Parameter Name
  •   Mismatched Type
  •   Undefined Interfaces
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/lib/pear/HTML/QuickForm.php:3019
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Random.php:709
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Unused Parameter
  •   Should Use Local Class
/lib/simplepie/src/IRI.php:8299
  •   Missing Assignation In Branches
  •   Use Positive Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
  •   Should Typecast
/lib/simplepie/src/SimplePie.php:30629
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/tcpdf/include/tcpdf_fonts.php:7169
  •   Non Integer Nor String As Index
  •   Should Use Ternary Operator
  •   Undefined Variable
  •   Indices Are Int Or String
  •   Useless Parenthesis
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/include/tcpdf_fonts.php:11909
  •   Non Integer Nor String As Index
  •   Should Use Ternary Operator
  •   Undefined Variable
  •   Indices Are Int Or String
  •   Useless Parenthesis
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/tcpdf.php:149729
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Too Many Local Variables
  •   No Return Used
  •   Never Called Parameter
/lib/tcpdf/tcpdf.php:240819
  •   Weak Type With Array
  •   Uses Default Values
  •   Useless Parenthesis
  •   Native Alias Functions Usage
  •   Strict Comparison With Booleans
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/tcpdf_autoconfig.php:489
  •   Wrong Type For Native PHP Function
  •   Modernize Empty With Expression
  •   Uses Default Values
  •   Don't Change Incomings
  •   Could Make A Function
  •   Adding Zero
/lib/xhprof/xhprof_html/callgraph.php:339
  •   Missing Include
  •   Uses Default Values
  •   include_once() Usage
  •   No Parenthesis For Language Construct
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
/lib/xhprof/xhprof_html/index.php:359
  •   Missing Include
  •   Uses Default Values
  •   include_once() Usage
  •   No Parenthesis For Language Construct
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
/lib/xhprof/xhprof_html/typeahead.php:259
  •   Missing Include
  •   Uses Default Values
  •   include_once() Usage
  •   No Parenthesis For Language Construct
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
/message/externallib.php:8479
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Should Use Ternary Operator
  •   Iffectations
  •   Else If Versus Elseif
/mod/assign/assignmentplugin.php:1999
  •   Unused Public Methods
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/data/classes/external.php:6089
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/data/lib.php:21069
  •   Undefined Properties
  •   Modernize Empty With Expression
  •   No Need For Else
  •   Use Positive Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Drop Else After Return
  •   Could Make A Function
/mod/feedback/classes/external.php:3219
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/feedback/classes/external.php:3899
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/feedback/classes/external.php:9809
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/feedback/classes/external.php:10469
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/feedback/classes/external.php:13749
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/folder/lib.php:2139
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Could Inject Parameter
  •   Missing Some Returntype
/mod/forum/lib.php:24499
  •   Don't Pollute Global Space
  •   Mismatched Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   StandaloneType True False Null
  •   Could Inject Parameter
/mod/h5pactivity/classes/local/manager.php:4639
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/mod/h5pactivity/lib.php:3419
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
/mod/lesson/report.php:629
  •   Merge If Then
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Logical Should Use Symbolic Operators
/mod/lesson/view.php:1789
  •   Undefined Properties
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/lti/lib.php:4059
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Empty Function
/mod/page/lib.php:2739
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Could Inject Parameter
  •   Missing Some Returntype
/mod/quiz/classes/external.php:6449
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/quiz/classes/external.php:7599
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/quiz/classes/external.php:18009
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/quiz/classes/external.php:18769
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/resource/lib.php:3169
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Could Inject Parameter
  •   Missing Some Returntype
/mod/scorm/datamodels/sequencinglib.php:6359
  •   Undefined Properties
  •   Undefined Variable
  •   Identical Conditions
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/mod/scorm/lib.php:8859
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Could Inject Parameter
  •   Missing Some Returntype
/mod/scorm/locallib.php:15509
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Unused Parameter
  •   Undefined Classes
/mod/workshop/classes/external.php:2859
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/workshop/classes/external.php:16079
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/workshop/form/lib.php:619
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Wrong Type With Default
  •   Implicit Nullable Type
/reportbuilder/classes/local/helpers/format.php:409
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Never Called Parameter
/repository/lib.php:12249
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Never Called Parameter
/search/classes/manager.php:11969
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Ambiguous Static
  •   Too Many Local Variables
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/admin/tool/analytics/cli/guess_course_start_and_end.php:2098
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Useless Parenthesis
  •   No Hardcoded Hash
  •   Preprocessable
  •   Else If Versus Elseif
/admin/tool/mfa/db/subplugins.php:288
  •   Undefined Properties
  •   Wrong Type For Native PHP Function
  •   Check JSON
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/admin/tool/policy/tests/behat/behat_tool_policy.php:598
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Mismatched Type
  •   Undefined Interfaces
  •   Should Use Local Class
  •   Undefined Classes
  •   Modified Typed Parameter
  •   Method Could Be Static
/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/AbstractStorage.php:1988
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Forgotten Visibility
  •   Unreachable Method
  •   Method Could Be Static
/availability/classes/frontend.php:818
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Unreachable Method
  •   Implicit Nullable Type
/availability/classes/info.php:2388
  •   Avoid Optional Properties
  •   No Need For Else
  •   Written Only Variables
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Drop Else After Return
  •   Use === null
/backup/cc/cc_lib/cc_utils.php:2118
  •   Use Named Boolean In Argument Definition
  •   Class-typed References
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Objects Don't Need References
  •   Modified Typed Parameter
  •   Never Called Parameter
/backup/cc/cc_lib/gral_lib/parser.php:938
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Useless Referenced Argument
  •   No Class In Global
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Objects Don't Need References
/backup/converter/moodle1/handlerlib.php:20408
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Wrong Type With Default
  •   Unreachable Method
  •   Implicit Nullable Type
/backup/util/ui/backup_ui_setting.class.php:7888
  •   Unused Public Methods
  •   Mismatched Type
  •   Undefined Interfaces
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/backup/util/ui/restore_ui_components.php:1098
  •   Undefined Properties
  •   Avoid Optional Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Unresolved Classes
/blocks/section_links/renderer.php:448
  •   Unused Public Methods
  •   Assumptions
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Method Could Be Static
/blog/lib.php:3418
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
  •   Memoize MagicCall
  •   Never Called Parameter
/calendar/lib.php:24588
  •   No Null For Index
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
/calendar/lib.php:34458
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
  •   Could Inject Parameter
/cohort/lib.php:1708
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Undefined Variable
  •   Buried Assignation
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/contentbank/classes/form/edit_content.php:588
  •   Assumptions
  •   Incompatible Signature Methods With Covariance
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Avoid option arrays in constructors
/course/classes/management_renderer.php:9878
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/course/format/classes/output/local/content/cm.php:2608
  •   Assumptions
  •   Class-typed References
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Objects Don't Need References
  •   No Return Used
/course/format/classes/output/local/content/section.php:3258
  •   Class-typed References
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Objects Don't Need References
  •   No Return Used
/course/format/classes/output/section_renderer.php:2858
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/course/jumpto.php:378
  •   strpos() Too Much
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
/course/lib.php:25618
  •   Undefined Properties
  •   No Need For Else
  •   Bail Out Early
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Drop Else After Return
/course/lib.php:30948
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Implicit Nullable Type
/course/mod.php:1648
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/enrol/lti/tests/local/ltiadvantage/repository/application_registration_repository_test.php:388
  •   Mismatched Type
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
  •   Method Could Be Static
/enrol/meta/locallib.php:2618
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
/grade/export/lib.php:2198
  •   No Need For Else
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Iffectations
  •   Drop Else After Return
  •   Could Make A Function
/grade/grading/form/guide/lib.php:1348
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Avoid Using stdClass
  •   Too Many Local Variables
  •   No Return Used
  •   Modified Typed Parameter
/grade/grading/form/lib.php:2298
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Wrong Type With Default
  •   Unreachable Method
  •   Implicit Nullable Type
/grade/grading/form/lib.php:2428
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Wrong Type With Default
  •   Unreachable Method
  •   Implicit Nullable Type
/grade/grading/form/rubric/lib.php:1308
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Avoid Using stdClass
  •   Too Many Local Variables
  •   No Return Used
  •   Modified Typed Parameter
/grade/report/user/lib.php:2068
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   No Class In Global
  •   StandaloneType True False Null
  •   Modified Typed Parameter
/group/lib.php:4488
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Undefined Classes
  •   No Return Used
/group/lib.php:7478
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/h5p/classes/helper.php:4798
  •   Undefined Interfaces
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/lib/accesslib.php:8728
  •   Method Is Not An If
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   No Class In Global
  •   Could Inject Parameter
/lib/adminlib.php:3698
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/lib/adodb/adodb-time.inc.php:7618
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/adodb/adodb-time.inc.php:12538
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/lib/adodb/adodb-xmlschema.inc.php:1248
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Forgotten Visibility
  •   Unreachable Method
/lib/adodb/adodb-xmlschema.inc.php:1468
  •   Useless Referenced Argument
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
  •   Unreachable Method
/lib/adodb/adodb-xmlschema03.inc.php:1648
  •   Useless Referenced Argument
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
  •   Unreachable Method
/lib/adodb/adodb.inc.php:8468
  •   Undefined Variable
  •   Useless Global
  •   Make Global A Property
  •   Used Once Variables (In Scope)
  •   Global Usage
  •   Could Be A Static Variable
/lib/adodb/adodb.inc.php:16778
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
/lib/adodb/adodb.inc.php:27188
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Never Called Parameter
/lib/adodb/adodb.inc.php:27558
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Never Called Parameter
/lib/adodb/drivers/adodb-ads.inc.php:4968
  •   False To Array Conversion
  •   Missing Assignation In Branches
  •   Variable Is Not A Condition
  •   Null Or Boolean Arrays
  •   Nested Ifthen
  •   Uses Default Values
/lib/adodb/drivers/adodb-mysqli.inc.php:16778
  •   Undefined Properties
  •   Variable Is Not A Condition
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Use PHP Object API
  •   Uses Default Values
  •   Useless Parenthesis
  •   @ Operator
/lib/adodb/drivers/adodb-odbc.inc.php:4728
  •   False To Array Conversion
  •   Missing Assignation In Branches
  •   Variable Is Not A Condition
  •   Null Or Boolean Arrays
  •   Nested Ifthen
  •   Uses Default Values
/lib/adodb/drivers/adodb-text.inc.php:688
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Forgotten Visibility
  •   Different Argument Counts
/lib/adodb/drivers/adodb-text.inc.php:1468
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Forgotten Visibility
  •   Different Argument Counts
  •   Missing Some Returntype
/lib/authlib.php:3098
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Forgotten Visibility
  •   Method Could Be Static
/lib/behat/classes/behat_config_util.php:8648
  •   Wrong Type For Native PHP Function
  •   Check JSON
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   @ Operator
  •   Could Make A Function
/lib/behat/extension/Moodle/BehatExtension/Output/Printer/MoodleProgressPrinter.php:648
  •   Unused Public Methods
  •   Method Is Not An If
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/lib/bennu/iCalendar_components.php:1048
  •   Variable Is Not A Condition
  •   Null Or Boolean Arrays
  •   No Need For Else
  •   Bail Out Early
  •   Indices Are Int Or String
  •   Drop Else After Return
/lib/blocklib.php:23588
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Never Called Parameter
/lib/blocklib.php:26068
  •   No Null For Index
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/classes/plugininfo/base.php:7048
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   StandaloneType True False Null
/lib/classes/session/manager.php:3668
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/lib/classes/session/redis.php:4968
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Missing Some Returntype
/lib/classes/user.php:14568
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/lib/configonlylib.php:1768
  •   No Need For Else
  •   Nested Ifthen
  •   strpos() Too Much
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Could Make A Function
  •   Logical Should Use Symbolic Operators
/lib/dml/moodle_database.php:22778
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/dml/moodle_database.php:25378
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/dml/mysqli_native_moodle_database.php:688
  •   Unused Public Methods
  •   Assumptions
  •   Undefined Classes
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/lib/editor/atto/lib.php:1038
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Could Make A Function
  •   Preprocessable
/lib/enrollib.php:27438
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/enrollib.php:35728
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   StandaloneType True False Null
/lib/environmentlib.php:9698
  •   Written Only Variables
  •   Undefined Variable
  •   Use Positive Condition
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Used Once Variables
  •   Iffectations
/lib/filebrowser/file_info.php:3888
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/lib/filebrowser/file_info.php:4018
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/lib/filebrowser/file_info.php:4148
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/lib/filelib.php:26878
  •   Assumptions
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
/lib/filestorage/zip_archive.php:6698
  •   Variable Is Not A Condition
  •   Nested Ifthen
  •   Overwritten Literals
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
  •   Logical Should Use Symbolic Operators
/lib/form/tags.php:2158
  •   Unused Public Methods
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
/lib/formslib.php:2398
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/lib/guzzlehttp/guzzle/src/Handler/StreamHandler.php:4718
  •   Method Is Not An If
  •   Assumptions
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/mlbackend/php/phpml/src/Phpml/Math/Statistic/Covariance.php:168
  •   Unused Public Methods
  •   Assumptions
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Missing Some Returntype
/lib/modinfolib.php:19638
  •   Unused Public Methods
  •   Mismatched Type
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   StandaloneType True False Null
  •   Modified Typed Parameter
/lib/moodlelib.php:27298
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
/lib/moodlelib.php:81588
  •   False To Array Conversion
  •   Weak Type With Array
  •   Wrong Type For Native PHP Function
  •   Identical Consecutive Expression
  •   Uses Default Values
  •   Use random_int()
  •   Could Make A Function
/lib/navigationlib.php:28438
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Weak Type With Array
  •   Empty Blocks
  •   Written Only Variables
  •   Undefined Variable
  •   Buried Assignation
  •   Iffectations
/lib/openspout/src/Common/Entity/Cell.php:428
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Never Called Parameter
/lib/pear/HTML/QuickForm/Renderer.php:988
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/Renderer.php:1418
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/Rule.php:408
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
  •   Unreachable Method
/lib/pear/HTML/QuickForm/RuleRegistry.php:2138
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Objects Don't Need References
  •   Forgotten Visibility
  •   Method Could Be Static
/lib/php-css-parser/Parser.php:248
  •   Mismatched Type
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Could Inject Parameter
  •   Implicit Nullable Type
  •   Never Called Parameter
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php:55308
  •   Unused Public Methods
  •   No Default For Referenced Parameter
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   StandaloneType True False Null
  •   Modified Typed Parameter
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef.php:478
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Should Use Local Class
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php:3348
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Retyped Reference
/lib/portfolio/formats.php:4968
  •   Unused Public Methods
  •   Mismatched Type
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Could Inject Parameter
  •   Implicit Nullable Type
/lib/questionlib.php:4508
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   No Return Used
  •   Never Called Parameter
/lib/questionlib.php:5348
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   No Return Used
  •   Never Called Parameter
/lib/scssphp/Compiler.php:51958
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/lib/simplepie/src/Sanitize.php:1368
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Use ::Class Operator
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/lib/table/classes/base_export_format.php:828
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/table/classes/flexible_table.php:5728
  •   Check JSON
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
  •   Else If Versus Elseif
/lib/testing/classes/util.php:6288
  •   Wrong Type For Native PHP Function
  •   Check JSON
  •   Uses Default Values
  •   Iffectations
  •   @ Operator
  •   Could Make A Function
  •   Preprocessable
/lib/tests/behat/behat_general.php:15478
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Undefined Classes
  •   Empty Function
  •   Wrong Type Returned
/lib/tests/behat/behat_general.php:15668
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Undefined Classes
  •   Empty Function
  •   Wrong Type Returned
/lib/tests/behat/behat_hooks.php:2768
  •   Wrong Type For Native PHP Function
  •   Check JSON
  •   Uses Default Values
  •   Undefined Constants
  •   Iffectations
  •   @ Operator
  •   Could Make A Function
/lib/tests/setuplib_test.php:1738
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Timestamp Difference
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Use random_int()
  •   Could Make A Function
/lib/tests/statslib_test.php:718
  •   Check Division By Zero
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Used Once Variables
  •   Useless Parenthesis
  •   Should Typecast
  •   Preprocessable
/lib/xmldb/xmldb_object.php:4198
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
  •   Wrong Type With Default
  •   Implicit Nullable Type
/login/digital_minor.php:418
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/login/verify_age_location.php:418
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/mnet/xmlrpc/client.php:2268
  •   No Need For Else
  •   Bail Out Early
  •   Uses Default Values
  •   Strpos()-like Comparison
  •   Drop Else After Return
  •   Could Make A Function
  •   Preprocessable
/mod/assign/assignmentplugin.php:4628
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/assign/feedbackplugin.php:1448
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Unreachable Method
/mod/assign/gradingtable.php:14748
  •   Wrong Type For Native PHP Function
  •   Don't Collect Void
  •   Uses Default Values
  •   Use ::Class Operator
  •   Could Make A Function
  •   Preprocessable
/mod/assign/locallib.php:20498
  •   Undefined Properties
  •   No Need For Else
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Useless Parenthesis
  •   Iffectations
  •   Drop Else After Return
/mod/assign/submissionplugin.php:868
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/bigbluebuttonbn/bbb_view.php:358
  •   Missing Include
  •   Uses Default Values
  •   include_once() Usage
  •   No Parenthesis For Language Construct
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
/mod/bigbluebuttonbn/classes/local/extension/action_url_addons.php:408
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Unreachable Method
/mod/bigbluebuttonbn/classes/local/helpers/roles.php:1388
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Ambiguous Static
  •   Should Use Local Class
  •   StandaloneType True False Null
/mod/choice/index.php:418
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/mod/data/lib.php:34528
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/data/tabs.php:868
  •   Undefined Properties
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/mod/forum/classes/grades/forum_gradeitem.php:1688
  •   Unused Public Methods
  •   Mismatched Type
  •   Avoid Using stdClass
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/glossary/lib.php:12848
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Variable Is Not A Condition
  •   Uses Default Values
  •   Could Make A Function
  •   Logical Should Use Symbolic Operators
/mod/glossary/lib.php:44988
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   No Class In Global
/mod/h5pactivity/lib.php:4268
  •   Assumptions
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   Could Inject Parameter
/mod/lesson/classes/external.php:2908
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Use Positive Condition
  •   Buried Assignation
  •   Iffectations
  •   Else If Versus Elseif
/mod/lesson/locallib.php:44598
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/lti/classes/local/types_helper.php:1088
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Use Positive Condition
  •   Uses Default Values
  •   Should Typecast
/mod/quiz/accessrule/seb/classes/template_controller.php:1358
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/quiz/report/statistics/tests/statistics_test.php:1648
  •   False To Array Conversion
  •   Weak Type With Array
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Useless Parenthesis
/mod/resource/deprecatedlib.php:358
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/survey/tests/generator/lib.php:618
  •   No Null For Native PHP Functions
  •   Scalar Are Not Arrays
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Use ::Class Operator
  •   Strict Comparison With Booleans
/mod/url/deprecatedlib.php:358
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/payment/classes/form/account_gateway.php:1418
  •   Undefined Properties
  •   Check JSON
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   @ Operator
  •   Could Make A Function
/privacy/classes/local/request/contextlist.php:1648
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Iffectations
  •   Strpos()-like Comparison
  •   Drop Else After Return
  •   Strict Comparison With Booleans
/question/bank/statistics/classes/helper.php:2258
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Never Called Parameter
  •   Missing Some Returntype
/question/classes/local/bank/column_base.php:638
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   Could Inject Parameter
/question/type/ordering/lib.php:388
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/report/outline/locallib.php:408
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
  •   Echo With Concat
/reportbuilder/tests/local/report/column_test.php:5318
  •   Mismatched Type
  •   Undefined Interfaces
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Method Could Be Static
/repository/dropbox/lib.php:718
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
/repository/filesystem/lib.php:6168
  •   Unused Public Methods
  •   Assumptions
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
/repository/lib.php:23488
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/repository/lib.php:27148
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
/search/classes/engine.php:5378
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Must Return Methods
  •   Method Could Be Static
/search/tests/fixtures/testable_core_search.php:528
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Could Inject Parameter
  •   Same Name For Property And Method
  •   Never Called Parameter
/admin/portfolio.php:777
  •   Missing Assignation In Branches
  •   Buried Assignation
  •   Uses Default Values
  •   Useless Parenthesis
  •   Iffectations
  •   Else If Versus Elseif
/admin/presets/classes/local/setting/delegation.php:507
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Insufficient Type
  •   Class-typed References
  •   Should Use Local Class
  •   Objects Don't Need References
  •   Method Could Be Static
/admin/presets/classes/manager.php:10997
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Method Could Be Static
/admin/roles/permissions.php:1727
  •   Missing Assignation In Branches
  •   Buried Assignation
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/admin/roles/permissions.php:1877
  •   Missing Assignation In Branches
  •   Buried Assignation
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/admin/tool/behat/cli/util_single_run.php:3027
  •   Wrong Type For Native PHP Function
  •   Check JSON
  •   Uses Default Values
  •   Iffectations
  •   @ Operator
  •   Could Make A Function
/admin/tool/brickfield/classes/local/htmlchecker/common/brickfield_accessibility_css.php:1567
  •   Wrong Type For Native PHP Function
  •   Missing Cases In Switch
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/admin/tool/dataprivacy/lib.php:2267
  •   Method Is Not An If
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/admin/tool/lp/classes/site_competencies_form_element.php:957
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
/admin/tool/messageinbound/classes/manager.php:13647
  •   Undefined Variable
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Empty Function
  •   include_once() Usage
  •   No Parenthesis For Language Construct
/admin/tool/messageinbound/roundcube/rcube_result_thread.php:3787
  •   No Null For Native PHP Functions
  •   Weak Type With Array
  •   Wrong Type For Native PHP Function
  •   Repeated Regex
  •   Wrong Parameter Type
  •   Should Use Existing Constants
  •   Indices Are Int Or String
/admin/tool/oauth2/classes/form/issuer.php:687
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Parent First
  •   Avoid option arrays in constructors
  •   Never Called Parameter
/admin/tool/usertours/classes/step.php:7587
  •   Useless Referenced Argument
  •   Class-typed References
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Objects Don't Need References
  •   No Return Used
/analytics/classes/calculable.php:1207
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/AbstractStorage.php:2137
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Forgotten Visibility
  •   Unreachable Method
  •   Method Could Be Static
/auth/cas/lib.php:417
  •   Don't Pollute Global Space
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/auth/db/auth.php:2917
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Too Many Local Variables
  •   Undefined Classes
  •   Forgotten Visibility
/auth/email/auth.php:1157
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
  •   Never Called Parameter
/availability/classes/frontend.php:537
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/backup/cc/cc_lib/cc_asssesment.php:4337
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Class-typed References
  •   Ambiguous Static
  •   Should Use Local Class
  •   Objects Don't Need References
  •   Method Could Be Static
/backup/cc/cc_lib/cc_convert_moodle2.php:1457
  •   Max Level Of Nesting
  •   Useless Referenced Argument
  •   Class-typed References
  •   Objects Don't Need References
  •   Modified Typed Parameter
  •   Could Inject Parameter
/backup/cc/cc_lib/cc_utils.php:1577
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   Class-typed References
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Could Inject Parameter
/backup/cc/cc_lib/cc_version1.php:1727
  •   Useless Referenced Argument
  •   Class-typed References
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Objects Don't Need References
  •   Method Could Be Static
/backup/cc/cc_lib/cc_version1.php:2567
  •   No Default For Referenced Parameter
  •   Useless Referenced Argument
  •   Class-typed References
  •   Objects Don't Need References
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/backup/moodle2/restore_stepslib.php:13627
  •   Undefined Properties
  •   Merge If Then
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Iffectations
/backup/moodle2/restore_stepslib.php:13687
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   strpos() Too Much
  •   Uses Default Values
  •   Useless Parenthesis
  •   Else If Versus Elseif
/backup/moodle2/restore_stepslib.php:22507
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   strpos() Too Much
  •   Uses Default Values
  •   Useless Parenthesis
  •   Else If Versus Elseif
/backup/util/helper/backup_helper.class.php:4037
  •   Non Integer Nor String As Index
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Null Or Boolean Arrays
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Strict Comparison With Booleans
/blocks/admin_bookmarks/create.php:347
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Could Make A Function
  •   Logical Should Use Symbolic Operators
/blocks/admin_bookmarks/delete.php:357
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Could Make A Function
  •   Logical Should Use Symbolic Operators
/blocks/moodleblock.class.php:827
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/blocks/moodleblock.class.php:1007
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Mismatch Properties Types
  •   Unfinished Object
/blocks/moodleblock.class.php:7317
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/calendar/lib.php:20467
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Useless Referenced Argument
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Useless Return
/cohort/upload_form.php:2607
  •   No Null For Native PHP Functions
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Used Once Variables
  •   Iffectations
/comment/locallib.php:1357
  •   Undefined Properties
  •   No Need For Else
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Iffectations
  •   Drop Else After Return
/completion/classes/cm_completion_details.php:2827
  •   Undefined Properties
  •   No Need For Else
  •   Nested Ifthen
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Drop Else After Return
/completion/criteria/completion_criteria_date.php:2167
  •   Unused Public Methods
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
  •   Method Could Be Static
/completion/criteria/completion_criteria_grade.php:2727
  •   Unused Public Methods
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
  •   Method Could Be Static
/completion/criteria/completion_criteria_role.php:1067
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   No Return Used
  •   Different Argument Counts
  •   Method Could Be Static
/completion/criteria/completion_criteria_self.php:977
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   No Return Used
  •   Different Argument Counts
  •   Method Could Be Static
/completion/criteria/completion_criteria_self.php:1607
  •   Unused Public Methods
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
  •   Method Could Be Static
/completion/criteria/completion_criteria_unenrol.php:1427
  •   Unused Public Methods
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
  •   Method Could Be Static
/course/classes/hook/after_course_created.php:407
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/course/classes/hook/after_course_updated.php:407
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/course/classes/hook/before_course_deleted.php:437
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/course/format/classes/output/local/content/basecontrolmenu.php:787
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   StandaloneType True False Null
/course/format/classes/output/local/content/basecontrolmenu.php:1177
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   StandaloneType True False Null
/course/format/classes/output/local/content/cm/availability.php:847
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   StandaloneType True False Null
/course/format/classes/output/local/content/cm/completion.php:617
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   StandaloneType True False Null
/course/format/classes/output/local/content/cm/controlmenu.php:677
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   StandaloneType True False Null
/course/format/classes/output/local/content/cm/groupmode.php:737
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   StandaloneType True False Null
/course/format/classes/output/local/content/cm/visibility.php:777
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   StandaloneType True False Null
/course/format/classes/output/local/content/section/visibility.php:617
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   StandaloneType True False Null
/course/format/tests/fixtures/format_theunittest_output_course_format_invalidoutput.php:387
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/course/renderer.php:1187
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/course/user.php:987
  •   Nested Ifthen
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/enrol/locallib.php:16397
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Unreachable Method
/enrol/self/lib.php:6747
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/filter/algebra/classes/text_filter.php:967
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Use Positive Condition
  •   Buried Assignation
  •   Iffectations
/grade/classes/privacy/grade_grade_with_history.php:337
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Avoid Using stdClass
  •   Parent First
  •   Wrong Type With Default
  •   Implicit Nullable Type
/grade/edit/letter/index.php:2597
  •   Wrong Type With Call
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Unused Returned Value
  •   Could Make A Function
/grade/export/xml/grade_export_xml.php:567
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Different Argument Counts
  •   Never Called Parameter
/grade/import/lib.php:467
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
/grade/lib.php:4167
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/grade/lib.php:7927
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   StandaloneType True False Null
  •   Could Inject Parameter
/grade/lib.php:14467
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Should Use Local Class
  •   Method Could Be Static
/grade/lib.php:14837
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Should Use Local Class
  •   Method Could Be Static
/group/assign.php:497
  •   Merge If Then
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Logical Should Use Symbolic Operators
/h5p/classes/api.php:3557
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Class-typed References
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   Too Many Local Variables
  •   Objects Don't Need References
/lib/accesslib.php:8987
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   No Class In Global
  •   Could Inject Parameter
  •   Never Called Parameter
/lib/accesslib.php:40467
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Too Many Local Variables
/lib/adminlib.php:12877
  •   Unused Public Methods
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Different Argument Counts
/lib/adminlib.php:15247
  •   Unused Public Methods
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Different Argument Counts
/lib/adminlib.php:87217
  •   Assumptions
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/adodb/adodb-active-recordx.inc.php:8077
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Too Many Local Variables
  •   Forgotten Visibility
  •   Memoize MagicCall
/lib/adodb/adodb-active-recordx.inc.php:12007
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Too Many Local Variables
  •   Objects Don't Need References
  •   Could Inject Parameter
/lib/adodb/adodb-csvlib.inc.php:1007
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Use ::Class Operator
/lib/adodb/adodb-datadict.inc.php:10277
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Too Many Local Variables
  •   Forgotten Visibility
  •   No Return Used
  •   Never Called Parameter
/lib/adodb/adodb-perf.inc.php:227
  •   Uses Default Values
  •   include_once() Usage
  •   Could Make A Function
  •   No Parenthesis For Language Construct
  •   Preprocessable
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
/lib/adodb/adodb-time.inc.php:10347
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/adodb/adodb-xmlschema.inc.php:1337
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Forgotten Visibility
  •   Unreachable Method
/lib/adodb/adodb-xmlschema.inc.php:1427
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Forgotten Visibility
  •   Unreachable Method
/lib/adodb/adodb-xmlschema.inc.php:17247
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
  •   Preprocessable
  •   Logical Should Use Symbolic Operators
/lib/adodb/adodb-xmlschema.inc.php:17707
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
  •   Preprocessable
  •   Logical Should Use Symbolic Operators
/lib/adodb/adodb-xmlschema03.inc.php:18917
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
  •   Preprocessable
  •   Logical Should Use Symbolic Operators
/lib/adodb/adodb-xmlschema03.inc.php:19377
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
  •   Preprocessable
  •   Logical Should Use Symbolic Operators
/lib/adodb/adodb-xmlschema03.inc.php:21127
  •   Variable Is Not A Condition
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Useless Parenthesis
  •   Could Make A Function
  •   Preprocessable
/lib/adodb/adodb.inc.php:30517
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
/lib/adodb/drivers/adodb-firebird.inc.php:1887
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Different Argument Counts
/lib/adodb/drivers/adodb-mssql.inc.php:4807
  •   No Need For Else
  •   Bail Out Early
  •   Iffectations
  •   Native Alias Functions Usage
  •   Undefined Functions
  •   @ Operator
  •   Drop Else After Return
/lib/adodb/drivers/adodb-mssql.inc.php:8787
  •   Variable Is Not A Condition
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Useless Parenthesis
  •   Native Alias Functions Usage
  •   Undefined Functions
  •   @ Operator
/lib/adodb/drivers/adodb-mssqlnative.inc.php:8237
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Forgotten Visibility
  •   Different Argument Counts
/lib/adodb/drivers/adodb-mysqli.inc.php:13687
  •   Variable Is Not A Condition
  •   Undefined Variable
  •   Use PHP Object API
  •   Uses Default Values
  •   Useless Parenthesis
  •   @ Operator
/lib/adodb/drivers/adodb-oci8.inc.php:10637
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Undefined Classes
  •   Forgotten Visibility
  •   Different Argument Counts
/lib/adodb/drivers/adodb-oci8po.inc.php:437
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Forgotten Visibility
  •   Different Argument Counts
  •   Method Could Be Static
/lib/adodb/drivers/adodb-oci8po.inc.php:537
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Forgotten Visibility
  •   Method Could Be Static
/lib/adodb/drivers/adodb-oracle.inc.php:2947
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Forgotten Visibility
  •   Different Argument Counts
  •   Never Called Parameter
/lib/adodb/drivers/adodb-pdo_firebird.inc.php:2027
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Different Argument Counts
/lib/adodb/drivers/adodb-pdo_firebird.inc.php:2607
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Mismatched Default Arguments
/lib/adodb/drivers/adodb-text.inc.php:2807
  •   Cast To Boolean
  •   Buried Assignation
  •   Uses Default Values
  •   Useless Parenthesis
  •   Several Instructions On The Same Line
  •   Native Alias Functions Usage
  •   Pre-increment
/lib/adodb/pivottable.inc.php:407
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   No Class In Global
  •   Objects Don't Need References
  •   Never Called Parameter
/lib/adodb/toexport.inc.php:737
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   No Class In Global
  •   Objects Don't Need References
  •   Never Called Parameter
/lib/authlib.php:4167
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Forgotten Visibility
  •   Method Could Be Static
/lib/behat/classes/behat_config_manager.php:2237
  •   Wrong Type For Native PHP Function
  •   Check JSON
  •   Uses Default Values
  •   @ Operator
  •   Could Make A Function
  •   Preprocessable
/lib/behat/classes/behat_config_util.php:13857
  •   Wrong Type For Native PHP Function
  •   Modernize Empty With Expression
  •   Check JSON
  •   Uses Default Values
  •   @ Operator
  •   Could Make A Function
/lib/behat/classes/behat_session_trait.php:8457
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Repeated Regex
  •   Long Arguments
  •   Uses Default Values
  •   Could Make A Function
/lib/behat/extension/Moodle/BehatExtension/Output/Formatter/MoodleScreenshotFormatter.php:1457
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/behat/extension/Moodle/BehatExtension/Output/Formatter/MoodleScreenshotFormatter.php:1567
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/behat/extension/Moodle/BehatExtension/Output/Formatter/MoodleStepcountFormatter.php:1347
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/behat/extension/Moodle/BehatExtension/Output/Formatter/MoodleStepcountFormatter.php:1527
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/behat/extension/Moodle/BehatExtension/ServiceContainer/BehatExtension.php:2647
  •   Unused Public Methods
  •   Method Is Not An If
  •   Undefined Interfaces
  •   Ambiguous Static
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/bennu/iCalendar_properties.php:207
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/classes/context.php:9757
  •   Unused Public Methods
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/classes/hook/output/before_standard_footer_html_generation.php:407
  •   Property Used In One Method Only
  •   Undefined Interfaces
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/message/inbound/handler.php:2367
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/classes/output/action_menu/link.php:657
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Mismatched Default Arguments
  •   StandaloneType True False Null
/lib/classes/output/requirements/page_requirements_manager.php:7187
  •   No Need For Else
  •   Nested Ifthen
  •   Undefined Interfaces
  •   Bail Out Early
  •   Undefined Classes
  •   Unresolved Instanceof
  •   Drop Else After Return
/lib/classes/param.php:10407
  •   Wrong Type For Native PHP Function
  •   Empty Blocks
  •   Undefined Variable
  •   Uses Default Values
  •   Strpos()-like Comparison
  •   Could Make A Function
  •   Else If Versus Elseif
/lib/classes/plugininfo/base.php:6447
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/classes/report_helper.php:527
  •   Non Integer Nor String As Index
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Null Or Boolean Arrays
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Strict Comparison With Booleans
/lib/classes/requirejs.php:477
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Never Called Parameter
/lib/classes/requirejs.php:777
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Never Called Parameter
/lib/classes/session/database.php:2967
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   Missing Some Returntype
/lib/classes/user.php:2187
  •   Mismatched Type
  •   Ambiguous Static
  •   Too Many Local Variables
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Never Called Parameter
/lib/clilib.php:577
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Infinite Recursion
  •   No Boolean As Default
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/datalib.php:4327
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Never Called Parameter
/lib/datalib.php:17127
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Too Many Local Variables
/lib/dml/auroramysql_native_moodle_database.php:507
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Method Could Be Static
  •   Missing Some Returntype
/lib/dml/moodle_database.php:8977
  •   Assumptions
  •   Max Level Of Nesting
  •   Too Many Local Variables
  •   Undefined Classes
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/lib/dml/moodle_database.php:22177
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/dml/moodle_database.php:22317
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/dml/mysqli_native_moodle_database.php:1037
  •   Missing Assignation In Branches
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   strpos() Too Much
  •   Uses Default Values
  •   Logical Should Use Symbolic Operators
/lib/dml/oci_native_moodle_database.php:10097
  •   Unused Public Methods
  •   Mismatched Type
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/dml/sqlsrv_native_moodle_database.php:7757
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/dml/tests/fixtures/read_slave_moodle_database_special.php:637
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/lib/dml/tests/fixtures/test_moodle_read_slave_trait.php:1077
  •   Useless Method
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   No Return Used
  •   Method Could Be Static
  •   Never Called Parameter
/lib/editor/tiny/classes/editor.php:1457
  •   Unused Public Methods
  •   Assumptions
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/enrollib.php:5117
  •   Undefined Properties
  •   Merge If Then
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Logical Should Use Symbolic Operators
/lib/enrollib.php:5987
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Too Many Local Variables
/lib/enrollib.php:13867
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
/lib/enrollib.php:15377
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   Never Called Parameter
/lib/enrollib.php:20687
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/enrollib.php:20837
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/enrollib.php:28037
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/lib/enrollib.php:28267
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/lib/enrollib.php:33757
  •   Undefined Properties
  •   Check Division By Zero
  •   Uses Default Values
  •   Useless Parenthesis
  •   Could Make A Function
  •   Preprocessable
/lib/enrollib.php:34337
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/enrollib.php:37487
  •   Assumptions
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/filebrowser/file_info.php:3757
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/lib/filebrowser/file_info_context_coursecat.php:677
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/lib/filebrowser/virtual_root_file.php:847
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
/lib/filelib.php:4087
  •   Assumptions
  •   Don't Pollute Global Space
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Retyped Reference
/lib/filelib.php:23497
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/form/dateselector.php:2547
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/form/datetimeselector.php:2807
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/form/defaultcustom.php:2377
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
/lib/form/duration.php:2717
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/form/modgrade.php:2627
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Undefined Classes
/lib/form/modvisible.php:1437
  •   Unused Public Methods
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Method Could Be Static
/lib/formslib.php:11097
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
/lib/formslib.php:36567
  •   No Need For Else
  •   Written Only Variables
  •   Undefined Variable
  •   Use Positive Condition
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Drop Else After Return
/lib/gradelib.php:647
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Unused Parameter
/lib/gradelib.php:7887
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   No Class In Global
  •   Objects Don't Need References
  •   StandaloneType True False Null
/lib/grouplib.php:14497
  •   Merge If Then
  •   array_key_exists() Works On Arrays
  •   Nested Ifthen
  •   Undefined Variable
  •   Bail Out Early
  •   Indices Are Int Or String
/lib/grouplib.php:14777
  •   Don't Pollute Global Space
  •   Undefined Interfaces
  •   No Class In Global
  •   Undefined Classes
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/lib/guzzlehttp/guzzle/src/Handler/StreamHandler.php:4817
  •   Assumptions
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/guzzlehttp/guzzle/src/Handler/StreamHandler.php:5007
  •   Assumptions
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/guzzlehttp/guzzle/src/Handler/StreamHandler.php:5267
  •   Assumptions
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/htmlpurifier/HTMLPurifier/Encoder.php:1347
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Never Called Parameter
/lib/htmlpurifier/HTMLPurifier/Filter.php:387
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Unreachable Method
  •   Method Could Be Static
/lib/htmlpurifier/HTMLPurifier/Strategy/RemoveForeignElements.php:207
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Ambiguous Static
  •   Too Many Local Variables
  •   Could Inject Parameter
  •   Method Could Be Static
/lib/jmespath/src/SyntaxErrorException.php:207
  •   No Null For Native PHP Functions
  •   Weak Type With Array
  •   Wrong Type For Native PHP Function
  •   Mixed Concat And Interpolation
  •   Uses Default Values
  •   Could Make A Function
/lib/lti1p3/src/DeepLinkResources/Iframe.php:137
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   Unfinished Object
  •   Property Could Be Local
/lib/lti1p3/src/DeepLinkResources/Iframe.php:147
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   Unfinished Object
  •   Property Could Be Local
/lib/lti1p3/src/DeepLinkResources/Window.php:137
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   Unfinished Object
  •   Property Could Be Local
/lib/lti1p3/src/DeepLinkResources/Window.php:147
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Variables (In Scope)
  •   StandaloneType True False Null
  •   Unfinished Object
  •   Property Could Be Local
/lib/lti1p3/src/LtiServiceConnector.php:227
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/moodlelib.php:35567
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
  •   Modified Typed Parameter
  •   Could Inject Parameter
/lib/moodlelib.php:55297
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Repeated Regex
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Could Make A Function
/lib/moodlelib.php:55887
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
  •   Never Called Parameter
/lib/moodlelib.php:63597
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/moodlelib.php:81597
  •   False To Array Conversion
  •   Weak Type With Array
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Use random_int()
  •   Could Make A Function
/lib/moodlelib.php:84567
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
/lib/navigationlib.php:12007
  •   Weak Type With Array
  •   array_key_exists() Works On Arrays
  •   No Need For Else
  •   Bail Out Early
  •   Indices Are Int Or String
  •   Drop Else After Return
/lib/navigationlib.php:24877
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Too Many Local Variables
  •   Undefined Classes
  •   No Return Used
/lib/openspout/src/Writer/XLSX/Options/PageSetup.php:137
  •   Property Used In One Method Only
  •   Undefined Interfaces
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/pear/HTML/QuickForm.php:15037
  •   Missing Assignation In Branches
  •   Buried Assignation
  •   Uses Default Values
  •   Useless Parenthesis
  •   Iffectations
  •   Could Make A Function
/lib/pear/HTML/QuickForm/Renderer.php:837
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   Forgotten Visibility
  •   Unreachable Method
/lib/pear/HTML/QuickForm/Renderer/Array.php:1167
  •   No Null For Index
  •   Don't Mix ++
  •   Assign Default To Properties
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/pear/HTML/QuickForm/Renderer/Object.php:487
  •   No Null For Index
  •   Don't Mix ++
  •   Assign Default To Properties
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/pear/HTML/QuickForm/Renderer/Object.php:3087
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Property
  •   Var Keyword
  •   Forgotten Visibility
  •   Unfinished Object
/lib/pear/HTML/QuickForm/group.php:1187
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/pear/HTML/QuickForm/header.php:667
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
  •   Unreachable Method
/lib/php-di/php-di/src/Definition/InstanceDefinition.php:197
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/php-di/php-di/src/Definition/Resolver/DecoratorResolver.php:297
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/php-di/php-di/src/Definition/Resolver/FactoryResolver.php:387
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/php-di/php-di/src/Definition/Resolver/ObjectCreator.php:497
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Missing Some Returntype
/lib/php-di/php-di/src/Definition/Source/AttributeBasedAutowiring.php:347
  •   Mismatched Type
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Could Inject Parameter
  •   Implicit Nullable Type
  •   Never Called Parameter
/lib/php-di/php-di/src/Proxy/ProxyFactory.php:267
  •   Property Used In One Method Only
  •   Undefined Interfaces
  •   Undefined Classes
  •   StandaloneType True False Null
  •   Same Name For Property And Method
  •   Unfinished Object
  •   Property Could Be Local
/lib/php-jwt/src/CachedKeySet.php:1227
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php:47967
  •   Comparison Is Always The Same
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Avoid Optional Properties
  •   Null Or Boolean Arrays
  •   Uses Default Values
  •   Preprocessable
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php:48037
  •   Missing Assignation In Branches
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Null Or Boolean Arrays
  •   Use Positive Condition
  •   Uses Default Values
  •   Could Make A Function
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DSum.php:357
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Different Argument Counts
  •   Never Called Parameter
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Slk.php:3127
  •   Double Checks
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   Class-typed References
  •   Should Use Local Class
  •   Objects Don't Need References
  •   Method Could Be Static
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Slk.php:4107
  •   Method Is Not An If
  •   Useless Referenced Argument
  •   Class-typed References
  •   Ambiguous Static
  •   Should Use Local Class
  •   Objects Don't Need References
  •   Method Could Be Static
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Style.php:2047
  •   Assumptions
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   No Return Used
  •   Never Called Parameter
/lib/phpxmlrpc/Request.php:2297
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Too Many Local Variables
  •   Could Inject Parameter
/lib/portfolio/formats/leap2a/lib.php:1437
  •   Non Integer Nor String As Index
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Unused Returned Value
  •   Could Make A Function
/lib/questionlib.php:4677
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/questionlib.php:12667
  •   Missing Assignation In Branches
  •   Written Only Variables
  •   Undefined Variable
  •   Use Positive Condition
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
/lib/scssphp/Compiler.php:2877
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Assign Default To Properties
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
/lib/simplepie/src/Content/Type/Sniffer.php:2307
  •   Undefined Properties
  •   Don't Read And Write In One Expression
  •   No Need For Else
  •   Bail Out Early
  •   Buried Assignation
  •   Iffectations
  •   Drop Else After Return
/lib/simplepie/src/Content/Type/Sniffer.php:2367
  •   Undefined Properties
  •   Don't Read And Write In One Expression
  •   No Need For Else
  •   Buried Assignation
  •   Iffectations
  •   Drop Else After Return
  •   Could Make A Function
/lib/tcpdf/include/barcodes/pdf417.php:8827
  •   Weak Type With Array
  •   Nested Ifthen
  •   Use Positive Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Strict Comparison With Booleans
/lib/tcpdf/include/barcodes/pdf417.php:8897
  •   Weak Type With Array
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Strict Comparison With Booleans
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/include/barcodes/pdf417.php:8917
  •   Missing Assignation In Branches
  •   Weak Type With Array
  •   Uses Default Values
  •   Useless Parenthesis
  •   Strict Comparison With Booleans
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/include/tcpdf_fonts.php:25147
  •   False To Array Conversion
  •   Null Or Boolean Arrays
  •   Uses Default Values
  •   Useless Parenthesis
  •   Strict Comparison With Booleans
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/tcpdf.php:71077
  •   Variable Is Not A Condition
  •   No Need For Else
  •   Bail Out Early
  •   Useless Parenthesis
  •   Drop Else After Return
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/tcpdf.php:166637
  •   Weak Type With Array
  •   Uses Default Values
  •   Useless Parenthesis
  •   Could Make A Function
  •   Avoid Substr() One
  •   Strict Comparison With Booleans
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/tcpdf.php:216647
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Useless Parenthesis
  •   Could Make A Function
  •   Preprocessable
/lib/tcpdf/tcpdf_parser.php:3107
  •   Weak Type With Array
  •   Too Many Array Dimensions
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Used Once Variables
  •   Should Typecast
/lib/testing/classes/util.php:8567
  •   Wrong Type For Native PHP Function
  •   Check JSON
  •   Uses Default Values
  •   @ Operator
  •   Could Make A Function
  •   Preprocessable
/lib/testing/generator/component_generator_base.php:697
  •   Mismatched Type
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Modified Typed Parameter
  •   Method Could Be Static
/lib/testing/generator/data_generator.php:1467
  •   Mismatched Default Arguments
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Never Called Parameter
/lib/testing/generator/data_generator.php:2807
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/testing/generator/data_generator.php:4647
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/lib/tests/behat/behat_general.php:15487
  •   Don't Collect Void
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Native Alias Functions Usage
  •   Could Make A Function
/lib/tests/behat/behat_hooks.php:4897
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/tests/behat/behat_hooks.php:8757
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/tests/navigationlib_test.php:887
  •   No Null For Native PHP Functions
  •   Weak Type With Array
  •   Wrong Type For Native PHP Function
  •   Suspicious Comparison
  •   strpos() Too Much
  •   Uses Default Values
  •   Could Make A Function
/lib/tests/navigationlib_test.php:2817
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
/lib/validateurlsyntax.php:2007
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:2157
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4087
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4207
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5167
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5287
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/webauthn/src/WebAuthn.php:4177
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Classes
  •   No Return Used
  •   Could Inject Parameter
  •   Never Called Parameter
/lib/webauthn/src/WebAuthn.php:5147
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Should Use Local Class
  •   Method Could Be Static
/lib/xhprof/xhprof_lib/display/xhprof.php:7527
  •   Mixed Concat And Interpolation
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Used Once Variables
  •   Avoid Parenthesis With Language Construct
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/display/xhprof.php:12067
  •   Undefined Variable
  •   Double Instructions
  •   Used Once Variables
  •   Avoid Parenthesis With Language Construct
  •   Echo With Concat
  •   No Parenthesis For Language Construct
  •   Repeated print()
/message/externallib.php:11597
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
/message/externallib.php:12397
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
/message/externallib.php:13587
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
/message/externallib.php:17357
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
/message/externallib.php:18357
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
/message/externallib.php:32657
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
/message/externallib.php:33247
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
/message/output/airnotifier/classes/manager.php:3287
  •   Merge If Then
  •   Check JSON
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
  •   Else If Versus Elseif
/mod/assign/assignmentplugin.php:3097
  •   Wrong Type For Native PHP Function
  •   Don't Collect Void
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Use ::Class Operator
  •   Preprocessable
/mod/assign/assignmentplugin.php:4047
  •   Useless Referenced Argument
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/assign/classes/external/external_api.php:1057
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Never Called Parameter
/mod/assign/lib.php:387
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/assign/lib.php:10887
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/mod/assign/locallib.php:1687
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
  •   Property Could Be Local
/mod/bigbluebuttonbn/classes/local/extension/mod_form_addons.php:517
  •   Useless Referenced Argument
  •   Class-typed References
  •   Avoid Using stdClass
  •   Objects Don't Need References
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/bigbluebuttonbn/classes/local/extension/mod_instance_helper.php:337
  •   Unused Public Methods
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Unreachable Method
/mod/bigbluebuttonbn/classes/local/extension/mod_instance_helper.php:417
  •   Unused Public Methods
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Unreachable Method
/mod/bigbluebuttonbn/classes/local/helpers/roles.php:1647
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/bigbluebuttonbn/classes/task/base_send_notification.php:357
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Mismatch Properties Types
  •   Unfinished Object
/mod/bigbluebuttonbn/lib.php:6637
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/bigbluebuttonbn/mod_form.php:6007
  •   Method Is Not An If
  •   Assumptions
  •   Useless Referenced Argument
  •   Class-typed References
  •   Should Use Local Class
  •   Objects Don't Need References
  •   Method Could Be Static
/mod/bigbluebuttonbn/tests/fixtures/extension/simple/classes/bigbluebuttonbn/mod_form_addons.php:377
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Class-typed References
  •   Avoid Using stdClass
  •   Should Make Alias
  •   Objects Don't Need References
  •   Empty Function
/mod/bigbluebuttonbn/tests/generator/lib.php:3787
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/book/tool/importhtml/import_form.php:707
  •   No Need For Else
  •   Nested Ifthen
  •   Use Positive Condition
  •   Bail Out Early
  •   Buried Assignation
  •   Iffectations
  •   Drop Else After Return
/mod/data/classes/local/importer/csv_entries_importer.php:1307
  •   Non Integer Nor String As Index
  •   Should Use Ternary Operator
  •   Use Positive Condition
  •   Indices Are Int Or String
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/mod/data/lib.php:6757
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   StandaloneType True False Null
/mod/data/lib.php:8047
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Objects Don't Need References
/mod/data/lib.php:13657
  •   Undefined Properties
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Iffectations
  •   Drop Else After Return
/mod/data/lib.php:15557
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/data/tests/generator/lib.php:927
  •   Max Level Of Nesting
  •   Mismatched Type
  •   Avoid Using stdClass
  •   No Return Used
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/mod/data/tests/generator/lib.php:3907
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   No Return Used
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/mod/feedback/lib.php:13037
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
/mod/forum/classes/local/managers/capability.php:7257
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/forum/classes/local/vaults/discussion_list.php:1147
  •   Mismatched Type
  •   Method Signature Must Be Compatible
  •   Too Many Local Variables
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/forum/classes/privacy/provider.php:11057
  •   Mismatched Type
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   No Return Used
/mod/forum/lib.php:16077
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/forum/lib.php:33717
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/mod/forum/lib.php:42467
  •   Method Is Not An If
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   No Return Used
  •   Never Called Parameter
/mod/forum/lib.php:56367
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Never Called Parameter
/mod/glossary/lib.php:2597
  •   Undefined Properties
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Iffectations
  •   Drop Else After Return
/mod/h5pactivity/classes/output/attempt.php:1267
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/h5pactivity/classes/output/attempt.php:1527
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/h5pactivity/lib.php:857
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/h5pactivity/lib.php:1147
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/lesson/lib.php:11237
  •   Undefined Properties
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Use ::Class Operator
/mod/lesson/locallib.php:4037
  •   No Need For Else
  •   Undefined Variable
  •   Long Arguments
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Iffectations
  •   Drop Else After Return
/mod/lesson/locallib.php:49437
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/lti/lib.php:5827
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/lti/service/gradebookservices/tests/gradebookservices_test.php:3017
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Native Alias Functions Usage
  •   Empty Function
  •   Could Make A Function
/mod/lti/service/gradebookservices/tests/lineitem_test.php:1217
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Native Alias Functions Usage
  •   Empty Function
  •   Could Make A Function
/mod/quiz/lib.php:15837
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Iffectations
  •   Else If Versus Elseif
/mod/quiz/locallib.php:10957
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/mod/scorm/classes/external.php:2347
  •   False To Array Conversion
  •   Missing Assignation In Branches
  •   Scalar Are Not Arrays
  •   Use Positive Condition
  •   Buried Assignation
  •   Iffectations
/mod/scorm/lib.php:3847
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/mod/scorm/locallib.php:19077
  •   Missing Assignation In Branches
  •   Undefined Variable
  •   Uses Default Values
  •   Iffectations
  •   Strpos()-like Comparison
  •   Strict Comparison With Booleans
/mod/wiki/renderer.php:637
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Could Make A Function
/payment/gateway/paypal/classes/external/transaction_complete.php:897
  •   Missing Assignation In Branches
  •   Constant Used Only Once
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Null Or Boolean Arrays
  •   Nested Ifthen
/privacy/classes/local/request/moodle_content_writer.php:5697
  •   Undefined Properties
  •   No Need For Else
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Could Make A Function
/question/bank/editquestion/classes/editquestion_helper.php:537
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
/question/engine/questionattempt.php:18607
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/question/engine/questionusage.php:11457
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/question/engine/tests/helpers.php:4907
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Avoid get_class()
  •   Switch To Switch
  •   Use ::Class Operator
  •   Drop Else After Return
/question/type/calculatedsimple/edit_calculatedsimple_form.php:727
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Too Many Local Variables
  •   Parent First
/question/type/essay/renderer.php:4187
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/question/type/ordering/questiontype.php:5177
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
/question/type/questionbase.php:5287
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/report/classes/output/coursestructure.php:1347
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/repository/draftfiles_ajax.php:1067
  •   Variable Is Not A Condition
  •   Check JSON
  •   Print And Die
  •   Uses Default Values
  •   Useless Parenthesis
  •   No Parenthesis For Language Construct
/repository/draftfiles_ajax.php:2327
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Use Positive Condition
  •   Buried Assignation
  •   Iffectations
/repository/googledocs/lib.php:487
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
  •   Property Could Be Local
/repository/nextcloud/lib.php:4347
  •   Assumptions
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Never Called Parameter
/repository/onedrive/lib.php:417
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
  •   Property Could Be Local
/repository/repository_ajax.php:1397
  •   Missing Assignation In Branches
  •   Wrong Type For Native PHP Function
  •   Wrong Parameter Type
  •   Uses Default Values
  •   Could Make A Function
  •   Strict Comparison With Booleans
  •   Logical Should Use Symbolic Operators
/repository/s3/S3.php:7697
  •   Use Positive Condition
  •   Wrong Parameter Type
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
  •   Else If Versus Elseif
/repository/youtube/lib.php:507
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
  •   Property Could Be Local
/search/classes/base.php:3177
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/search/classes/engine.php:3777
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
/search/classes/engine.php:3887
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
/search/classes/manager.php:16927
  •   Unused Public Methods
  •   Mismatched Type
  •   Undefined Interfaces
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/search/engine/simpledb/classes/engine.php:2427
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Undefined Classes
  •   No Return Used
  •   Method Could Be Static
  •   Never Called Parameter
/tag/classes/manage_table.php:2997
  •   Undefined Properties
  •   Recycled Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Unresolved Classes
/tag/classes/reportbuilder/local/systemreports/tags.php:877
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
  •   Wrong Type Returned
/user/classes/hook/before_user_deleted.php:437
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/user/classes/hook/before_user_updated.php:397
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/webservice/lib.php:3667
  •   Undefined Properties
  •   Wrong Type For Native PHP Function
  •   Wrong Parameter Type
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Use random_int()
/admin/category.php:616
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Logical Should Use Symbolic Operators
/admin/mnet/access_control.php:816
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Logical Should Use Symbolic Operators
/admin/presets/classes/helper.php:1426
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Used Once Variables
  •   list() May Omit Variables
  •   New Object Then Immediate Call
/admin/presets/classes/manager.php:9886
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   StandaloneType True False Null
  •   Never Called Parameter
/admin/repository.php:1286
  •   Missing Assignation In Branches
  •   Use Positive Condition
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/admin/roles/define.php:2386
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
  •   Repeated print()
/admin/roles/lib.php:396
  •   Don't Pollute Global Space
  •   Mismatched Type
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Could Inject Parameter
/admin/tool/admin_presets/classes/local/action/load.php:1196
  •   Undefined Properties
  •   Merge If Then
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
/admin/tool/brickfield/classes/local/areas/core_course/base.php:1096
  •   Unused Public Methods
  •   Method Is Not An If
  •   Undefined Interfaces
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Should Use Local Class
/admin/tool/brickfield/classes/local/htmlchecker/common/brickfield_accessibility_css.php:3616
  •   Nested Ifthen
  •   Switch To Switch
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
  •   Else If Versus Elseif
/admin/tool/brickfield/classes/local/htmlchecker/common/brickfield_accessibility_table_test.php:326
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Method Could Be Static
  •   Missing Some Returntype
/admin/tool/brickfield/classes/local/tool/tool.php:2396
  •   Mismatched Type
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
  •   Never Called Parameter
/admin/tool/customlang/locallib.php:426
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Unfinished Object
  •   Property Could Be Local
/admin/tool/dataprivacy/classes/expired_contexts_manager.php:6336
  •   Undefined Properties
  •   Nested Ifthen
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Used Once Variables
  •   Iffectations
/admin/tool/dataprivacy/classes/purpose.php:576
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   Avoid Using stdClass
  •   Parent First
  •   Wrong Type With Default
  •   Implicit Nullable Type
/admin/tool/dataprivacy/lib.php:396
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/admin/tool/log/store/database/classes/privacy/provider.php:416
  •   Abstract Or Implements
  •   Repeated Interface
  •   Class, Interface, Enum Or Trait With Identical Names
  •   Already Parents Interface
  •   Interfaces Is Not Implemented
  •   Class Could Be Final
/admin/tool/log/store/standard/classes/privacy/provider.php:416
  •   Abstract Or Implements
  •   Repeated Interface
  •   Class, Interface, Enum Or Trait With Identical Names
  •   Already Parents Interface
  •   Interfaces Is Not Implemented
  •   Class Could Be Final
/admin/tool/messageinbound/roundcube/rcube_imap_generic.php:20466
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Could Inject Parameter
/admin/tool/messageinbound/roundcube/rcube_imap_generic.php:24816
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Too Many Local Variables
  •   Never Called Parameter
/admin/tool/messageinbound/roundcube/rcube_imap_generic.php:31116
  •   No Need For Else
  •   Use Positive Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Drop Else After Return
/admin/tool/messageinbound/roundcube/rcube_mime.php:7966
  •   Static Inclusions
  •   Modernize Empty With Expression
  •   Uses Default Values
  •   Useless Parenthesis
  •   @ Operator
  •   No Parenthesis For Language Construct
/admin/tool/mfa/classes/local/form/verification_field.php:446
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Useless Return
  •   Wrong Type With Default
  •   Implicit Nullable Type
/admin/tool/mfa/classes/output/renderer.php:1816
  •   Unused Public Methods
  •   Too Many Local Variables
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/admin/tool/mfa/factor/grace/classes/factor.php:886
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Different Argument Counts
/admin/tool/monitor/classes/output/managesubs/rules.php:1716
  •   No Need For Else
  •   Undefined Interfaces
  •   Bail Out Early
  •   Undefined Classes
  •   Unresolved Instanceof
  •   Drop Else After Return
/admin/tool/monitor/classes/output/managesubs/subs.php:1756
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/admin/tool/monitor/lib.php:886
  •   Undefined Properties
  •   Merge If Then
  •   Nested Ifthen
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
/admin/tool/policy/classes/output/guestconsent.php:516
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/admin/tool/policy/classes/output/page_agreedocs.php:1476
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Merge If Then
  •   Nested Ifthen
  •   Uses Default Values
  •   Strict Comparison With Booleans
/admin/tool/policy/classes/output/page_agreedocs.php:1946
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Merge If Then
  •   Bail Out Early
  •   Uses Default Values
  •   Strict Comparison With Booleans
/admin/tool/policy/classes/output/user_agreement.php:1116
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Undefined Interfaces
  •   Should Make Alias
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/admin/tool/task/renderer.php:2346
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Too Many Local Variables
  •   Should Use Local Class
  •   Method Could Be Static
/admin/tool/uploadcourse/classes/course.php:5766
  •   Double Checks
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Drop Else After Return
  •   Use === null
/admin/tool/uploadcourse/classes/tracker.php:2136
  •   Don't Mix ++
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Pre-increment
  •   Could Make A Function
/admin/tool/uploadcourse/classes/tracker.php:2146
  •   Don't Mix ++
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Pre-increment
  •   Could Make A Function
/admin/tool/uploadcourse/classes/tracker.php:2166
  •   Don't Mix ++
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Pre-increment
  •   Could Make A Function
/admin/tool/uploadcourse/classes/tracker.php:2176
  •   Don't Mix ++
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Pre-increment
  •   Could Make A Function
/admin/tool/uploadcourse/classes/tracker.php:2186
  •   Don't Mix ++
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Pre-increment
  •   Could Make A Function
/admin/tool/usertours/classes/local/target/base.php:686
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Unreachable Method
/analytics/classes/model_config.php:1476
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Method Could Be Static
  •   Missing Some Returntype
/auth/classes/output/digital_minor_page.php:476
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/auth/email/classes/external.php:2966
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
  •   Preprocessable
/auth/mnet/auth.php:7006
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
  •   Method Could Be Static
/auth/shibboleth/classes/admin_setting_special_convert_data_configfile.php:696
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Strpos()-like Comparison
  •   Could Make A Function
/backup/cc/cc_lib/cc_asssesment.php:4196
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Class-typed References
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Unreachable Method
/backup/cc/cc_lib/cc_asssesment.php:6596
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Class-typed References
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Method Could Be Static
/backup/cc/cc_lib/cc_asssesment.php:19436
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Should Use Local Class
  •   Could Inject Parameter
/backup/cc/cc_lib/cc_utils.php:2166
  •   Use Named Boolean In Argument Definition
  •   Class-typed References
  •   No Boolean As Default
  •   Objects Don't Need References
  •   Modified Typed Parameter
  •   Never Called Parameter
/backup/cc/cc_lib/cc_utils.php:2496
  •   Use Named Boolean In Argument Definition
  •   Class-typed References
  •   No Boolean As Default
  •   Undefined Classes
  •   Objects Don't Need References
  •   Modified Typed Parameter
/backup/cc/cc_lib/cc_utils.php:3766
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Same Name For Property And Method
  •   Unfinished Object
  •   Property Could Be Local
/backup/cc/cc_lib/cc_utils.php:4336
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Same Name For Property And Method
  •   Unfinished Object
  •   Property Could Be Local
/backup/cc/cc_lib/gral_lib/ccdependencyparser.php:716
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Useless Referenced Argument
  •   No Class In Global
  •   Too Many Local Variables
  •   Objects Don't Need References
/backup/cc/cc_lib/gral_lib/functions.php:926
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Htmlentities Calls
  •   var_dump()... Usage
  •   Could Make A Function
  •   Echo With Concat
/backup/cc/validator.php:296
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Same Name For Property And Method
  •   Unfinished Object
  •   Property Could Be Local
/backup/converter/convertlib.php:1886
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/backup/moodle2/restore_stepslib.php:13266
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
/backup/moodle2/restore_stepslib.php:22006
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
/backup/util/helper/backup_helper.class.php:3926
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Iffectations
/backup/util/ui/backup_ui_stage.class.php:946
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Mismatch Parameter Name
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Implicit Nullable Type
/backup/util/ui/backup_ui_stage.class.php:2586
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/backup/util/ui/base_ui.class.php:2666
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
/backup/util/ui/renderer.php:6046
  •   Undefined Properties
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/backup/util/ui/renderer.php:6076
  •   Undefined Properties
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/backup/util/ui/restore_ui_stage.class.php:6156
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/backup/util/ui/restore_ui_stage.class.php:7276
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/backup/util/ui/restore_ui_stage.class.php:8756
  •   Unused Public Methods
  •   Ambiguous Static
  •   Undefined Classes
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/backup/util/xml/parser/tests/parser_test.php:7566
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Repeated Regex
  •   Uses Default Values
  •   Could Make A Function
  •   Preprocessable
/backup/util/xml/parser/tests/parser_test.php:7646
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Repeated Regex
  •   Uses Default Values
  •   Could Make A Function
  •   Preprocessable
/badges/classes/reportbuilder/local/entities/badge.php:336
  •   Exit Without Argument
  •   Exit() Usage
  •   Could Make A Function
  •   Implied If
  •   Preprocessable
  •   Logical Should Use Symbolic Operators
/badges/lib.php:376
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/badges/lib/bakerlib.php:976
  •   Weak Type With Array
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Indices Are Int Or String
  •   Uses Default Values
  •   list() May Omit Variables
/badges/tests/badgeslib_test.php:5486
  •   Undefined Properties
  •   Fn Argument Variable Confusion
  •   Written Only Variables
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Empty Function
/blocks/classes/external/fetch_addable_blocks.php:1036
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Undefined Classes
  •   Unused Inherited Variable In Closure
/blocks/moodleblock.class.php:586
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/blocks/moodleblock.class.php:766
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/blocks/moodleblock.class.php:1466
  •   Ambiguous Static
  •   Should Use Local Class
  •   Empty Function
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Missing Some Returntype
/blocks/moodleblock.class.php:7256
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/blocks/rss_client/managefeeds.php:1306
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/blog/lib.php:1656
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
  •   No Return Used
/blog/lib.php:4036
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/blog/lib.php:7686
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Uses Default Values
  •   Strict Comparison With Booleans
  •   Else If Versus Elseif
/calendar/classes/external/day_exporter.php:1896
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Unused Inherited Variable In Closure
  •   Could Inject Parameter
/calendar/externallib.php:10546
  •   False To Array Conversion
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   list() May Omit Variables
/calendar/lib.php:4596
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Too Many Local Variables
  •   Undefined Classes
/calendar/lib.php:11886
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/calendar/lib.php:13206
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/calendar/lib.php:19506
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Could Inject Parameter
/calendar/lib.php:19816
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Could Inject Parameter
/calendar/lib.php:21806
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/calendar/lib.php:38366
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Mismatched Type
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
/calendar/lib.php:38676
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
/cohort/lib.php:3946
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Strict Comparison With Booleans
/cohort/lib.php:5076
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
/cohort/upload_form.php:3796
  •   Weak Type With Array
  •   Undefined Classes
  •   Unresolved Classes
  •   Native Alias Functions Usage
  •   Could Make A Function
  •   Preprocessable
/communication/provider/matrix/classes/matrix_client.php:436
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/communication/provider/matrix/tests/behat/behat_communication_matrix.php:466
  •   Unused Public Methods
  •   Method Is Not An If
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/competency/classes/course_competency.php:1016
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
/completion/classes/manager.php:5586
  •   Check JSON
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   @ Operator
  •   Could Make A Function
/contentbank/classes/content.php:686
  •   Undefined Properties
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/contentbank/classes/content.php:726
  •   Undefined Properties
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/contentbank/classes/contentbank.php:3386
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Make Alias
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/contentbank/classes/form/edit_content.php:846
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Method Could Be Static
  •   Never Called Parameter
/contentbank/tests/generator/lib.php:556
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Method Could Be Static
/course/classes/hook/after_course_updated.php:426
  •   Property Used In One Method Only
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/course/classes/hook/after_form_submission.php:406
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
/course/classes/hook/after_form_validation.php:516
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/course/classes/management_renderer.php:10196
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Could Inject Parameter
  •   Implicit Nullable Type
/course/classes/reportbuilder/local/formatters/completion.php:416
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   StandaloneType True False Null
/course/externallib.php:16646
  •   False To Array Conversion
  •   Scalar Are Not Arrays
  •   Uncaught Exceptions
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
/course/format/classes/base.php:856
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
  •   Property Could Be Local
/course/format/classes/base.php:10896
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/course/format/classes/base.php:11186
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/course/format/classes/local/sectionactions.php:3486
  •   Assumptions
  •   Mismatched Type
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Modified Typed Parameter
  •   Memoize MagicCall
/course/format/classes/output/local/content/addsection.php:636
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
/course/format/classes/output/local/content/cm.php:1106
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
/course/format/classes/output/local/content/section/availability.php:826
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   StandaloneType True False Null
/course/format/classes/output/local/content/section/availability.php:1866
  •   Wrong Type For Native PHP Function
  •   Nested Ifthen
  •   Wrong Parameter Type
  •   Uses Default Values
  •   Strict Comparison With Booleans
  •   Else If Versus Elseif
/course/format/classes/output/local/content/section/cmitem.php:866
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Should Make Alias
/course/format/singleactivity/lib.php:2226
  •   Undefined Properties
  •   Variable Is Not A Condition
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
/course/format/topics/classes/output/courseformat/content.php:506
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Method Could Be Static
/course/format/topics/classes/output/courseformat/content/section.php:436
  •   Unused Public Methods
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
/course/lib.php:7166
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   No Return Used
/course/lib.php:16326
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/course/lib.php:22256
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
/course/lib.php:24486
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Use ::Class Operator
/course/lib.php:43306
  •   Undefined Properties
  •   Buried Assignation
  •   Uses Default Values
  •   Assign And Lettered Logical Operator Precedence
  •   Could Make A Function
  •   Logical Should Use Symbolic Operators
/course/lib.php:43436
  •   Undefined Properties
  •   Buried Assignation
  •   Uses Default Values
  •   Assign And Lettered Logical Operator Precedence
  •   Could Make A Function
  •   Logical Should Use Symbolic Operators
/course/lib.php:44406
  •   Don't Pollute Global Space
  •   Mismatched Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
/course/lib.php:45146
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Wrong Parameter Type
  •   Uses Default Values
  •   Could Make A Function
  •   Preprocessable
/course/lib.php:45196
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Wrong Parameter Type
  •   Uses Default Values
  •   Could Make A Function
  •   Preprocessable
/course/mod.php:2786
  •   Missing Assignation In Branches
  •   Use Same Types For Comparisons
  •   Nested Ifthen
  •   Uses Default Values
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/course/moodleform_mod.php:10276
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Forgotten Visibility
  •   Different Argument Counts
/customfield/classes/data_controller.php:3606
  •   No Need For Triple Equal
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Switch To Switch
  •   Drop Else After Return
/customfield/classes/field.php:956
  •   Empty Json Error
  •   Check JSON
  •   Uses Default Values
  •   Could Make A Function
  •   Wrong Type Returned
  •   Useless Null Coalesce
/enrol/classes/hook/after_enrol_instance_status_updated.php:396
  •   Property Used In One Method Only
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/enrol/classes/hook/after_user_enrolled.php:416
  •   Property Used In One Method Only
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/enrol/classes/hook/before_enrol_instance_deleted.php:436
  •   Property Used In One Method Only
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/enrol/classes/hook/before_user_enrolment_removed.php:396
  •   Property Used In One Method Only
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/enrol/classes/hook/before_user_enrolment_removed.php:416
  •   Property Used In One Method Only
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/enrol/classes/hook/before_user_enrolment_updated.php:416
  •   Property Used In One Method Only
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/enrol/cohort/lib.php:1116
  •   Assumptions
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/enrol/externallib.php:1506
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/enrol/fee/classes/plugin.php:1396
  •   Assumptions
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/enrol/fee/classes/plugin.php:2566
  •   Missing Assignation In Branches
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/enrol/lti/cartridge.php:256
  •   Missing Include
  •   Uses Default Values
  •   include_once() Usage
  •   No Parenthesis For Language Construct
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
/enrol/lti/classes/data_connector.php:10026
  •   Undefined Properties
  •   Empty Json Error
  •   Modernize Empty With Expression
  •   Check JSON
  •   Uses Default Values
  •   Useless Null Coalesce
/enrol/lti/classes/local/ltiadvantage/service/tool_launch_service.php:2796
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Method Could Be Static
/enrol/lti/classes/task/sync_grades.php:506
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Ambiguous Static
  •   Too Many Local Variables
  •   Undefined Classes
  •   Method Could Be Static
/enrol/lti/lib.php:996
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/enrol/meta/lib.php:1176
  •   Assumptions
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/enrol/paypal/lib.php:1306
  •   Assumptions
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/enrol/paypal/lib.php:2516
  •   Missing Assignation In Branches
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/enrol/renderer.php:5156
  •   Undefined Properties
  •   Undefined Classes
  •   Unresolved Classes
  •   Native Alias Functions Usage
  •   Could Make A Function
  •   Preprocessable
/enrol/self/lib.php:11266
  •   Assumptions
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/filter/tex/lib.php:296
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/grade/classes/privacy/provider.php:12346
  •   Use Named Boolean In Argument Definition
  •   Insufficient Type
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/grade/edit/outcome/course.php:1076
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Logical Should Use Symbolic Operators
/grade/edit/outcome/course.php:1376
  •   Wrong Type With Call
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Unused Returned Value
  •   Could Make A Function
/grade/edit/outcome/edit.php:1686
  •   Useless Coalesce
  •   Useless Short Ternary
  •   Wrong Type With Call
  •   Variable Is Not A Condition
  •   Uses Default Values
  •   Unused Returned Value
/grade/edit/tree/grade.php:896
  •   Merge If Then
  •   Nested Ifthen
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Logical Should Use Symbolic Operators
/grade/edit/tree/index.php:1626
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Assign And Lettered Logical Operator Precedence
  •   Logical Should Use Symbolic Operators
/grade/edit/tree/lib.php:1236
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/grade/edit/tree/outcomeitem.php:1866
  •   Missing Assignation In Branches
  •   Avoid Optional Properties
  •   Empty Blocks
  •   Uses Default Values
  •   Strict Comparison With Booleans
  •   Logical Should Use Symbolic Operators
/grade/export/keymanager.php:496
  •   Wrong Type With Call
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Unused Returned Value
  •   Could Make A Function
/grade/grading/form/lib.php:5566
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Useless Instructions
  •   Used Once Variables
  •   No Choice
  •   Useless Null Coalesce
/grade/grading/form/lib.php:6156
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Unreachable Method
/grade/grading/form/lib.php:6296
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Unreachable Method
/grade/grading/form/lib.php:10676
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Unreachable Method
/grade/lib.php:5456
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Could Inject Parameter
/grade/lib.php:19466
  •   No Need For Else
  •   Written Only Variables
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Drop Else After Return
/grade/lib.php:26956
  •   No Need For Else
  •   Nested Ifthen
  •   strpos() Too Much
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
/grade/lib.php:30706
  •   No Need For Else
  •   Nested Ifthen
  •   strpos() Too Much
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
/grade/report/grader/index.php:1526
  •   Wrong Type With Call
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Unused Returned Value
  •   Could Make A Function
/grade/report/grader/lib.php:4046
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
  •   list() May Omit Variables
/grade/report/grader/lib.php:10306
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Written Only Variables
  •   Undefined Variable
  •   Use Positive Condition
  •   Else If Versus Elseif
/grade/report/grader/lib.php:20226
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Method Could Be Static
/grade/report/grader/lib.php:20726
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Written Only Variables
  •   Undefined Variable
  •   Use Positive Condition
  •   Used Once Variables (In Scope)
/grade/report/history/index.php:1136
  •   Wrong Type With Call
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Unused Returned Value
  •   Could Make A Function
/grade/report/overview/lib.php:4196
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Uses Default Values
  •   Could Make A Function
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/grade/report/singleview/classes/local/screen/grade_select.php:276
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Empty Function
/grade/report/singleview/classes/local/screen/user_select.php:296
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Empty Function
/grade/report/singleview/tests/fixtures/screen.php:416
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Empty Function
/grade/report/singleview/tests/fixtures/screen.php:476
  •   Unused Public Methods
  •   Type Must Be Returned
  •   Method Signature Must Be Compatible
  •   Must Return Methods
  •   Empty Function
  •   Methods Without Return
/grade/report/user/index.php:656
  •   Missing Assignation In Branches
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Else If Versus Elseif
  •   Use === null
/grade/report/user/lib.php:1766
  •   Method Is Not An If
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Could Inject Parameter
/group/classes/hook/after_group_membership_added.php:416
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/group/classes/hook/after_group_membership_removed.php:416
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/group/grouping_form.php:996
  •   Nested Ifthen
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/group/lib.php:7766
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   No Return Used
/group/lib.php:8066
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   No Return Used
/group/lib.php:10026
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   No Return Used
/h5p/classes/editor_framework.php:3316
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   No Boolean As Default
  •   Ambiguous Static
  •   Undefined Classes
/h5p/classes/editor_framework.php:3446
  •   Unused Public Methods
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Empty Function
  •   StandaloneType True False Null
/lib/accesslib.php:6016
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
/lib/accesslib.php:6266
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
/lib/accesslib.php:19906
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
/lib/accesslib.php:38406
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
/lib/accesslib.php:46446
  •   Don't Pollute Global Space
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/adminlib.php:8486
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Different Argument Counts
  •   Never Called Parameter
/lib/adminlib.php:44436
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Forgotten Visibility
  •   Parent First
  •   Never Called Parameter
/lib/adminlib.php:88796
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   StandaloneType True False Null
/lib/adminlib.php:104546
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Parent First
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Never Called Parameter
/lib/adodb/adodb-active-record.inc.php:1066
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Should Use Local Class
  •   Forgotten Visibility
  •   Never Called Parameter
/lib/adodb/adodb-csvlib.inc.php:406
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   No Class In Global
  •   Objects Don't Need References
/lib/adodb/adodb-csvlib.inc.php:1136
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Iffectations
  •   Drop Else After Return
/lib/adodb/adodb-datadict.inc.php:6316
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Undefined Classes
  •   Forgotten Visibility
/lib/adodb/adodb-lib.inc.php:7126
  •   No Need For Else
  •   Undefined Variable
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Could Make A Function
/lib/adodb/adodb-lib.inc.php:7236
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Objects Don't Need References
/lib/adodb/adodb-loadbalancer.inc.php:4586
  •   No Need For Else
  •   Nested Ifthen
  •   Undefined Variable
  •   Bail Out Early
  •   Drop Else After Return
  •   Strict Comparison With Booleans
/lib/adodb/adodb-perf.inc.php:2296
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Var Keyword
  •   Forgotten Visibility
  •   Same Name For Property And Method
/lib/adodb/adodb-perf.inc.php:2446
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Forgotten Visibility
  •   Same Name For Property And Method
  •   Never Called Parameter
/lib/adodb/adodb-time.inc.php:4156
  •   Don't Pollute Global Space
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Undefined Classes
  •   No Return Used
  •   Never Called Parameter
/lib/adodb/adodb-time.inc.php:8206
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
/lib/adodb/adodb-time.inc.php:10696
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Too Many Local Variables
/lib/adodb/adodb-xmlschema.inc.php:22026
  •   Method Is Not An If
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Never Called Parameter
/lib/adodb/adodb-xmlschema03.inc.php:23926
  •   Method Is Not An If
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Never Called Parameter
/lib/adodb/adodb.inc.php:3796
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Forgotten Visibility
  •   Method Could Be Static
/lib/adodb/adodb.inc.php:6976
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Property
  •   Var Keyword
  •   Forgotten Visibility
/lib/adodb/adodb.inc.php:11336
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
/lib/adodb/adodb.inc.php:17696
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
/lib/adodb/adodb.inc.php:19036
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
  •   Wrong Type Returned
/lib/adodb/adodb.inc.php:26576
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
/lib/adodb/adodb.inc.php:31306
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
/lib/adodb/adodb.inc.php:34746
  •   Logical To in_array()
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Drop Else After Return
  •   Strict Comparison With Booleans
/lib/adodb/adodb.inc.php:35236
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
/lib/adodb/adodb.inc.php:35386
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Never Called Parameter
/lib/adodb/adodb.inc.php:35636
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Never Called Parameter
/lib/adodb/adodb.inc.php:39666
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Var Keyword
  •   Forgotten Visibility
  •   Mismatch Properties Types
  •   Same Name For Property And Method
/lib/adodb/adodb.inc.php:39706
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/adodb/adodb.inc.php:40396
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Never Called Parameter
/lib/adodb/adodb.inc.php:44526
  •   Logical To in_array()
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Drop Else After Return
  •   Strict Comparison With Booleans
/lib/adodb/adodb.inc.php:58896
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   No Return Used
  •   Never Called Parameter
/lib/adodb/datadict/datadict-db2.inc.php:1446
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Forgotten Visibility
/lib/adodb/drivers/adodb-ads.inc.php:7456
  •   Variable Is Not A Condition
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Useless Parenthesis
  •   Undefined Functions
  •   @ Operator
/lib/adodb/drivers/adodb-db2.inc.php:13506
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/lib/adodb/drivers/adodb-db2.inc.php:17536
  •   Undefined Variable
  •   Useless Global
  •   Make Global A Property
  •   Used Once Variables (In Scope)
  •   Global Usage
  •   Could Be A Static Variable
/lib/adodb/drivers/adodb-db2.inc.php:18876
  •   Variable Is Not A Condition
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Useless Parenthesis
  •   Undefined Functions
  •   @ Operator
/lib/adodb/drivers/adodb-fbsql.inc.php:1916
  •   Variable Is Not A Condition
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Useless Parenthesis
  •   Undefined Functions
  •   @ Operator
/lib/adodb/drivers/adodb-ibase.inc.php:1086
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Forgotten Visibility
  •   Different Argument Counts
/lib/adodb/drivers/adodb-informix72.inc.php:4796
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Undefined Classes
  •   Forgotten Visibility
  •   Different Argument Counts
/lib/adodb/drivers/adodb-ldap.inc.php:456
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Var Keyword
  •   Forgotten Visibility
  •   Same Name For Property And Method
/lib/adodb/drivers/adodb-mssql.inc.php:6746
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Forgotten Visibility
  •   No Return Used
  •   Never Called Parameter
/lib/adodb/drivers/adodb-mssql.inc.php:9936
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Forgotten Visibility
  •   Different Argument Counts
/lib/adodb/drivers/adodb-mssqlnative.inc.php:12636
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Forgotten Visibility
  •   Different Argument Counts
  •   Never Called Parameter
/lib/adodb/drivers/adodb-mysqli.inc.php:3076
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Forgotten Visibility
  •   Never Called Parameter
/lib/adodb/drivers/adodb-mysqli.inc.php:12176
  •   Weak Type With Array
  •   Check All Types
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Drop Else After Return
/lib/adodb/drivers/adodb-oci8.inc.php:9746
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Ambiguous Static
  •   Forgotten Visibility
/lib/adodb/drivers/adodb-odbc_db2.inc.php:766
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Forgotten Visibility
  •   Different Argument Counts
/lib/adodb/drivers/adodb-odbtp.inc.php:5746
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Never Called Parameter
/lib/adodb/drivers/adodb-pdo.inc.php:3036
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Mismatched Default Arguments
/lib/adodb/drivers/adodb-pdo.inc.php:7936
  •   Scalar Or Object Property
  •   Assign Default To Properties
  •   Var Keyword
  •   Forgotten Visibility
  •   Mismatch Properties Types
  •   Inherited Property Type Must Match
/lib/adodb/drivers/adodb-postgres64.inc.php:876
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Var Keyword
  •   Forgotten Visibility
  •   Same Name For Property And Method
/lib/adodb/drivers/adodb-sqlite.inc.php:5026
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Forgotten Visibility
  •   Different Argument Counts
  •   Never Called Parameter
/lib/adodb/drivers/adodb-sqlite3.inc.php:7996
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Forgotten Visibility
  •   Different Argument Counts
  •   Never Called Parameter
/lib/adodb/drivers/adodb-sybase.inc.php:3496
  •   Variable Is Not A Condition
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Useless Parenthesis
  •   Undefined Functions
  •   @ Operator
/lib/adodb/drivers/adodb-sybase.inc.php:3586
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Undefined Classes
  •   Forgotten Visibility
  •   Different Argument Counts
/lib/authlib.php:4276
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
  •   Method Could Be Static
/lib/aws-sdk/src/AbstractConfigurationProvider.php:166
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   No Public Access
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/aws-sdk/src/ClientResolver.php:9006
  •   Unused Public Methods
  •   Assumptions
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Could Inject Parameter
/lib/aws-sdk/src/Credentials/AssumeRoleWithWebIdentityCredentialProvider.php:666
  •   Constant Used Only Once
  •   Weak Type With Array
  •   Casting Ternary
  •   Uses Default Values
  •   Nested Ternary
  •   Should Use Coalesce
/lib/aws-sdk/src/Credentials/InstanceProfileProvider.php:566
  •   Constant Used Only Once
  •   Weak Type With Array
  •   Casting Ternary
  •   Uses Default Values
  •   Nested Ternary
  •   Should Use Coalesce
/lib/aws-sdk/src/Credentials/InstanceProfileProvider.php:586
  •   Constant Used Only Once
  •   Weak Type With Array
  •   Casting Ternary
  •   Uses Default Values
  •   Nested Ternary
  •   Should Use Coalesce
/lib/aws-sdk/src/DynamoDb/SessionHandler.php:2156
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/aws-sdk/src/Middleware.php:696
  •   Ambiguous Static
  •   Unused Parameter
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/lib/aws-sdk/src/S3/S3MultiRegionClient.php:2106
  •   Abstract Or Implements
  •   Repeated Interface
  •   Method Collision Traits
  •   Already Parents Interface
  •   Interfaces Is Not Implemented
  •   Class Could Be Final
/lib/behat/classes/util.php:2256
  •   Don't Read And Write In One Expression
  •   Check JSON
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
/lib/behat/lib.php:4866
  •   Missing Assignation In Branches
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Iffectations
  •   Strpos()-like Comparison
  •   Strict Comparison With Booleans
/lib/bennu/iCalendar_components.php:166
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/bennu/iCalendar_components.php:176
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/bennu/iCalendar_components.php:3656
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   Inherited Property Type Must Match
  •   Unfinished Object
/lib/bennu/iCalendar_components.php:4436
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   Inherited Property Type Must Match
  •   Unfinished Object
/lib/bennu/iCalendar_components.php:5616
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   Inherited Property Type Must Match
  •   Unfinished Object
/lib/bennu/iCalendar_components.php:6126
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   Inherited Property Type Must Match
  •   Unfinished Object
/lib/bennu/iCalendar_properties.php:196
  •   Property Used In One Method Only
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/bennu/iCalendar_properties.php:226
  •   Property Used In One Method Only
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/bennu/iCalendar_properties.php:266
  •   Property Used In One Method Only
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/bennu/iCalendar_properties.php:12346
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Inherited Property Type Must Match
  •   Unfinished Object
/lib/blocklib.php:14456
  •   Undefined Properties
  •   Nested Ifthen
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/lib/blocklib.php:15146
  •   Undefined Properties
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/lib/blocklib.php:15966
  •   Variable Is Not A Condition
  •   No Need For Else
  •   Nested Ifthen
  •   Use Positive Condition
  •   Bail Out Early
  •   Drop Else After Return
/lib/blocklib.php:24316
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Useless Return
  •   Empty Function
/lib/blocklib.php:24946
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/lib/classes/attribute_helper.php:1246
  •   Wrong Type With Call
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Empty Instructions
  •   Could Make A Function
  •   Wrong Type Returned
/lib/classes/content/export/zipwriter.php:656
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Assign Default To Properties
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
/lib/classes/context/system.php:1386
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/classes/files/curl_security_helper.php:666
  •   Unused Public Methods
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Could Inject Parameter
  •   Different Argument Counts
/lib/classes/hook/access/after_role_assigned.php:396
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/access/after_role_assigned.php:416
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/access/after_role_unassigned.php:406
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/access/after_role_unassigned.php:426
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/output/after_standard_main_region_html_generation.php:396
  •   Undefined Interfaces
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/output/before_footer_html_generation.php:396
  •   Undefined Interfaces
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/output/before_html_attributes.php:406
  •   Undefined Interfaces
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/output/before_http_headers.php:386
  •   Undefined Interfaces
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/output/before_standard_head_html_generation.php:386
  •   Undefined Interfaces
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/output/before_standard_top_of_body_html_generation.php:396
  •   Undefined Interfaces
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/classes/hook/task/after_failed_task_max_delay.php:386
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
/lib/classes/navigation/views/primary.php:1326
  •   Merge If Then
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Strict Comparison With Booleans
  •   Else If Versus Elseif
/lib/classes/output/core_renderer.php:7716
  •   Undefined Properties
  •   strpos() Too Much
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Else If Versus Elseif
/lib/classes/output/core_renderer.php:22856
  •   Missing Assignation In Branches
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Could Make A Function
  •   Preprocessable
/lib/classes/output/core_renderer.php:33366
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Interfaces
  •   Undefined Classes
  •   Unresolved Instanceof
  •   Else If Versus Elseif
/lib/classes/output/core_renderer.php:36696
  •   Should Use Ternary Operator
  •   Undefined Interfaces
  •   Use Positive Condition
  •   Undefined Classes
  •   Unresolved Instanceof
  •   Else If Versus Elseif
/lib/classes/output/core_renderer.php:48706
  •   Unused Public Methods
  •   Double Checks
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Method Could Be Static
/lib/classes/output/custom_menu_item.php:1316
  •   Missing Assignation In Branches
  •   Use Positive Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Strict Comparison With Booleans
/lib/classes/output/theme_config.php:4506
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Iffectations
  •   Drop Else After Return
/lib/classes/output/theme_config.php:4776
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/classes/output/theme_config.php:20666
  •   Method Is Not An If
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Undefined Classes
/lib/classes/output/theme_config.php:21076
  •   Undefined Properties
  •   Check All Types
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Drop Else After Return
/lib/classes/param.php:10386
  •   Wrong Type For Native PHP Function
  •   Nested Ifthen
  •   Empty Blocks
  •   Repeated Regex
  •   Uses Default Values
  •   Else If Versus Elseif
/lib/classes/plugininfo/communication.php:336
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Ambiguous Static
  •   StandaloneType True False Null
/lib/classes/plugininfo/repository.php:1056
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Iffectations
  •   Use ::Class Operator
/lib/classes/report_helper.php:416
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Iffectations
/lib/classes/session/manager.php:12576
  •   False To Array Conversion
  •   Null Or Boolean Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Timestamp Difference
  •   Useless Parenthesis
/lib/classes/task/course_backup_task.php:566
  •   No Need For Else
  •   Use Positive Condition
  •   Bail Out Early
  •   Buried Assignation
  •   Iffectations
  •   Drop Else After Return
/lib/classes/update/checker.php:6096
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Unused Returned Value
  •   Use random_int()
  •   Could Make A Function
  •   Preprocessable
/lib/classes/user.php:8346
  •   array_key_exists() Works On Arrays
  •   Null Or Boolean Arrays
  •   No Need For Else
  •   Use Positive Condition
  •   Indices Are Int Or String
  •   Drop Else After Return
/lib/classes/user.php:9666
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
  •   No Parenthesis For Language Construct
/lib/classes/user.php:12326
  •   Mismatched Default Arguments
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/lib/clilib.php:836
  •   Assumptions
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/clilib.php:1756
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   No Return Used
  •   Never Called Parameter
/lib/clilib.php:2276
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   No Return Used
  •   Never Called Parameter
/lib/completionlib.php:16776
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/lib/componentlib.class.php:3076
  •   No Need For Else
  •   Bail Out Early
  •   Uses Default Values
  •   Iffectations
  •   Drop Else After Return
  •   Could Make A Function
/lib/componentlib.class.php:3566
  •   No Need For Else
  •   Bail Out Early
  •   Uses Default Values
  •   Iffectations
  •   Drop Else After Return
  •   Could Make A Function
/lib/db/upgradelib.php:5486
  •   Undefined Properties
  •   Fn Argument Variable Confusion
  •   Written Only Variables
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Empty Function
/lib/db/upgradelib.php:5496
  •   Undefined Properties
  •   Fn Argument Variable Confusion
  •   Written Only Variables
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Empty Function
/lib/ddl/database_manager.php:9586
  •   Unused Public Methods
  •   Assumptions
  •   Max Level Of Nesting
  •   Too Many Local Variables
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/deprecatedlib.php:5096
  •   Check Division By Zero
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Useless Parenthesis
  •   Could Make A Function
  •   Avoid Substr() One
/lib/dml/auroramysql_native_moodle_database.php:396
  •   Don't Pollute Global Space
  •   Abstract Or Implements
  •   Trait Not Found
  •   Forgotten Interface
  •   No Class In Global
  •   Class Could Be Final
/lib/dml/auroramysql_native_moodle_database.php:606
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   StandaloneType True False Null
  •   Method Could Be Static
  •   Missing Some Returntype
/lib/dml/mysqli_native_moodle_database.php:396
  •   Don't Pollute Global Space
  •   Abstract Or Implements
  •   Trait Not Found
  •   Forgotten Interface
  •   No Class In Global
  •   Could Be Abstract Class
/lib/dml/mysqli_native_moodle_database.php:12476
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   No Return Used
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/dml/oci_native_moodle_database.php:14156
  •   Unused Public Methods
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/dml/oci_native_moodle_database.php:14726
  •   Unused Public Methods
  •   Mismatched Type
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/dml/pgsql_native_moodle_database.php:396
  •   Don't Pollute Global Space
  •   Abstract Or Implements
  •   Trait Not Found
  •   Forgotten Interface
  •   No Class In Global
  •   Could Be Abstract Class
/lib/dml/pgsql_native_moodle_database.php:8546
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/dml/pgsql_native_moodle_recordset.php:1106
  •   No Null For Native PHP Functions
  •   Nested Ifthen
  •   Same Conditions In Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/lib/dml/tests/dml_test.php:2206
  •   Written Only Variables
  •   Identical Consecutive Expression
  •   Used Once Variables (In Scope)
  •   Used Once Variables
  •   Randomly Sorted Arrays
  •   list() May Omit Variables
/lib/dml/tests/fixtures/read_slave_moodle_database_special.php:1116
  •   Unused Public Methods
  •   PHP Native Interfaces and Return Type
  •   PHP Native Class Type Compatibility
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Method Could Be Static
/lib/dml/tests/fixtures/read_slave_moodle_recordset_special.php:476
  •   Unused Public Methods
  •   PHP Native Interfaces and Return Type
  •   PHP Native Class Type Compatibility
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Method Could Be Static
/lib/enrollib.php:3106
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
/lib/enrollib.php:14856
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
/lib/enrollib.php:16956
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   No Class In Global
  •   Never Called Parameter
/lib/enrollib.php:19366
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/lib/enrollib.php:19946
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/enrollib.php:20446
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/enrollib.php:20556
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/enrollib.php:24516
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Unreachable Method
/lib/enrollib.php:24736
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/lib/enrollib.php:26696
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
  •   No Return Used
/lib/enrollib.php:28666
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/lib/environmentlib.php:11866
  •   Method Is Not An If
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Useless Referenced Argument
  •   No Class In Global
  •   Objects Don't Need References
/lib/environmentlib.php:12846
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/environmentlib.php:15996
  •   Don't Pollute Global Space
  •   Useless Referenced Argument
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/lib/evalmath/evalmath.class.php:4316
  •   Append And Assign Arrays
  •   Weak Type With Array
  •   Buried Assignation
  •   Uses Default Values
  •   Could Make A Function
  •   Use === null
/lib/filebrowser/file_browser.php:1856
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Else If Versus Elseif
/lib/filebrowser/virtual_root_file.php:1316
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/lib/filelib.php:6116
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   Never Called Parameter
/lib/filelib.php:13896
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   No Return Used
/lib/filelib.php:15186
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Too Many Local Variables
/lib/filelib.php:43976
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/lib/filelib.php:52186
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   strpos() Too Much
  •   Switch To Switch
  •   Uses Default Values
  •   Else If Versus Elseif
/lib/filestorage/file_storage.php:12246
  •   Unused Public Methods
  •   Assumptions
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/filestorage/file_storage.php:19106
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/filestorage/file_storage.php:19236
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/lib/filestorage/tgz_packer.php:3296
  •   Max Level Of Nesting
  •   Too Many Local Variables
  •   Should Use Local Class
  •   Undefined Classes
  •   No Return Used
  •   Method Could Be Static
/lib/filestorage/zip_archive.php:5966
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
/lib/filestorage/zip_archive.php:7386
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Wrong fopen() Mode
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/lib/form/choicedropdown.php:1016
  •   Unused Public Methods
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   Ambiguous Static
  •   Objects Don't Need References
/lib/form/defaultcustom.php:2666
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
/lib/form/filetypes.php:1176
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
/lib/form/filetypes.php:1496
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
/lib/form/group.php:2626
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
/lib/form/header.php:706
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/formslib.php:6316
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Forgotten Visibility
  •   Never Called Parameter
/lib/formslib.php:7676
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
  •   Method Could Be Static
/lib/google/curlio.php:426
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Unfinished Object
  •   Property Could Be Local
/lib/grade/grade_grade.php:10516
  •   Undefined Properties
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Drop Else After Return
  •   Use === null
/lib/grade/grade_item.php:25876
  •   Written Only Variables
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Use ::Class Operator
/lib/gradelib.php:7126
  •   Should Use Ternary Operator
  •   Undefined Variable
  •   Use Positive Condition
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
/lib/grouplib.php:9396
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Could Inject Parameter
  •   Never Called Parameter
/lib/grouplib.php:11746
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Could Make A Function
/lib/grouplib.php:11976
  •   Don't Pollute Global Space
  •   Mismatched Type
  •   No Class In Global
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/guzzlehttp/guzzle/src/Exception/ClientException.php:86
  •   Can't Implement Throwable
  •   Repeated Interface
  •   Unthrown Exception
  •   Already Parents Interface
  •   Interfaces Is Not Implemented
  •   Class Could Be Final
/lib/guzzlehttp/guzzle/src/Exception/ServerException.php:86
  •   Can't Implement Throwable
  •   Repeated Interface
  •   Unthrown Exception
  •   Already Parents Interface
  •   Interfaces Is Not Implemented
  •   Class Could Be Final
/lib/guzzlehttp/kevinrob/guzzlecache/src/CacheMiddleware.php:2946
  •   Useless Referenced Argument
  •   Class-typed References
  •   Unused Parameter
  •   Undefined Classes
  •   Objects Don't Need References
  •   No Return Used
/lib/guzzlehttp/psr7/src/AppendStream.php:2366
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Method Signature Must Be Compatible
  •   Ambiguous Static
  •   Must Return Methods
  •   Method Could Be Static
/lib/guzzlehttp/psr7/src/PumpStream.php:1166
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Method Signature Must Be Compatible
  •   Ambiguous Static
  •   Must Return Methods
  •   Method Could Be Static
/lib/guzzlehttp/psr7/src/Uri.php:2826
  •   Unused Public Methods
  •   Mismatched Type
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/lib/htmlpurifier/HTMLPurifier/HTMLModule/Tidy.php:226
  •   No Null For Index
  •   Property Used In One Method Only
  •   No Public Access
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/htmlpurifier/HTMLPurifier/Injector/AutoParagraph.php:3436
  •   Undefined Properties
  •   No Need For Else
  •   Empty Blocks
  •   Use Positive Condition
  •   Uses Default Values
  •   Drop Else After Return
/lib/htmlpurifier/HTMLPurifier/Lexer/DOMLex.php:3096
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/htmlpurifier/HTMLPurifier/URIFilter.php:576
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/installlib.php:626
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Used Once Variables
  •   list() May Omit Variables
  •   Preprocessable
/lib/lti1p3/src/DeepLinkResources/Icon.php:136
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/lti1p3/src/DeepLinkResources/Icon.php:146
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/lti1p3/src/LtiGrade.php:246
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Null Or Boolean Arrays
  •   Useless Instructions
  •   Use ::Class Operator
  •   No Choice
/lib/lti1p3/src/LtiMessageLaunch.php:736
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/lti1p3/src/LtiServiceConnector.php:2016
  •   Undefined Properties
  •   Check JSON
  •   Uses Default Values
  •   Useless Instructions
  •   No Choice
  •   Useless Null Coalesce
/lib/lti1p3/src/ServiceRequest.php:476
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/ltiprovider/src/ToolProvider/Context.php:3476
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Should Make Alias
  •   Could Inject Parameter
/lib/ltiprovider/src/ToolProvider/ResourceLink.php:8666
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Should Make Alias
  •   Could Inject Parameter
/lib/maxmind/GeoIp2/WebService/Client.php:556
  •   Undefined Interfaces
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Undefined Classes
  •   Wrong Typed Property Default
  •   Property Could Be Local
/lib/mlbackend/php/phpml/src/Phpml/Metric/Accuracy.php:166
  •   Unused Public Methods
  •   Assumptions
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Should Use Local Class
/lib/modinfolib.php:9616
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   Too Many Local Variables
  •   Should Use Local Class
/lib/moodlelib.php:8106
  •   Test Then Cast
  •   No Need For Else
  •   Nested Ifthen
  •   Drop Else After Return
  •   Logical Should Use Symbolic Operators
  •   Use === null
/lib/moodlelib.php:22266
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/lib/moodlelib.php:37936
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/lib/moodlelib.php:59786
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Never Called Parameter
/lib/moodlelib.php:64016
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Never Called Parameter
/lib/moodlelib.php:71936
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/lib/moodlelib.php:79326
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/lib/moodlelib.php:82376
  •   Empty Loop
  •   Wrong Type For Native PHP Function
  •   Static Loop
  •   Empty Blocks
  •   Uses Default Values
  •   Pre-increment
/lib/moodlelib.php:85466
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Switch To Switch
  •   Uses Default Values
  •   Could Make A Function
  •   Else If Versus Elseif
/lib/moodlelib.php:86066
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Use Positive Condition
  •   Uses Default Values
  •   Could Make A Function
  •   Else If Versus Elseif
/lib/moodlelib.php:90686
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   No Hardcoded Path
  •   Iffectations
  •   @ Operator
/lib/myprofilelib.php:2356
  •   Undefined Properties
  •   Modernize Empty With Expression
  •   Nested Ifthen
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
/lib/navigationlib.php:3816
  •   Mismatched Type
  •   Undefined Interfaces
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/lib/navigationlib.php:9056
  •   No Need For Else
  •   Undefined Interfaces
  •   Bail Out Early
  •   Undefined Classes
  •   Unresolved Instanceof
  •   Drop Else After Return
/lib/navigationlib.php:9956
  •   Nested Ifthen
  •   Written Only Variables
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/lib/navigationlib.php:19746
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Undefined Classes
  •   No Return Used
/lib/navigationlib.php:21636
  •   Undefined Properties
  •   No Need For Else
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Drop Else After Return
/lib/openspout/src/Reader/Common/ColumnWidth.php:196
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/openspout/src/Writer/Common/ColumnWidth.php:196
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/openspout/src/Writer/XLSX/MergeCell.php:206
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/lib/openspout/src/Writer/XLSX/Options/HeaderFooter.php:106
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/openspout/src/Writer/XLSX/Options/HeaderFooter.php:116
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/openspout/src/Writer/XLSX/Options/HeaderFooter.php:126
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/openspout/src/Writer/XLSX/Options/HeaderFooter.php:136
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/openspout/src/Writer/XLSX/Options/PageSetup.php:126
  •   Property Used In One Method Only
  •   Undefined Interfaces
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/outputlib.php:776
  •   No Need For Else
  •   Written Only Variables
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Drop Else After Return
/lib/pear/HTML/QuickForm/Renderer.php:576
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/Renderer.php:706
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/Renderer.php:1116
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/Renderer.php:1266
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/Renderer.php:1546
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/Renderer/Object.php:3806
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Var Keyword
  •   Forgotten Visibility
  •   Unfinished Object
/lib/pear/HTML/QuickForm/Renderer/Object.php:3926
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Var Keyword
  •   Forgotten Visibility
  •   Unfinished Object
/lib/pear/HTML/QuickForm/Renderer/Object.php:4106
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Var Keyword
  •   Forgotten Visibility
  •   Unfinished Object
/lib/pear/HTML/QuickForm/Rule.php:626
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Forgotten Visibility
  •   Unreachable Method
/lib/pear/HTML/QuickForm/Rule/Email.php:396
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   No Boolean As Default
  •   Ambiguous Static
  •   Undefined Classes
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/date.php:4896
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/element.php:4306
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/file.php:496
  •   Ambiguous Visibilities
  •   Var Keyword
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
/lib/pear/HTML/QuickForm/group.php:4386
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/hidden.php:886
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/hiddenselect.php:1106
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/hierselect.php:4816
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/pear/HTML/QuickForm/html.php:686
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
  •   Forgotten Visibility
/lib/php-css-parser/CSSList/Document.php:1576
  •   Unused Public Methods
  •   Mismatched Type
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
  •   Method Could Be Static
/lib/php-di/php-di/src/Compiler/Compiler.php:816
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/php-di/php-di/src/Definition/Resolver/FactoryResolver.php:376
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/php-di/php-di/src/Definition/Resolver/ObjectCreator.php:376
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Unfinished Object
  •   Property Could Be Local
/lib/php-di/php-di/src/Definition/Source/NoAutowiring.php:176
  •   Unused Public Methods
  •   Must Return Methods
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/lib/php-di/php-di/src/Definition/Source/ReflectionBasedAutowiring.php:196
  •   StandaloneType True False Null
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Could Inject Parameter
  •   Implicit Nullable Type
  •   Never Called Parameter
/lib/php-jwt/src/CachedKeySet.php:1306
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/php-jwt/src/JWT.php:506
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   No Public Access
  •   StandaloneType True False Null
  •   Unfinished Object
/lib/phpminimumversionlib.php:476
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   No Return Used
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php:48576
  •   Comparison Is Always The Same
  •   Assumptions
  •   Avoid Optional Properties
  •   No Need For Else
  •   Bail Out Early
  •   Drop Else After Return
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php:50006
  •   Comparison Is Always The Same
  •   Assumptions
  •   Avoid Optional Properties
  •   No Need For Else
  •   Bail Out Early
  •   Drop Else After Return
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php:50296
  •   Comparison Is Always The Same
  •   Assumptions
  •   Avoid Optional Properties
  •   No Need For Else
  •   Bail Out Early
  •   Drop Else After Return
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DCount.php:366
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Different Argument Counts
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DMax.php:366
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Different Argument Counts
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DMin.php:366
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Ambiguous Static
  •   Different Argument Counts
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical.php:1626
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Should Use Local Class
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/CellRange.php:1066
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Ambiguous Static
  •   Same Name For Property And Method
  •   Non Nullable Getters
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/DataSeriesValues.php:4746
  •   Unused Public Methods
  •   Method Is Not An If
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Modified Typed Parameter
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory/SimpleCache1.php:1056
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Ambiguous Static
  •   Undefined Classes
  •   No Return Used
  •   Never Called Parameter
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory/SimpleCache3.php:906
  •   PHP Native Class Type Compatibility
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Ambiguous Static
  •   No Return Used
  •   Never Called Parameter
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php:16246
  •   Should Use Ternary Operator
  •   Use Positive Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/ColumnAndRowAttributes.php:776
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Modified Typed Parameter
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat/Wizard/NumberBase.php:156
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter.php:7556
  •   Useless Referenced Argument
  •   Class-typed References
  •   Should Use Local Class
  •   Undefined Classes
  •   Objects Don't Need References
  •   Method Could Be Static
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/CellIterator.php:366
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Assign Default To Properties
  •   StandaloneType True False Null
  •   Mismatch Properties Types
  •   Unfinished Object
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Chart.php:4316
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Insufficient Type
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Method Could Be Static
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Style.php:2736
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Insufficient Type
  •   No Boolean As Default
  •   Should Use Local Class
  •   Method Could Be Static
/lib/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php:1536
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Insufficient Type
  •   No Boolean As Default
  •   Should Use Local Class
  •   Method Could Be Static
/lib/phpunit/classes/advanced_testcase.php:6476
  •   No Need For Else
  •   Nested Ifthen
  •   strpos() Too Much
  •   Bail Out Early
  •   Uses Default Values
  •   Could Make A Function
/lib/phpxmlrpc/Helper/Http.php:2356
  •   Missing Assignation In Branches
  •   Weak Type With Array
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   @ Operator
/lib/portfoliolib.php:4556
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/lib/questionlib.php:7786
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Never Called Parameter
/lib/questionlib.php:9866
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   Useless Referenced Argument
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
/lib/questionlib.php:15586
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/lib/resourcelib.php:1646
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Strpos()-like Comparison
  •   Drop Else After Return
/lib/scssphp/Compiler.php:53016
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
/lib/scssphp/Compiler.php:70966
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/lib/setuplib.php:6956
  •   False To Array Conversion
  •   No Need For Else
  •   strpos() Too Much
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
/lib/simplepie/src/Content/Type/Sniffer.php:976
  •   Undefined Properties
  •   Should Use Ternary Operator
  •   Use Positive Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/lib/simplepie/src/Content/Type/Sniffer.php:2426
  •   Undefined Properties
  •   Don't Read And Write In One Expression
  •   No Need For Else
  •   Buried Assignation
  •   Iffectations
  •   Drop Else After Return
/lib/statslib.php:14626
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/lib/table/classes/base_export_format.php:586
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   No Return Used
  •   Unreachable Method
/lib/tcpdf/include/tcpdf_fonts.php:15256
  •   Buried Assignation
  •   Uses Default Values
  •   Preprocessable
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/include/tcpdf_fonts.php:25656
  •   False To Array Conversion
  •   Null Or Boolean Arrays
  •   Uses Default Values
  •   Strict Comparison With Booleans
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/lib/tcpdf/include/tcpdf_images.php:2146
  •   False To Array Conversion
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Used Once Variables
  •   Could Make A Function
/lib/tcpdf/tcpdf.php:18796
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/tcpdf/tcpdf.php:63846
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Too Many Local Variables
/lib/tcpdf/tcpdf.php:216556
  •   No Null For Native PHP Functions
  •   Wrong Type For Native PHP Function
  •   Uses Default Values
  •   Useless Parenthesis
  •   Could Make A Function
  •   Preprocessable
/lib/testing/generator/data_generator.php:10286
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Should Use Local Class
  •   Undefined Classes
  •   No Return Used
  •   Method Could Be Static
/lib/testing/generator/data_generator.php:11316
  •   Unused Public Methods
  •   Assumptions
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Could Inject Parameter
  •   Method Could Be Static
/lib/testing/generator/repository_generator.php:1136
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Implicit Nullable Type
/lib/testing/generator/repository_generator.php:1766
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Wrong Type With Default
  •   Could Inject Parameter
  •   Implicit Nullable Type
/lib/testing/lib.php:2896
  •   Merge If Then
  •   Nested Ifthen
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Iffectations
/lib/tests/behat/behat_general.php:25116
  •   Don't Collect Void
  •   Should Make Alias
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
/lib/tests/behat/behat_hooks.php:2156
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/lib/tests/behat/behat_navigation.php:12206
  •   Don't Collect Void
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Native Alias Functions Usage
/lib/tests/customcontext_test.php:1116
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Class Constants
  •   Undefined Classes
/lib/tests/customcontext_test.php:1446
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Class Constants
  •   Undefined Classes
/lib/tests/customcontext_test.php:1776
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Class Constants
  •   Undefined Classes
/lib/tests/external/check/get_result_admintree_test.php:1506
  •   Variable Is Not A Condition
  •   Return True False
  •   Written Only Variables
  •   Undefined Variable
  •   Cast To Boolean
  •   Used Once Variables (In Scope)
/lib/tests/fixtures/testeable_dynamic_tab.php:406
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Undefined Interfaces
  •   Avoid Using stdClass
  •   Method Could Be Static
/lib/tests/moodlelib_test.php:48236
  •   Unused Public Methods
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   Mismatched Type
  •   No Boolean As Default
  •   StandaloneType True False Null
/lib/tests/navigationlib_test.php:7246
  •   Mismatched Type
  •   Parent First
  •   Wrong Type With Default
  •   Modified Typed Parameter
  •   Implicit Nullable Type
  •   Never Called Parameter
/lib/tests/other/todochecker.php:1596
  •   No Need For Else
  •   Nested Ifthen
  •   strpos() Too Much
  •   Bail Out Early
  •   Uses Default Values
  •   Could Make A Function
/lib/tokeniserlib.php:1746
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/lib/validateurlsyntax.php:1886
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:1916
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:1946
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:1976
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:2036
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:2066
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:2096
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:2126
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:2186
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:2216
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:2246
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:2276
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:3966
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:3996
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4026
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4056
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4116
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4146
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4176
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4236
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4266
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4296
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:4326
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5046
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5076
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5106
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5136
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5196
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5226
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5256
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5316
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5346
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5376
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/validateurlsyntax.php:5406
  •   Wrong Type For Native PHP Function
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Avoid Substr() One
  •   Preprocessable
/lib/weblib.php:12116
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/lib/weblib.php:18996
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   No Return Used
/lib/weblib.php:25346
  •   Method Is Not An If
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
/lib/wiki_to_markdown.php:586
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Assign Default To Properties
  •   Var Keyword
  •   Forgotten Visibility
/lib/xhprof/xhprof_lib/display/xhprof.php:8166
  •   Undefined Variable
  •   Uses Default Values
  •   Used Once Variables
  •   Avoid Parenthesis With Language Construct
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/display/xhprof.php:8176
  •   Undefined Variable
  •   Uses Default Values
  •   Used Once Variables
  •   Avoid Parenthesis With Language Construct
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/display/xhprof.php:8356
  •   Undefined Variable
  •   Uses Default Values
  •   Avoid Parenthesis With Language Construct
  •   Could Make A Function
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/display/xhprof.php:10836
  •   Mixed Concat And Interpolation
  •   Undefined Variable
  •   Used Once Variables
  •   Avoid Parenthesis With Language Construct
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/display/xhprof.php:10846
  •   Mixed Concat And Interpolation
  •   Undefined Variable
  •   Used Once Variables
  •   Avoid Parenthesis With Language Construct
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/display/xhprof.php:11076
  •   Undefined Variable
  •   Uses Default Values
  •   Avoid Parenthesis With Language Construct
  •   Could Make A Function
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/display/xhprof.php:11166
  •   Undefined Variable
  •   Uses Default Values
  •   Avoid Parenthesis With Language Construct
  •   Could Make A Function
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/display/xhprof.php:11346
  •   Undefined Variable
  •   Uses Default Values
  •   Avoid Parenthesis With Language Construct
  •   Could Make A Function
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/display/xhprof.php:11736
  •   Mixed Concat And Interpolation
  •   Undefined Variable
  •   Used Once Variables
  •   Avoid Parenthesis With Language Construct
  •   Echo With Concat
  •   No Parenthesis For Language Construct
/lib/xhprof/xhprof_lib/utils/xhprof_lib.php:3226
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/lib/xhprof/xhprof_moodle.php:6446
  •   Weak Type With Array
  •   No Need For Else
  •   Undefined Variable
  •   Use Positive Condition
  •   Bail Out Early
  •   Drop Else After Return
/lib/xmldb/xmldb_field.php:2296
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
/lib/xmldb/xmldb_field.php:4866
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/xmldb/xmldb_index.php:2246
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/xmldb/xmldb_key.php:3486
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/lib/xmldb/xmldb_table.php:5306
  •   Missing Assignation In Branches
  •   Written Only Variables
  •   Undefined Variable
  •   Use Positive Condition
  •   Used Once Variables (In Scope)
  •   Else If Versus Elseif
/lib/zipstream/src/File.php:256
  •   Undefined Interfaces
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Scalar Or Object Property
  •   Assign Default To Properties
  •   Wrong Type With Default
/lib/zipstream/src/ZipStream.php:2116
  •   Property Used In One Method Only
  •   Undefined Interfaces
  •   Used Once Variables (In Scope)
  •   Undefined Class Constants
  •   Forgotten Visibility
  •   Wrong Type With Default
/login/change_password_form.php:1146
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/message/classes/api.php:4726
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Wrong Type With Default
  •   Implicit Nullable Type
/message/externallib.php:4016
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:4616
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:5186
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:5796
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:6446
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:7006
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:7716
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:8316
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:9176
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:9716
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/message/externallib.php:34656
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
/message/externallib.php:35426
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
/message/tests/privacy/provider_test.php:28366
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Should Use Local Class
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/assign/assignmentplugin.php:1066
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
/mod/assign/assignmentplugin.php:1176
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/assign/assignmentplugin.php:2736
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/assign/assignmentplugin.php:5516
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/assign/assignmentplugin.php:6476
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/assign/classes/output/grading_actionmenu.php:1586
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Use ::Class Operator
  •   Could Make A Function
  •   New Object Then Immediate Call
/mod/assign/classes/output/grading_actionmenu.php:1656
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Use ::Class Operator
  •   Could Make A Function
  •   New Object Then Immediate Call
/mod/assign/feedback/file/locallib.php:1036
  •   Null Or Boolean Arrays
  •   No Need For Else
  •   Nested Ifthen
  •   Use Positive Condition
  •   Bail Out Early
  •   Drop Else After Return
/mod/assign/feedback/file/locallib.php:6256
  •   Missing Assignation In Branches
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Else If Versus Elseif
/mod/assign/feedbackplugin.php:786
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/assign/gradingtable.php:7236
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Could Make A Function
/mod/assign/lib.php:12686
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/mod/assign/lib.php:16916
  •   Don't Pollute Global Space
  •   Insufficient Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
  •   Memoize MagicCall
/mod/assign/locallib.php:1236
  •   Ambiguous Visibilities
  •   Ambiguous Static
  •   Assign Default To Properties
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Unfinished Object
/mod/assign/locallib.php:18166
  •   No Null For Index
  •   Mismatched Type
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/assign/locallib.php:29896
  •   Undefined Properties
  •   Undefined Variable
  •   Uses Default Values
  •   Useless Parenthesis
  •   Iffectations
  •   Else If Versus Elseif
/mod/assign/locallib.php:61146
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Use Positive Condition
  •   Uses Default Values
  •   Strict Comparison With Booleans
/mod/assign/locallib.php:99136
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Strict Comparison With Booleans
/mod/assign/overridedelete.php:266
  •   Missing Include
  •   Uses Default Values
  •   include_once() Usage
  •   No Parenthesis For Language Construct
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
/mod/assign/overrideedit.php:266
  •   Missing Include
  •   Uses Default Values
  •   include_once() Usage
  •   No Parenthesis For Language Construct
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
/mod/assign/overrides.php:266
  •   Missing Include
  •   Uses Default Values
  •   include_once() Usage
  •   No Parenthesis For Language Construct
  •   Use Constant Instead Of Function
  •   Could Use __DIR__
/mod/assign/renderable.php:3436
  •   Don't Pollute Global Space
  •   Repeated Interface
  •   No Class In Global
  •   Empty Classes
  •   Already Parents Interface
  •   Class Could Be Final
/mod/assign/submissionplugin.php:1166
  •   Unused Public Methods
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
/mod/assign/submissionplugin.php:1256
  •   Unused Public Methods
  •   Ambiguous Static
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
/mod/assign/submissionplugin.php:1466
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
/mod/bigbluebuttonbn/classes/form/guest_add.php:846
  •   Unused Public Methods
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Ambiguous Static
  •   Method Could Be Static
/mod/bigbluebuttonbn/classes/form/text_with_copy_element.php:476
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Incompatible Signature Methods With Covariance
  •   No Boolean As Default
  •   Ambiguous Static
  •   Objects Don't Need References
/mod/bigbluebuttonbn/classes/local/extension/mod_instance_helper.php:506
  •   Unused Public Methods
  •   Ambiguous Static
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
  •   Unreachable Method
/mod/bigbluebuttonbn/classes/local/helpers/roles.php:956
  •   Undefined Properties
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Used Once Variables
  •   list() May Omit Variables
/mod/bigbluebuttonbn/classes/output/index.php:1956
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
  •   Missing Some Returntype
/mod/bigbluebuttonbn/mod_form.php:3396
  •   Method Is Not An If
  •   Useless Referenced Argument
  •   Class-typed References
  •   Should Use Local Class
  •   Objects Don't Need References
  •   Method Could Be Static
/mod/bigbluebuttonbn/mod_form.php:6976
  •   Useless Referenced Argument
  •   Class-typed References
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Objects Don't Need References
  •   Method Could Be Static
/mod/bigbluebuttonbn/mod_form.php:7236
  •   Useless Referenced Argument
  •   Class-typed References
  •   Should Use Local Class
  •   Objects Don't Need References
  •   StandaloneType True False Null
  •   Method Could Be Static
/mod/bigbluebuttonbn/tests/fixtures/extension/simple/classes/bigbluebuttonbn/mod_form_addons.php:486
  •   Unused Public Methods
  •   Method Is Not An If
  •   Assumptions
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Method Could Be Static
/mod/book/lib.php:1936
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Empty Function
/mod/book/lib.php:5276
  •   Don't Pollute Global Space
  •   Useless Argument
  •   No Class In Global
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/book/tests/generator/lib.php:536
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/book/tool/importhtml/import_form.php:806
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Used Once Variables
  •   Iffectations
  •   Else If Versus Elseif
/mod/book/tool/importhtml/locallib.php:396
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/mod/book/tool/importhtml/locallib.php:1166
  •   Undefined Properties
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/mod/chat/lib.php:9536
  •   Undefined Properties
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Iffectations
  •   Could Make A Function
  •   Else If Versus Elseif
/mod/chat/tests/generator/lib.php:536
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/choice/lib.php:12226
  •   Don't Pollute Global Space
  •   Insufficient Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
  •   Memoize MagicCall
/mod/choice/tests/generator/lib.php:386
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/data/classes/external.php:3916
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Uncaught Exceptions
  •   Undefined Classes
  •   Unresolved Classes
/mod/data/classes/external.php:4076
  •   Should Use Ternary Operator
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Iffectations
  •   Else If Versus Elseif
/mod/data/classes/external.php:7196
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Uncaught Exceptions
  •   Undefined Classes
  •   Unresolved Classes
/mod/data/classes/external.php:7376
  •   Should Use Ternary Operator
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Iffectations
  •   Else If Versus Elseif
/mod/data/classes/external.php:9896
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/data/classes/external/get_mapping_information.php:656
  •   False To Array Conversion
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   list() May Omit Variables
/mod/data/classes/form/save_as_preset.php:826
  •   Unused Public Methods
  •   Max Level Of Nesting
  •   Mismatch Parameter Name
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Ambiguous Static
/mod/data/classes/local/importer/preset_importer.php:846
  •   Method Is Not An If
  •   Useless Referenced Argument
  •   Class-typed References
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Method Could Be Static
/mod/data/classes/template.php:5686
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/mod/data/classes/template.php:5836
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/mod/data/classes/template.php:6506
  •   Undefined Properties
  •   Uses Default Values
  •   Useless Parenthesis
  •   Undefined Classes
  •   Could Make A Function
  •   Wrong Type Returned
/mod/data/classes/template.php:7026
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/mod/data/classes/template.php:7216
  •   Use Named Boolean In Argument Definition
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/mod/data/field.php:1186
  •   Merge If Then
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/mod/data/field.php:1566
  •   Merge If Then
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/mod/data/lib.php:4136
  •   Undefined Properties
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/mod/data/lib.php:4406
  •   Undefined Properties
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
/mod/data/lib.php:19896
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/data/lib.php:39946
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Never Called Parameter
/mod/data/lib.php:43616
  •   Don't Pollute Global Space
  •   Insufficient Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
  •   Memoize MagicCall
/mod/data/templates.php:1276
  •   Merge If Then
  •   Mismatched Type
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/mod/data/tests/generator/lib.php:2176
  •   Assumptions
  •   Max Level Of Nesting
  •   Too Many Local Variables
  •   No Return Used
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/feedback/classes/external.php:4506
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/feedback/classes/external.php:5476
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/feedback/classes/external.php:6156
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/feedback/classes/external.php:7406
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/feedback/item/feedback_item_class.php:2796
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   Empty Function
/mod/feedback/lib.php:8716
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Never Called Parameter
/mod/feedback/lib.php:15816
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   No Return Used
/mod/feedback/lib.php:23346
  •   Undefined Properties
  •   Variable Is Not A Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
/mod/feedback/lib.php:23716
  •   Undefined Properties
  •   Variable Is Not A Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
/mod/feedback/lib.php:31866
  •   Don't Pollute Global Space
  •   Insufficient Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
  •   Memoize MagicCall
/mod/feedback/tests/generator/lib.php:386
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/folder/tests/generator/lib.php:386
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/forum/classes/local/exporters/author.php:1656
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Wrong Number Of Arguments
  •   Undefined Classes
  •   Unused Inherited Variable In Closure
/mod/forum/classes/message/inbound/reply_handler.php:2806
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   No Return Used
  •   Method Could Be Static
/mod/forum/classes/privacy/provider.php:9486
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   No Return Used
/mod/forum/classes/privacy/provider.php:9856
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   No Return Used
/mod/forum/classes/privacy/provider.php:10056
  •   Mismatched Type
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/mod/forum/classes/privacy/provider.php:10446
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Undefined Classes
  •   No Return Used
/mod/forum/classes/task/cron_task.php:4326
  •   Nested Ifthen
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
  •   Logical Should Use Symbolic Operators
/mod/forum/lib.php:28436
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/mod/forum/lib.php:29736
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Never Called Parameter
/mod/forum/lib.php:32126
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Undefined Classes
  •   Could Inject Parameter
/mod/forum/lib.php:46336
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Missing Some Returntype
/mod/forum/lib.php:57026
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
/mod/forum/lib.php:62116
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/mod/forum/lib.php:66816
  •   Don't Pollute Global Space
  •   Insufficient Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
  •   Memoize MagicCall
/mod/forum/rsslib.php:3526
  •   Missing Assignation In Branches
  •   Variable Is Not A Condition
  •   Nested Ifthen
  •   Undefined Variable
  •   Uses Default Values
  •   Else If Versus Elseif
/mod/forum/subscribers.php:1456
  •   Method Is Not An If
  •   Assumptions
  •   Don't Pollute Global Space
  •   Mismatched Type
  •   Avoid Using stdClass
  •   No Class In Global
/mod/forum/tests/externallib_test.php:696
  •   Undefined Interfaces
  •   Should Use Local Class
  •   StandaloneType True False Null
  •   Modified Typed Parameter
  •   Method Could Be Static
  •   Never Called Parameter
/mod/forum/tests/generator/lib.php:646
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/glossary/edit_form.php:1246
  •   Merge If Then
  •   Variable Is Not A Condition
  •   Undefined Variable
  •   Uses Default Values
  •   Could Make A Function
  •   Logical Should Use Symbolic Operators
/mod/glossary/editcategories.php:2956
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Could Make A Function
  •   Repeated print()
/mod/glossary/formats/entrylist/entrylist_format.php:36
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/glossary/import.php:1626
  •   Missing Assignation In Branches
  •   Don't Read And Write In One Expression
  •   Use Positive Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/mod/glossary/lib.php:14266
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/glossary/lib.php:15736
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/mod/glossary/lib.php:39476
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Could Inject Parameter
/mod/glossary/tests/generator/lib.php:596
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/h5pactivity/lib.php:2086
  •   Don't Pollute Global Space
  •   Avoid Using stdClass
  •   No Class In Global
  •   StandaloneType True False Null
  •   No Return Used
  •   Could Inject Parameter
/mod/h5pactivity/tests/external/get_attempts_test.php:956
  •   Could Merge Ternary Into Ifthen
  •   Non Integer Nor String As Index
  •   Weak Type With Array
  •   Variable Is Not A Condition
  •   Indices Are Int Or String
  •   Useless Parenthesis
/mod/h5pactivity/tests/generator/lib.php:506
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Avoid Using stdClass
  •   Wrong Type With Default
  •   Implicit Nullable Type
/mod/imscp/tests/generator/lib.php:386
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/label/tests/generator/lib.php:396
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/lesson/classes/external.php:2156
  •   Max Level Of Nesting
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Too Many Local Variables
  •   Should Use Local Class
  •   Memoize MagicCall
/mod/lesson/classes/external.php:5556
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:6386
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:7496
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:8196
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:9026
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:17196
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/classes/external.php:18376
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/lesson/lib.php:4346
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/mod/lesson/lib.php:16776
  •   Don't Pollute Global Space
  •   Insufficient Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
  •   Memoize MagicCall
/mod/lesson/locallib.php:6686
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
  •   Memoize MagicCall
/mod/lesson/locallib.php:10706
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
  •   Memoize MagicCall
/mod/lesson/locallib.php:26746
  •   No Need For Else
  •   Bail Out Early
  •   Indices Are Int Or String
  •   Uses Default Values
  •   Drop Else After Return
  •   Strict Comparison With Booleans
/mod/lesson/locallib.php:26996
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uncaught Exceptions
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
/mod/lesson/pagetypes/numerical.php:4066
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Avoid Using stdClass
  •   StandaloneType True False Null
  •   Method Could Be Static
/mod/lesson/pagetypes/numerical.php:4246
  •   Unused Public Methods
  •   Incompatible Signature Methods With Covariance
  •   Method Signature Must Be Compatible
  •   Avoid Using stdClass
  •   StandaloneType True False Null
  •   Method Could Be Static
/mod/lesson/renderer.php:4456
  •   Undefined Properties
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/lesson/tabs.php:546
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/lesson/tabs.php:586
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/lesson/tabs.php:726
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/lesson/tabs.php:736
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/lesson/tabs.php:846
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/lesson/tabs.php:856
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/lesson/tests/generator/lib.php:826
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/lti/classes/output/external_registration_return_page.php:476
  •   Unused Public Methods
  •   Undefined Interfaces
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/mod/lti/lib.php:4606
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Empty Function
/mod/lti/locallib.php:10566
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Undefined Interfaces
  •   No Class In Global
  •   Too Many Local Variables
/mod/lti/tests/generator/lib.php:436
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/quiz/accessrule/seb/classes/external/validate_quiz_keys.php:866
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/quiz/accessrule/seb/classes/external/validate_quiz_keys.php:916
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/quiz/classes/external.php:5376
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/quiz/classes/external.php:19606
  •   False To Array Conversion
  •   Weak Type With Array
  •   Scalar Are Not Arrays
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   list() May Omit Variables
/mod/quiz/classes/output/grades/grade_out_of.php:536
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Avoid Using stdClass
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/mod/quiz/classes/output/grades/grade_out_of.php:626
  •   Never Used Properties
  •   Ambiguous Visibilities
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   StandaloneType True False Null
  •   Unfinished Object
/mod/quiz/lib.php:4556
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/mod/quiz/lib.php:17406
  •   Don't Pollute Global Space
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/mod/quiz/lib.php:17496
  •   Undefined Properties
  •   Written Only Variables
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Buried Assignation
  •   Iffectations
/mod/quiz/lib.php:22336
  •   Don't Pollute Global Space
  •   Insufficient Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
  •   Memoize MagicCall
/mod/quiz/locallib.php:1716
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Could Inject Parameter
/mod/quiz/report/statistics/statistics_table.php:5396
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/mod/quiz/report/statistics/tests/statistics_test.php:1626
  •   False To Array Conversion
  •   Weak Type With Array
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Useless Parenthesis
  •   Iffectations
/mod/quiz/tests/generator/lib.php:316
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/resource/deprecatedlib.php:516
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/scorm/datamodels/scormlib.php:5466
  •   Max Level Of Nesting
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Too Many Local Variables
  •   Undefined Classes
  •   Objects Don't Need References
/mod/scorm/lib.php:16956
  •   Don't Pollute Global Space
  •   Insufficient Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
  •   Memoize MagicCall
/mod/scorm/locallib.php:12276
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Same Conditions In Condition
  •   Could Be Spaceship
  •   Drop Else After Return
/mod/scorm/locallib.php:26086
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   No Class In Global
  •   StandaloneType True False Null
/mod/scorm/report/graphs/classes/report.php:1446
  •   Undefined Properties
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Unused Returned Value
/mod/scorm/tests/generator/lib.php:386
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/url/deprecatedlib.php:516
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
/mod/url/locallib.php:3466
  •   Undefined Properties
  •   Merge If Then
  •   strpos() Too Much
  •   Undefined Variable
  •   Used Once Variables (In Scope)
  •   Uses Default Values
/mod/url/tests/generator/lib.php:386
  •   Unused Public Methods
  •   Ambiguous Static
  •   Mismatched Default Arguments
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
/mod/wiki/diff/difflib.php:3056
  •   Empty Loop
  •   Static Loop
  •   Empty Blocks
  •   Pre-increment
  •   Could Make A Function
  •   Avoid Substr() One
/mod/wiki/lib.php:3826
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Empty Function
/mod/wiki/lib.php:4296
  •   Don't Pollute Global Space
  •   Mismatched Default Arguments
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
/mod/wiki/locallib.php:6616
  •   Check All Types
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Use Instanceof
  •   Drop Else After Return
/mod/wiki/pagelib.php:18296
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Undefined Interfaces
  •   Undefined Classes
  •   Unresolved Instanceof
  •   Else If Versus Elseif
/mod/wiki/parser/markups/creole.php:946
  •   Unused Public Methods
  •   Useless Method
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Method Could Be Static
/mod/wiki/parser/markups/wikimarkup.php:4046
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Should Use Local Class
  •   Undefined Classes
  •   Method Could Be Static
/mod/workshop/allocation/manual/renderer.php:1406
  •   Undefined Properties
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/workshop/allocation/manual/renderer.php:1806
  •   Undefined Properties
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/workshop/backup/moodle1/lib.php:3386
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Unreachable Method
  •   Method Could Be Static
/mod/workshop/form/numerrors/settings.php:326
  •   Recycled Variables
  •   Overwritten Literals
  •   Assigned Twice
  •   Buried Assignation
  •   Uses Default Values
  •   Could Make A Function
/mod/workshop/form/numerrors/settings.php:366
  •   Recycled Variables
  •   Overwritten Literals
  •   Assigned Twice
  •   Buried Assignation
  •   Uses Default Values
  •   Could Make A Function
/mod/workshop/lib.php:13776
  •   Missing Assignation In Branches
  •   Nested Ifthen
  •   Use Positive Condition
  •   Uses Default Values
  •   Could Make A Function
  •   Else If Versus Elseif
/mod/workshop/lib.php:19006
  •   Don't Pollute Global Space
  •   Insufficient Type
  •   Avoid Using stdClass
  •   No Class In Global
  •   Modified Typed Parameter
  •   Memoize MagicCall
/mod/workshop/locallib.php:14916
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Method Could Be Static
  •   Never Called Parameter
/mod/workshop/renderer.php:6516
  •   Undefined Properties
  •   Should Use Ternary Operator
  •   Undefined Interfaces
  •   Undefined Classes
  •   Unresolved Instanceof
  •   Logical Should Use Symbolic Operators
/mod/workshop/renderer.php:10246
  •   Undefined Properties
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/mod/workshop/renderer.php:10306
  •   Undefined Properties
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function
/notes/lib.php:3866
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/payment/classes/gateway.php:606
  •   Unused Public Methods
  •   Method Is Not An If
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Unreachable Method
/portfolio/classes/privacy/provider.php:426
  •   Forgotten Interface
  •   Repeated Interface
  •   Class, Interface, Enum Or Trait With Identical Names
  •   Already Parents Interface
  •   Interfaces Is Not Implemented
  •   Class Could Be Final
/question/bank/columnsortorder/classes/output/column_sort_ui.php:476
  •   Unused Public Methods
  •   Mismatched Type
  •   Undefined Interfaces
  •   Too Many Local Variables
  •   Should Use Local Class
  •   Method Could Be Static
/question/bank/customfields/classes/custom_field_column.php:476
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   StandaloneType True False Null
  •   Could Inject Parameter
/question/bank/managecategories/category.php:1436
  •   Undefined Properties
  •   Variable Is Not A Condition
  •   Uses Default Values
  •   Useless Parenthesis
  •   Else If Versus Elseif
  •   Logical Should Use Symbolic Operators
/question/classes/local/bank/view.php:8886
  •   Non Integer Nor String As Index
  •   Weak Type With Array
  •   Indices Are Int Or String
  •   Useless Instructions
  •   Wrong Type Returned
  •   No Choice
/question/engine/questionattempt.php:18636
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/question/engine/questionusage.php:11556
  •   Unused Public Methods
  •   PHP Native Class Type Compatibility
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/question/engine/tests/helpers.php:8096
  •   Ambiguous Visibilities
  •   Assign Default To Properties
  •   StandaloneType True False Null
  •   Wrong Typed Property Default
  •   Mismatch Properties Types
  •   Unfinished Object
/question/format/xml/format.php:15626
  •   Undefined Properties
  •   Missing Assignation In Branches
  •   Use Positive Condition
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
/question/type/calculatedsimple/question.php:386
  •   Don't Pollute Global Space
  •   Repeated Interface
  •   No Class In Global
  •   Empty Classes
  •   Already Parents Interface
  •   Class Could Be Final
/question/type/ddimageortext/question.php:376
  •   Don't Pollute Global Space
  •   Repeated Interface
  •   No Class In Global
  •   Empty Classes
  •   Already Parents Interface
  •   Class Could Be Final
/question/type/ddmarker/question.php:1886
  •   Weak Type With Array
  •   Wrong Type For Native PHP Function
  •   array_key_exists() Works On Arrays
  •   Suspicious Comparison
  •   Bail Out Early
  •   Uses Default Values
/question/type/gapselect/question.php:376
  •   Don't Pollute Global Space
  •   Repeated Interface
  •   No Class In Global
  •   Empty Classes
  •   Already Parents Interface
  •   Class Could Be Final
/question/type/multianswer/db/upgradelib.php:1636
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Switch To Switch
  •   Drop Else After Return
  •   Could Make A Function
/question/type/multichoice/db/upgradelib.php:1306
  •   Undefined Properties
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
  •   list() May Omit Variables
/question/type/questionbase.php:4406
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Should Use Local Class
  •   Method Could Be Static
  •   Never Called Parameter
/question/type/questiontypebase.php:4516
  •   Undefined Properties
  •   Written Only Variables
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Could Make A Function
  •   list() May Omit Variables
/report/log/lib.php:1626
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/report/stats/lib.php:1446
  •   Don't Pollute Global Space
  •   No Class In Global
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   No Return Used
/reportbuilder/classes/local/report/column.php:1276
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/reportbuilder/classes/local/report/filter.php:796
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/reportbuilder/classes/local/report/filter.php:836
  •   Property Used In One Method Only
  •   Ambiguous Visibilities
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/reportbuilder/classes/output/report_name_editable.php:446
  •   Mismatched Type
  •   Incompatible Signature Methods With Covariance
  •   StandaloneType True False Null
  •   Parent First
  •   Modified Typed Parameter
  •   Could Inject Parameter
/reportbuilder/classes/system_report.php:3116
  •   Unused Public Methods
  •   Avoid Using stdClass
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Empty Function
/repository/equella/lib.php:2506
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Mismatch Parameter Name
  •   No Boolean As Default
  •   Wrong Type With Default
  •   Implicit Nullable Type
/repository/filesystem/lib.php:4646
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Could Make A Function
/repository/filesystem/lib.php:7566
  •   Missing Assignation In Branches
  •   Uses Default Values
  •   Iffectations
  •   Strpos()-like Comparison
  •   @ Operator
  •   Could Make A Function
/repository/lib.php:2306
  •   Variable Is Not A Condition
  •   No Need For Else
  •   Nested Ifthen
  •   Use Positive Condition
  •   Bail Out Early
  •   Drop Else After Return
/repository/lib.php:18576
  •   No Need For Else
  •   Nested Ifthen
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Drop Else After Return
/repository/lib.php:19756
  •   No Need For Else
  •   Nested Ifthen
  •   Bail Out Early
  •   Iffectations
  •   Use ::Class Operator
  •   Drop Else After Return
/repository/lib.php:21626
  •   Wrong Type For Native PHP Function
  •   Wrong Parameter Type
  •   Uses Default Values
  •   Could Make A Function
  •   Strict Comparison With Booleans
  •   Logical Should Use Symbolic Operators
/repository/nextcloud/classes/ocs_client.php:1716
  •   Method Is Not An If
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Ambiguous Static
  •   Method Could Be Static
  •   Never Called Parameter
/repository/onedrive/lib.php:3216
  •   Max Level Of Nesting
  •   Mismatched Default Arguments
  •   Too Many Local Variables
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Never Called Parameter
/repository/s3/S3.php:23186
  •   Undefined Properties
  •   No Need For Else
  •   Bail Out Early
  •   Uses Default Values
  •   Drop Else After Return
  •   Strict Comparison With Booleans
/repository/url/locallib.php:2606
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   No Class In Global
  •   Too Many Local Variables
  •   Never Called Parameter
/repository/wikimedia/classes/privacy/provider.php:436
  •   Repeated Interface
  •   Class, Interface, Enum Or Trait With Identical Names
  •   Unused Classes
  •   Already Parents Interface
  •   Interfaces Is Not Implemented
  •   Class Could Be Final
/repository/youtube/lib.php:2576
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   Method Signature Must Be Compatible
  •   No Boolean As Default
  •   Different Argument Counts
  •   Method Could Be Static
/search/classes/base_block.php:2906
  •   Should Use Local Class
  •   Undefined Classes
  •   Wrong Type With Default
  •   Implicit Nullable Type
  •   Method Could Be Static
  •   Never Called Parameter
/search/classes/engine.php:3646
  •   Unused Public Methods
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Empty Function
/theme/classic/tests/behat/behat_theme_classic_behat_navigation.php:3466
  •   Don't Collect Void
  •   Uncaught Exceptions
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Native Alias Functions Usage
/theme/yui_combo.php:4366
  •   No Need For Else
  •   Nested Ifthen
  •   strpos() Too Much
  •   Uses Default Values
  •   Drop Else After Return
  •   Logical Should Use Symbolic Operators
/user/classes/hook/before_user_updated.php:416
  •   Property Used In One Method Only
  •   Avoid Using stdClass
  •   Used Once Property
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unfinished Object
/user/filters/lib.php:3326
  •   Unused Public Methods
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Unreachable Method
  •   Method Could Be Static
/user/filters/lib.php:3496
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Unused Parameter
  •   Used Once Variables (In Scope)
  •   Should Use Local Class
  •   Method Could Be Static
/user/lib.php:11756
  •   No Need For Else
  •   Written Only Variables
  •   Undefined Variable
  •   Bail Out Early
  •   Used Once Variables (In Scope)
  •   Drop Else After Return
/user/profile/field/menu/define.class.php:606
  •   Undefined Properties
  •   Nested Ifthen
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Could Make A Function
/user/profile/field/menu/field.class.php:936
  •   Don't Read And Write In One Expression
  •   Should Use Ternary Operator
  •   Buried Assignation
  •   Uses Default Values
  •   Iffectations
  •   Strict Comparison With Booleans
/user/profile/field/social/define.class.php:586
  •   Unused Public Methods
  •   Method Is Not An If
  •   Mismatch Parameter Name
  •   Useless Referenced Argument
  •   Objects Don't Need References
  •   Method Could Be Static
/user/profile/lib.php:9026
  •   Don't Pollute Global Space
  •   Use Named Boolean In Argument Definition
  •   No Boolean As Default
  •   Avoid Using stdClass
  •   No Class In Global
  •   StandaloneType True False Null
/webservice/classes/token_table.php:1586
  •   Unused Public Methods
  •   Method Is Not An If
  •   Avoid Using stdClass
  •   Should Use Local Class
  •   Method Could Be Static
  •   Missing Some Returntype
/webservice/renderer.php:376
  •   Unused Public Methods
  •   Useless Referenced Argument
  •   Too Many Local Variables
  •   Should Use Local Class
  •   Objects Don't Need References
  •   Method Could Be Static
/webservice/wsdoc.php:446
  •   Undefined Variable
  •   Uses Default Values
  •   Undefined Classes
  •   Unresolved Classes
  •   Use ::Class Operator
  •   Could Make A Function