None:78 | 19 | - No Null For Index
- Written Only Variables
- Unused Global
- Used Once Variables (In Scope)
- Parent, Static Or Self Outside Class
- Unused Enumeration Case
|
None:275 | 17 | - 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:466 | 15 | - 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:1051 | 15 | - 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:1195 | 15 | - 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:1480 | 15 | - 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:1609 | 15 | - 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:38 | 14 | - 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:179 | 14 | - Don't Pollute Global Space
- No Class In Global
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- Empty Function
|
None:97 | 14 | - 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:1351 | 13 | - 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:250 | 13 | - 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:172 | 13 | - Mismatched Type
- Ambiguous Static
- Avoid Using stdClass
- StandaloneType True False Null
- Could Inject Parameter
- Never Called Parameter
|
/mod/workshop/form/rubric/lib.php:248 | 13 | - 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:1093 | 12 | - 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:6931 | 12 | - 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:2291 | 12 | - 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:2979 | 12 | - 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:371 | 12 | - 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:1290 | 12 | - 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:1940 | 12 | - 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:2034 | 12 | - 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:101 | 12 | - Undefined Properties
- Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
- Use ::Class Operator
- Could Make A Function
|
/mod/quiz/classes/external.php:2064 | 12 | - 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:414 | 12 | - 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:207 | 12 | - 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:207 | 12 | - 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:244 | 12 | - 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:90 | 11 | - 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:379 | 11 | - 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:6136 | 11 | - 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:142 | 11 | - Undefined Interfaces
- Written Only Variables
- Undefined Variable
- Used Once Variables (In Scope)
- Undefined Classes
- Unresolved Instanceof
- Preprocessable
|
/mod/book/locallib.php:434 | 11 | - 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:796 | 11 | - 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:602 | 11 | - 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:661 | 11 | - 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:51 | 11 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/wiki/locallib.php:1760 | 11 | - 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:38 | 10 | - Undefined Properties
- Nested Ifthen
- Buried Assignation
- Uses Default Values
- Iffectations
- Assign And Lettered Logical Operator Precedence
- Logical Should Use Symbolic Operators
|
/admin/settings.php:57 | 10 | - 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:67 | 10 | - Don't Pollute Global Space
- Avoid Using stdClass
- No Class In Global
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
|
/calendar/lib.php:2142 | 10 | - 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:343 | 10 | - Unused Public Methods
- Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Method Could Be Static
|
/course/renderer.php:353 | 10 | - 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:86 | 10 | - 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:84 | 10 | - 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:883 | 10 | - 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:944 | 10 | - 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:1893 | 10 | - 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:73 | 10 | - 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:857 | 10 | - 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:878 | 10 | - 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:1107 | 10 | - 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:175 | 10 | - 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:1431 | 10 | - 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:4736 | 10 | - 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:60 | 10 | - 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:15651 | 10 | - 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:52 | 10 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/quiz/classes/local/access_rule_base.php:77 | 10 | - 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:555 | 10 | - 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:46 | 10 | - Unused Public Methods
- Ambiguous Static
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Unreachable Method
|
/mod/workshop/locallib.php:1803 | 10 | - 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:76 | 10 | - 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:311 | 10 | - 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:676 | 10 | - 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:564 | 10 | - 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:402 | 10 | - 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:240 | 9 | - 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:79 | 9 | - 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:244 | 9 | - 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:42 | 9 | - 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:121 | 9 | - 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:32 | 9 | - 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:68 | 9 | - 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:325 | 9 | - 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:350 | 9 | - 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:2185 | 9 | - 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:760 | 9 | - 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:91 | 9 | - Undefined Properties
- Should Use Ternary Operator
- Return True False
- Uses Default Values
- Could Make A Function
- Else If Versus Elseif
|
/competency/lib.php:290 | 9 | - 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:3533 | 9 | - 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:200 | 9 | - 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:80 | 9 | - Mismatched Type
- Ambiguous Static
- Avoid Using stdClass
- Wrong Type With Default
- Modified Typed Parameter
- Could Inject Parameter
- Implicit Nullable Type
|
/enrol/flatfile/lib.php:197 | 9 | - 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:84 | 9 | - 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:684 | 9 | - 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:414 | 9 | - 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:715 | 9 | - 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:663 | 9 | - 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:840 | 9 | - 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:900 | 9 | - 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:424 | 9 | - 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:3266 | 9 | - 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:201 | 9 | - 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:92 | 9 | - Unused Public Methods
- Undefined Interfaces
- Ambiguous Static
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
|
/lib/classes/context.php:710 | 9 | - 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:259 | 9 | - 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:76 | 9 | - 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:448 | 9 | - 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:1303 | 9 | - 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:363 | 9 | - 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:2300 | 9 | - 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:2557 | 9 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Method Could Be Static
|
/lib/enrollib.php:2684 | 9 | - 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:2815 | 9 | - 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:3561 | 9 | - 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:233 | 9 | - 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:1534 | 9 | - 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:72 | 9 | - 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:4481 | 9 | - 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:301 | 9 | - 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:70 | 9 | - 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:829 | 9 | - Missing Assignation In Branches
- Use Positive Condition
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
- Should Typecast
|
/lib/simplepie/src/SimplePie.php:3062 | 9 | - 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:716 | 9 | - 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:1190 | 9 | - 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:14972 | 9 | - 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:24081 | 9 | - 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:48 | 9 | - 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:33 | 9 | - 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:35 | 9 | - 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:25 | 9 | - Missing Include
- Uses Default Values
- include_once() Usage
- No Parenthesis For Language Construct
- Use Constant Instead Of Function
- Could Use __DIR__
|
/message/externallib.php:847 | 9 | - 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:199 | 9 | - 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:608 | 9 | - 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:2106 | 9 | - 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:321 | 9 | - 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:389 | 9 | - 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:980 | 9 | - 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:1046 | 9 | - 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:1374 | 9 | - 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:213 | 9 | - 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:2449 | 9 | - 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:463 | 9 | - 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:341 | 9 | - 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:62 | 9 | - 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:178 | 9 | - Undefined Properties
- Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/lti/lib.php:405 | 9 | - Don't Pollute Global Space
- No Class In Global
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- Empty Function
|
/mod/page/lib.php:273 | 9 | - 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:644 | 9 | - 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:759 | 9 | - 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:1800 | 9 | - 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:1876 | 9 | - 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:316 | 9 | - 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:635 | 9 | - Undefined Properties
- Undefined Variable
- Identical Conditions
- Buried Assignation
- Uses Default Values
- Iffectations
|
/mod/scorm/lib.php:885 | 9 | - 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:1550 | 9 | - 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:285 | 9 | - 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:1607 | 9 | - 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:61 | 9 | - 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:40 | 9 | - 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:1224 | 9 | - 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:1196 | 9 | - 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:209 | 8 | - Undefined Properties
- Missing Assignation In Branches
- Useless Parenthesis
- No Hardcoded Hash
- Preprocessable
- Else If Versus Elseif
|
/admin/tool/mfa/db/subplugins.php:28 | 8 | - 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:59 | 8 | - 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:198 | 8 | - 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:81 | 8 | - 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:238 | 8 | - 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:211 | 8 | - 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:93 | 8 | - 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:2040 | 8 | - 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:788 | 8 | - 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:109 | 8 | - Undefined Properties
- Avoid Optional Properties
- Undefined Variable
- Used Once Variables (In Scope)
- Undefined Classes
- Unresolved Classes
|
/blocks/section_links/renderer.php:44 | 8 | - 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:341 | 8 | - 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:2458 | 8 | - 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:3445 | 8 | - 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:170 | 8 | - Undefined Properties
- Missing Assignation In Branches
- Undefined Variable
- Buried Assignation
- Iffectations
- Logical Should Use Symbolic Operators
|
/contentbank/classes/form/edit_content.php:58 | 8 | - 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:987 | 8 | - 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:260 | 8 | - 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:325 | 8 | - 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:285 | 8 | - 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:37 | 8 | - strpos() Too Much
- Undefined Variable
- Bail Out Early
- Used Once Variables (In Scope)
- Uses Default Values
- Could Make A Function
|
/course/lib.php:2561 | 8 | - Undefined Properties
- No Need For Else
- Bail Out Early
- Buried Assignation
- Uses Default Values
- Iffectations
- Drop Else After Return
|
/course/lib.php:3094 | 8 | - 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:164 | 8 | - 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:38 | 8 | - Mismatched Type
- Should Use Local Class
- Wrong Type With Default
- Could Inject Parameter
- Implicit Nullable Type
- Method Could Be Static
|
/enrol/meta/locallib.php:261 | 8 | - 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:219 | 8 | - 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:134 | 8 | - 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:229 | 8 | - 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:242 | 8 | - 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:130 | 8 | - 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:206 | 8 | - 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:448 | 8 | - 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:747 | 8 | - 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:479 | 8 | - Undefined Interfaces
- Should Use Local Class
- StandaloneType True False Null
- Wrong Type With Default
- Modified Typed Parameter
- Implicit Nullable Type
|
/lib/accesslib.php:872 | 8 | - 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:369 | 8 | - 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:761 | 8 | - 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:1253 | 8 | - 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:124 | 8 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Empty Function
- Forgotten Visibility
- Unreachable Method
|
/lib/adodb/adodb-xmlschema.inc.php:146 | 8 | - 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:164 | 8 | - 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:846 | 8 | - 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:1677 | 8 | - 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:2718 | 8 | - 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:2755 | 8 | - 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:496 | 8 | - 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:1677 | 8 | - 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:472 | 8 | - 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:68 | 8 | - 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:146 | 8 | - 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:309 | 8 | - 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:864 | 8 | - 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:64 | 8 | - Unused Public Methods
- Method Is Not An If
- Undefined Interfaces
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
|
/lib/bennu/iCalendar_components.php:104 | 8 | - 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:2358 | 8 | - Don't Pollute Global Space
- No Class In Global
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- Never Called Parameter
|
/lib/blocklib.php:2606 | 8 | - 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:704 | 8 | - 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:366 | 8 | - 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:496 | 8 | - 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:1456 | 8 | - 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:176 | 8 | - 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:2277 | 8 | - 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:2537 | 8 | - 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:68 | 8 | - Unused Public Methods
- Assumptions
- Undefined Classes
- Wrong Type With Default
- Could Inject Parameter
- Implicit Nullable Type
|
/lib/editor/atto/lib.php:103 | 8 | - 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:2743 | 8 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Method Could Be Static
|
/lib/enrollib.php:3572 | 8 | - 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:969 | 8 | - Written Only Variables
- Undefined Variable
- Use Positive Condition
- Used Once Variables (In Scope)
- Buried Assignation
- Used Once Variables
- Iffectations
|
/lib/filebrowser/file_info.php:388 | 8 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/lib/filebrowser/file_info.php:401 | 8 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/lib/filebrowser/file_info.php:414 | 8 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/lib/filelib.php:2687 | 8 | - 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:669 | 8 | - 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:215 | 8 | - 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:239 | 8 | - 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:471 | 8 | - 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:16 | 8 | - 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:1963 | 8 | - Unused Public Methods
- Mismatched Type
- Undefined Interfaces
- Avoid Using stdClass
- StandaloneType True False Null
- Modified Typed Parameter
|
/lib/moodlelib.php:2729 | 8 | - 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:8158 | 8 | - 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:2843 | 8 | - 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:42 | 8 | - 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:98 | 8 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Empty Function
- Forgotten Visibility
|
/lib/pear/HTML/QuickForm/Renderer.php:141 | 8 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Empty Function
- Forgotten Visibility
|
/lib/pear/HTML/QuickForm/Rule.php:40 | 8 | - 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:213 | 8 | - 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:24 | 8 | - 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:5530 | 8 | - 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:47 | 8 | - 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:334 | 8 | - 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:496 | 8 | - 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:450 | 8 | - 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:534 | 8 | - 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:5195 | 8 | - 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:136 | 8 | - 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:82 | 8 | - 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:572 | 8 | - Check JSON
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
- Else If Versus Elseif
|
/lib/testing/classes/util.php:628 | 8 | - Wrong Type For Native PHP Function
- Check JSON
- Uses Default Values
- Iffectations
- @ Operator
- Could Make A Function
- Preprocessable
|
/lib/tests/behat/behat_general.php:1547 | 8 | - 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:1566 | 8 | - 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:276 | 8 | - Wrong Type For Native PHP Function
- Check JSON
- Uses Default Values
- Undefined Constants
- Iffectations
- @ Operator
- Could Make A Function
|
/lib/tests/setuplib_test.php:173 | 8 | - 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:71 | 8 | - 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:419 | 8 | - 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:41 | 8 | - Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/login/verify_age_location.php:41 | 8 | - Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/mnet/xmlrpc/client.php:226 | 8 | - 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:462 | 8 | - Ambiguous Static
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/mod/assign/feedbackplugin.php:144 | 8 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- Unreachable Method
|
/mod/assign/gradingtable.php:1474 | 8 | - 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:2049 | 8 | - 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:86 | 8 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/mod/bigbluebuttonbn/bbb_view.php:35 | 8 | - 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:40 | 8 | - 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:138 | 8 | - 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:41 | 8 | - Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Uses Default Values
- Iffectations
- Logical Should Use Symbolic Operators
|
/mod/data/lib.php:3452 | 8 | - 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:86 | 8 | - Undefined Properties
- Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/mod/forum/classes/grades/forum_gradeitem.php:168 | 8 | - Unused Public Methods
- Mismatched Type
- Avoid Using stdClass
- StandaloneType True False Null
- Wrong Type With Default
- Implicit Nullable Type
|
/mod/glossary/lib.php:1284 | 8 | - 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:4498 | 8 | - 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:426 | 8 | - 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:290 | 8 | - Missing Assignation In Branches
- Nested Ifthen
- Undefined Variable
- Use Positive Condition
- Buried Assignation
- Iffectations
- Else If Versus Elseif
|
/mod/lesson/locallib.php:4459 | 8 | - 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:108 | 8 | - Undefined Properties
- Missing Assignation In Branches
- Nested Ifthen
- Use Positive Condition
- Uses Default Values
- Should Typecast
|
/mod/quiz/accessrule/seb/classes/template_controller.php:135 | 8 | - 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:164 | 8 | - False To Array Conversion
- Weak Type With Array
- Written Only Variables
- Used Once Variables (In Scope)
- Buried Assignation
- Useless Parenthesis
|
/mod/resource/deprecatedlib.php:35 | 8 | - 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:61 | 8 | - 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:35 | 8 | - 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:141 | 8 | - Undefined Properties
- Check JSON
- Buried Assignation
- Uses Default Values
- Iffectations
- @ Operator
- Could Make A Function
|
/privacy/classes/local/request/contextlist.php:164 | 8 | - 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:225 | 8 | - 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:63 | 8 | - 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:38 | 8 | - 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:40 | 8 | - 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:531 | 8 | - Mismatched Type
- Undefined Interfaces
- Should Use Local Class
- StandaloneType True False Null
- Could Inject Parameter
- Method Could Be Static
|
/repository/dropbox/lib.php:71 | 8 | - 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:616 | 8 | - 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:2348 | 8 | - 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:2714 | 8 | - 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:537 | 8 | - 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:52 | 8 | - 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:77 | 7 | - Missing Assignation In Branches
- Buried Assignation
- Uses Default Values
- Useless Parenthesis
- Iffectations
- Else If Versus Elseif
|
/admin/presets/classes/local/setting/delegation.php:50 | 7 | - 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:1099 | 7 | - 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:172 | 7 | - 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:187 | 7 | - 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:302 | 7 | - 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:156 | 7 | - 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:226 | 7 | - 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:95 | 7 | - 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:1364 | 7 | - 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:378 | 7 | - 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:68 | 7 | - 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:758 | 7 | - 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:120 | 7 | - 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:213 | 7 | - 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:41 | 7 | - 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:291 | 7 | - 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:115 | 7 | - 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:53 | 7 | - 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:433 | 7 | - 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:145 | 7 | - 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:157 | 7 | - 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:172 | 7 | - 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:256 | 7 | - 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:1362 | 7 | - Undefined Properties
- Merge If Then
- Nested Ifthen
- Bail Out Early
- Uses Default Values
- Iffectations
|
/backup/moodle2/restore_stepslib.php:1368 | 7 | - 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:2250 | 7 | - 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:403 | 7 | - 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:34 | 7 | - 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:35 | 7 | - 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:82 | 7 | - Ambiguous Visibilities
- Ambiguous Static
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Mismatch Properties Types
- Unfinished Object
|
/blocks/moodleblock.class.php:100 | 7 | - Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Wrong Typed Property Default
- Mismatch Properties Types
- Unfinished Object
|
/blocks/moodleblock.class.php:731 | 7 | - Unused Public Methods
- Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/calendar/lib.php:2046 | 7 | - 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:260 | 7 | - No Null For Native PHP Functions
- Written Only Variables
- Used Once Variables (In Scope)
- Uses Default Values
- Used Once Variables
- Iffectations
|
/comment/locallib.php:135 | 7 | - 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:282 | 7 | - 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:216 | 7 | - 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:272 | 7 | - 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:106 | 7 | - 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:97 | 7 | - 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:160 | 7 | - 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:142 | 7 | - 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:40 | 7 | - 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:40 | 7 | - 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:43 | 7 | - 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:78 | 7 | - 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:117 | 7 | - 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:84 | 7 | - 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:61 | 7 | - 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:67 | 7 | - 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:73 | 7 | - 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:77 | 7 | - 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:61 | 7 | - 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:38 | 7 | - 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:118 | 7 | - Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Method Could Be Static
|
/course/user.php:98 | 7 | - Nested Ifthen
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Else If Versus Elseif
- Logical Should Use Symbolic Operators
|
/enrol/locallib.php:1639 | 7 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Unreachable Method
|
/enrol/self/lib.php:674 | 7 | - 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:96 | 7 | - Missing Assignation In Branches
- Nested Ifthen
- Undefined Variable
- Use Positive Condition
- Buried Assignation
- Iffectations
|
/grade/classes/privacy/grade_grade_with_history.php:33 | 7 | - 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:259 | 7 | - 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:56 | 7 | - 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:46 | 7 | - 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:416 | 7 | - 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:792 | 7 | - 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:1446 | 7 | - 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:1483 | 7 | - 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:49 | 7 | - 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:355 | 7 | - 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:898 | 7 | - 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:4046 | 7 | - 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:1287 | 7 | - 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:1524 | 7 | - 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:8721 | 7 | - 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:807 | 7 | - 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:1200 | 7 | - 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:100 | 7 | - 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:1027 | 7 | - 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:22 | 7 | - 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:1034 | 7 | - 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:133 | 7 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Empty Function
- Forgotten Visibility
- Unreachable Method
|
/lib/adodb/adodb-xmlschema.inc.php:142 | 7 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Empty Function
- Forgotten Visibility
- Unreachable Method
|
/lib/adodb/adodb-xmlschema.inc.php:1724 | 7 | - Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
- Preprocessable
- Logical Should Use Symbolic Operators
|
/lib/adodb/adodb-xmlschema.inc.php:1770 | 7 | - Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
- Preprocessable
- Logical Should Use Symbolic Operators
|
/lib/adodb/adodb-xmlschema03.inc.php:1891 | 7 | - Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
- Preprocessable
- Logical Should Use Symbolic Operators
|
/lib/adodb/adodb-xmlschema03.inc.php:1937 | 7 | - Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
- Preprocessable
- Logical Should Use Symbolic Operators
|
/lib/adodb/adodb-xmlschema03.inc.php:2112 | 7 | - Variable Is Not A Condition
- Nested Ifthen
- Buried Assignation
- Uses Default Values
- Useless Parenthesis
- Could Make A Function
- Preprocessable
|
/lib/adodb/adodb.inc.php:3051 | 7 | - 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:188 | 7 | - 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:480 | 7 | - 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:878 | 7 | - 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:823 | 7 | - 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:1368 | 7 | - Variable Is Not A Condition
- Undefined Variable
- Use PHP Object API
- Uses Default Values
- Useless Parenthesis
- @ Operator
|
/lib/adodb/drivers/adodb-oci8.inc.php:1063 | 7 | - 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:43 | 7 | - 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:53 | 7 | - 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:294 | 7 | - 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:202 | 7 | - 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:260 | 7 | - 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:280 | 7 | - 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:40 | 7 | - 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:73 | 7 | - 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:416 | 7 | - 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:223 | 7 | - Wrong Type For Native PHP Function
- Check JSON
- Uses Default Values
- @ Operator
- Could Make A Function
- Preprocessable
|
/lib/behat/classes/behat_config_util.php:1385 | 7 | - 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:845 | 7 | - 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:145 | 7 | - 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:156 | 7 | - 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:134 | 7 | - 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:152 | 7 | - 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:264 | 7 | - 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:20 | 7 | - Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Wrong Typed Property Default
- Mismatch Properties Types
- Unfinished Object
|
/lib/classes/context.php:975 | 7 | - 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:40 | 7 | - 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:236 | 7 | - 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:65 | 7 | - 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:718 | 7 | - No Need For Else
- Nested Ifthen
- Undefined Interfaces
- Bail Out Early
- Undefined Classes
- Unresolved Instanceof
- Drop Else After Return
|
/lib/classes/param.php:1040 | 7 | - 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:644 | 7 | - 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:52 | 7 | - 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:47 | 7 | - 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:77 | 7 | - 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:296 | 7 | - 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:218 | 7 | - Mismatched Type
- Ambiguous Static
- Too Many Local Variables
- Wrong Type With Default
- Implicit Nullable Type
- Never Called Parameter
|
/lib/clilib.php:57 | 7 | - 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:432 | 7 | - 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:1712 | 7 | - 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:50 | 7 | - 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:897 | 7 | - 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:2217 | 7 | - 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:2231 | 7 | - 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:103 | 7 | - 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:1009 | 7 | - 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:775 | 7 | - 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:63 | 7 | - 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:107 | 7 | - 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:145 | 7 | - Unused Public Methods
- Assumptions
- Mismatched Type
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
|
/lib/enrollib.php:511 | 7 | - 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:598 | 7 | - 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:1386 | 7 | - 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:1537 | 7 | - 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:2068 | 7 | - 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:2083 | 7 | - 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:2803 | 7 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/lib/enrollib.php:2826 | 7 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/lib/enrollib.php:3375 | 7 | - Undefined Properties
- Check Division By Zero
- Uses Default Values
- Useless Parenthesis
- Could Make A Function
- Preprocessable
|
/lib/enrollib.php:3433 | 7 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Method Could Be Static
|
/lib/enrollib.php:3748 | 7 | - Assumptions
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Method Could Be Static
|
/lib/filebrowser/file_info.php:375 | 7 | - 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:67 | 7 | - Undefined Properties
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
- Logical Should Use Symbolic Operators
|
/lib/filebrowser/virtual_root_file.php:84 | 7 | - Unused Public Methods
- Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Empty Function
|
/lib/filelib.php:408 | 7 | - 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:2349 | 7 | - 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:254 | 7 | - 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:280 | 7 | - 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:237 | 7 | - 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:271 | 7 | - 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:262 | 7 | - 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:143 | 7 | - 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:1109 | 7 | - Ambiguous Static
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Forgotten Visibility
|
/lib/formslib.php:3656 | 7 | - 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:64 | 7 | - 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:788 | 7 | - 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:1449 | 7 | - Merge If Then
- array_key_exists() Works On Arrays
- Nested Ifthen
- Undefined Variable
- Bail Out Early
- Indices Are Int Or String
|
/lib/grouplib.php:1477 | 7 | - 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:481 | 7 | - 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:500 | 7 | - 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:526 | 7 | - Assumptions
- Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Method Could Be Static
|
/lib/htmlpurifier/HTMLPurifier/Encoder.php:134 | 7 | - 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:38 | 7 | - 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:20 | 7 | - 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:20 | 7 | - 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:13 | 7 | - 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:14 | 7 | - 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:13 | 7 | - 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:14 | 7 | - 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:22 | 7 | - 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:3556 | 7 | - 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:5529 | 7 | - Wrong Type For Native PHP Function
- Undefined Variable
- Repeated Regex
- Uses Default Values
- Wrong Number Of Arguments
- Could Make A Function
|
/lib/moodlelib.php:5588 | 7 | - 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:6359 | 7 | - 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:8159 | 7 | - 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:8456 | 7 | - 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:1200 | 7 | - 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:2487 | 7 | - 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:13 | 7 | - 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:1503 | 7 | - Missing Assignation In Branches
- Buried Assignation
- Uses Default Values
- Useless Parenthesis
- Iffectations
- Could Make A Function
|
/lib/pear/HTML/QuickForm/Renderer.php:83 | 7 | - 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:116 | 7 | - 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:48 | 7 | - 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:308 | 7 | - 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:118 | 7 | - 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:66 | 7 | - 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:19 | 7 | - 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:29 | 7 | - 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:38 | 7 | - 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:49 | 7 | - 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:34 | 7 | - 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:26 | 7 | - 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:122 | 7 | - 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:4796 | 7 | - 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:4803 | 7 | - 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:35 | 7 | - 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:312 | 7 | - 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:410 | 7 | - 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:204 | 7 | - 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:229 | 7 | - 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:143 | 7 | - 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:467 | 7 | - 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:1266 | 7 | - Missing Assignation In Branches
- Written Only Variables
- Undefined Variable
- Use Positive Condition
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
|
/lib/scssphp/Compiler.php:287 | 7 | - 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:230 | 7 | - 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:236 | 7 | - 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:882 | 7 | - 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:889 | 7 | - 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:891 | 7 | - 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:2514 | 7 | - 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:7107 | 7 | - 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:16663 | 7 | - 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:21664 | 7 | - 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:310 | 7 | - 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:856 | 7 | - Wrong Type For Native PHP Function
- Check JSON
- Uses Default Values
- @ Operator
- Could Make A Function
- Preprocessable
|
/lib/testing/generator/component_generator_base.php:69 | 7 | - 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:146 | 7 | - 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:280 | 7 | - 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:464 | 7 | - 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:1548 | 7 | - 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:489 | 7 | - 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:875 | 7 | - 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:88 | 7 | - 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:281 | 7 | - Written Only Variables
- Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
- Undefined Classes
- Unresolved Classes
|
/lib/validateurlsyntax.php:200 | 7 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:215 | 7 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:408 | 7 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:420 | 7 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:516 | 7 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:528 | 7 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/webauthn/src/WebAuthn.php:417 | 7 | - 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:514 | 7 | - 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:752 | 7 | - 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:1206 | 7 | - 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:1159 | 7 | - 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:1239 | 7 | - 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:1358 | 7 | - 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:1735 | 7 | - 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:1835 | 7 | - 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:3265 | 7 | - 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:3324 | 7 | - 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:328 | 7 | - Merge If Then
- Check JSON
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
- Else If Versus Elseif
|
/mod/assign/assignmentplugin.php:309 | 7 | - 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:404 | 7 | - 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:105 | 7 | - 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:38 | 7 | - 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:1088 | 7 | - 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:168 | 7 | - 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:51 | 7 | - 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:33 | 7 | - 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:41 | 7 | - 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:164 | 7 | - 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:35 | 7 | - 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:663 | 7 | - 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:600 | 7 | - 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:37 | 7 | - 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:378 | 7 | - 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:70 | 7 | - 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:130 | 7 | - 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:675 | 7 | - 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:804 | 7 | - 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:1365 | 7 | - Undefined Properties
- No Need For Else
- Nested Ifthen
- Bail Out Early
- Iffectations
- Drop Else After Return
|
/mod/data/lib.php:1555 | 7 | - 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:92 | 7 | - 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:390 | 7 | - Ambiguous Static
- Avoid Using stdClass
- No Return Used
- Wrong Type With Default
- Modified Typed Parameter
- Implicit Nullable Type
|
/mod/feedback/lib.php:1303 | 7 | - 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:725 | 7 | - 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:114 | 7 | - 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:1105 | 7 | - 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:1607 | 7 | - 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:3371 | 7 | - 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:4246 | 7 | - 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:5636 | 7 | - 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:259 | 7 | - Undefined Properties
- No Need For Else
- Nested Ifthen
- Bail Out Early
- Iffectations
- Drop Else After Return
|
/mod/h5pactivity/classes/output/attempt.php:126 | 7 | - 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:152 | 7 | - 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:85 | 7 | - 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:114 | 7 | - 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:1123 | 7 | - Undefined Properties
- Written Only Variables
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
- Use ::Class Operator
|
/mod/lesson/locallib.php:403 | 7 | - 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:4943 | 7 | - Unused Public Methods
- Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/mod/lti/lib.php:582 | 7 | - 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:301 | 7 | - 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:121 | 7 | - 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:1583 | 7 | - Undefined Properties
- Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
- Iffectations
- Else If Versus Elseif
|
/mod/quiz/locallib.php:1095 | 7 | - 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:234 | 7 | - False To Array Conversion
- Missing Assignation In Branches
- Scalar Are Not Arrays
- Use Positive Condition
- Buried Assignation
- Iffectations
|
/mod/scorm/lib.php:384 | 7 | - 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:1907 | 7 | - Missing Assignation In Branches
- Undefined Variable
- Uses Default Values
- Iffectations
- Strpos()-like Comparison
- Strict Comparison With Booleans
|
/mod/wiki/renderer.php:63 | 7 | - 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:89 | 7 | - 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:569 | 7 | - 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:53 | 7 | - 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:1860 | 7 | - 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:1145 | 7 | - 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:490 | 7 | - 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:72 | 7 | - 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:418 | 7 | - Ambiguous Static
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Method Could Be Static
|
/question/type/ordering/questiontype.php:517 | 7 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Wrong Type With Default
- Implicit Nullable Type
|
/question/type/questionbase.php:528 | 7 | - 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:134 | 7 | - 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:106 | 7 | - Variable Is Not A Condition
- Check JSON
- Print And Die
- Uses Default Values
- Useless Parenthesis
- No Parenthesis For Language Construct
|
/repository/draftfiles_ajax.php:232 | 7 | - Missing Assignation In Branches
- Nested Ifthen
- Undefined Variable
- Use Positive Condition
- Buried Assignation
- Iffectations
|
/repository/googledocs/lib.php:48 | 7 | - 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:434 | 7 | - 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:41 | 7 | - 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:139 | 7 | - 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:769 | 7 | - Use Positive Condition
- Wrong Parameter Type
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
- Else If Versus Elseif
|
/repository/youtube/lib.php:50 | 7 | - 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:317 | 7 | - Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Wrong Type With Default
- Implicit Nullable Type
|
/search/classes/engine.php:377 | 7 | - 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:388 | 7 | - 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:1692 | 7 | - 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:242 | 7 | - 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:299 | 7 | - Undefined Properties
- Recycled Variables
- Undefined Variable
- Used Once Variables (In Scope)
- Undefined Classes
- Unresolved Classes
|
/tag/classes/reportbuilder/local/systemreports/tags.php:87 | 7 | - 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:43 | 7 | - 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:39 | 7 | - 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:366 | 7 | - Undefined Properties
- Wrong Type For Native PHP Function
- Wrong Parameter Type
- Uses Default Values
- Wrong Number Of Arguments
- Use random_int()
|
/admin/category.php:61 | 6 | - Nested Ifthen
- Buried Assignation
- Uses Default Values
- Iffectations
- Assign And Lettered Logical Operator Precedence
- Logical Should Use Symbolic Operators
|
/admin/mnet/access_control.php:81 | 6 | - Nested Ifthen
- Buried Assignation
- Uses Default Values
- Iffectations
- Assign And Lettered Logical Operator Precedence
- Logical Should Use Symbolic Operators
|
/admin/presets/classes/helper.php:142 | 6 | - 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:988 | 6 | - 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:128 | 6 | - Missing Assignation In Branches
- Use Positive Condition
- Used Once Variables (In Scope)
- Buried Assignation
- Uses Default Values
- Iffectations
|
/admin/roles/define.php:238 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
- Repeated print()
|
/admin/roles/lib.php:39 | 6 | - 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:119 | 6 | - 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:109 | 6 | - 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:361 | 6 | - 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:32 | 6 | - 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:239 | 6 | - 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:42 | 6 | - 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:633 | 6 | - Undefined Properties
- Nested Ifthen
- Written Only Variables
- Used Once Variables (In Scope)
- Used Once Variables
- Iffectations
|
/admin/tool/dataprivacy/classes/purpose.php:57 | 6 | - Mismatched Type
- Mismatched Default Arguments
- Avoid Using stdClass
- Parent First
- Wrong Type With Default
- Implicit Nullable Type
|
/admin/tool/dataprivacy/lib.php:39 | 6 | - 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:41 | 6 | - 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:41 | 6 | - 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:2046 | 6 | - 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:2481 | 6 | - 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:3111 | 6 | - No Need For Else
- Use Positive Condition
- Buried Assignation
- Uses Default Values
- Iffectations
- Drop Else After Return
|
/admin/tool/messageinbound/roundcube/rcube_mime.php:796 | 6 | - 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:44 | 6 | - 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:181 | 6 | - 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:88 | 6 | - 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:171 | 6 | - 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:175 | 6 | - Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/admin/tool/monitor/lib.php:88 | 6 | - Undefined Properties
- Merge If Then
- Nested Ifthen
- Undefined Variable
- Bail Out Early
- Used Once Variables (In Scope)
|
/admin/tool/policy/classes/output/guestconsent.php:51 | 6 | - 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:147 | 6 | - 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:194 | 6 | - 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:111 | 6 | - Unused Public Methods
- Max Level Of Nesting
- Undefined Interfaces
- Should Make Alias
- Unused Parameter
- Used Once Variables (In Scope)
|
/admin/tool/task/renderer.php:234 | 6 | - 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:576 | 6 | - Double Checks
- No Need For Else
- Nested Ifthen
- Bail Out Early
- Drop Else After Return
- Use === null
|
/admin/tool/uploadcourse/classes/tracker.php:213 | 6 | - 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:214 | 6 | - 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:216 | 6 | - 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:217 | 6 | - 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:218 | 6 | - 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:68 | 6 | - Unused Public Methods
- Ambiguous Static
- Unused Parameter
- Used Once Variables (In Scope)
- Empty Function
- Unreachable Method
|
/analytics/classes/model_config.php:147 | 6 | - 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:47 | 6 | - 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:296 | 6 | - Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
- Preprocessable
|
/auth/mnet/auth.php:700 | 6 | - 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:69 | 6 | - 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:419 | 6 | - 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:659 | 6 | - 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:1943 | 6 | - 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:216 | 6 | - 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:249 | 6 | - 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:376 | 6 | - 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:433 | 6 | - 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:71 | 6 | - 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:92 | 6 | - 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:29 | 6 | - 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:188 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/backup/moodle2/restore_stepslib.php:1326 | 6 | - 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:2200 | 6 | - 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:392 | 6 | - Undefined Properties
- Missing Assignation In Branches
- Nested Ifthen
- Undefined Variable
- Used Once Variables (In Scope)
- Iffectations
|
/backup/util/ui/backup_ui_stage.class.php:94 | 6 | - 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:258 | 6 | - 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:266 | 6 | - 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:604 | 6 | - Undefined Properties
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/backup/util/ui/renderer.php:607 | 6 | - Undefined Properties
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/backup/util/ui/restore_ui_stage.class.php:615 | 6 | - 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:727 | 6 | - 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:875 | 6 | - 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:756 | 6 | - 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:764 | 6 | - 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:33 | 6 | - Exit Without Argument
- Exit() Usage
- Could Make A Function
- Implied If
- Preprocessable
- Logical Should Use Symbolic Operators
|
/badges/lib.php:37 | 6 | - 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:97 | 6 | - 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:548 | 6 | - 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:103 | 6 | - 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:58 | 6 | - Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Mismatch Properties Types
- Unfinished Object
|
/blocks/moodleblock.class.php:76 | 6 | - Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Mismatch Properties Types
- Unfinished Object
|
/blocks/moodleblock.class.php:146 | 6 | - Ambiguous Static
- Should Use Local Class
- Empty Function
- Forgotten Visibility
- StandaloneType True False Null
- Missing Some Returntype
|
/blocks/moodleblock.class.php:725 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/blocks/rss_client/managefeeds.php:130 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/blog/lib.php:165 | 6 | - 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:403 | 6 | - 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:768 | 6 | - 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:189 | 6 | - 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:1054 | 6 | - 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:459 | 6 | - 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:1188 | 6 | - 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:1320 | 6 | - 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:1950 | 6 | - 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:1981 | 6 | - 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:2180 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Written Only Variables
- Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
|
/calendar/lib.php:3836 | 6 | - 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:3867 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
- Could Make A Function
|
/cohort/lib.php:394 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Uses Default Values
- Drop Else After Return
- Strict Comparison With Booleans
|
/cohort/lib.php:507 | 6 | - 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:379 | 6 | - Weak Type With Array
- Undefined Classes
- Unresolved Classes
- Native Alias Functions Usage
- Could Make A Function
- Preprocessable
|
/communication/provider/matrix/classes/matrix_client.php:43 | 6 | - 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:46 | 6 | - Unused Public Methods
- Method Is Not An If
- Undefined Interfaces
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
|
/competency/classes/course_competency.php:101 | 6 | - Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
|
/completion/classes/manager.php:558 | 6 | - Check JSON
- Buried Assignation
- Uses Default Values
- Iffectations
- @ Operator
- Could Make A Function
|
/contentbank/classes/content.php:68 | 6 | - Undefined Properties
- Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/contentbank/classes/content.php:72 | 6 | - Undefined Properties
- Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/contentbank/classes/contentbank.php:338 | 6 | - 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:84 | 6 | - 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:55 | 6 | - 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:42 | 6 | - 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:40 | 6 | - 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:51 | 6 | - 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:1019 | 6 | - 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:41 | 6 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- StandaloneType True False Null
|
/course/externallib.php:1664 | 6 | - False To Array Conversion
- Scalar Are Not Arrays
- Uncaught Exceptions
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
|
/course/format/classes/base.php:85 | 6 | - 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:1089 | 6 | - 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:1118 | 6 | - 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:348 | 6 | - Assumptions
- Mismatched Type
- Ambiguous Static
- Avoid Using stdClass
- Modified Typed Parameter
- Memoize MagicCall
|
/course/format/classes/output/local/content/addsection.php:63 | 6 | - 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:110 | 6 | - 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:82 | 6 | - 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:186 | 6 | - 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:86 | 6 | - 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:222 | 6 | - 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:50 | 6 | - 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:43 | 6 | - Unused Public Methods
- Mismatched Type
- Incompatible Signature Methods With Covariance
- Method Signature Must Be Compatible
- Undefined Interfaces
- Avoid Using stdClass
|
/course/lib.php:716 | 6 | - 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:1632 | 6 | - 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:2225 | 6 | - 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:2448 | 6 | - Undefined Properties
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
- Use ::Class Operator
|
/course/lib.php:4330 | 6 | - 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:4343 | 6 | - 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:4440 | 6 | - Don't Pollute Global Space
- Mismatched Type
- Avoid Using stdClass
- No Class In Global
- Wrong Type With Default
- Implicit Nullable Type
|
/course/lib.php:4514 | 6 | - 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:4519 | 6 | - 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:278 | 6 | - 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:1027 | 6 | - 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:360 | 6 | - 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:95 | 6 | - 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:39 | 6 | - 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:41 | 6 | - 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:43 | 6 | - 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:39 | 6 | - 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:41 | 6 | - 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:41 | 6 | - 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:111 | 6 | - Assumptions
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/enrol/externallib.php:150 | 6 | - Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/enrol/fee/classes/plugin.php:139 | 6 | - Assumptions
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/enrol/fee/classes/plugin.php:256 | 6 | - Missing Assignation In Branches
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
- Logical Should Use Symbolic Operators
|
/enrol/lti/cartridge.php:25 | 6 | - 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:1002 | 6 | - 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:279 | 6 | - 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:50 | 6 | - Unused Public Methods
- Max Level Of Nesting
- Ambiguous Static
- Too Many Local Variables
- Undefined Classes
- Method Could Be Static
|
/enrol/lti/lib.php:99 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/enrol/meta/lib.php:117 | 6 | - Assumptions
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/enrol/paypal/lib.php:130 | 6 | - Assumptions
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/enrol/paypal/lib.php:251 | 6 | - Missing Assignation In Branches
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
- Logical Should Use Symbolic Operators
|
/enrol/renderer.php:515 | 6 | - Undefined Properties
- Undefined Classes
- Unresolved Classes
- Native Alias Functions Usage
- Could Make A Function
- Preprocessable
|
/enrol/self/lib.php:1126 | 6 | - Assumptions
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/filter/tex/lib.php:29 | 6 | - 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:1234 | 6 | - 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:107 | 6 | - Nested Ifthen
- Buried Assignation
- Uses Default Values
- Iffectations
- Assign And Lettered Logical Operator Precedence
- Logical Should Use Symbolic Operators
|
/grade/edit/outcome/course.php:137 | 6 | - 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:168 | 6 | - 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:89 | 6 | - Merge If Then
- Nested Ifthen
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Logical Should Use Symbolic Operators
|
/grade/edit/tree/index.php:162 | 6 | - Nested Ifthen
- Buried Assignation
- Uses Default Values
- Iffectations
- Assign And Lettered Logical Operator Precedence
- Logical Should Use Symbolic Operators
|
/grade/edit/tree/lib.php:123 | 6 | - Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/grade/edit/tree/outcomeitem.php:186 | 6 | - 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:49 | 6 | - 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:556 | 6 | - Undefined Variable
- Used Once Variables (In Scope)
- Useless Instructions
- Used Once Variables
- No Choice
- Useless Null Coalesce
|
/grade/grading/form/lib.php:615 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Unreachable Method
|
/grade/grading/form/lib.php:629 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Unreachable Method
|
/grade/grading/form/lib.php:1067 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Unreachable Method
|
/grade/lib.php:545 | 6 | - 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:1946 | 6 | - No Need For Else
- Written Only Variables
- Undefined Variable
- Bail Out Early
- Used Once Variables (In Scope)
- Drop Else After Return
|
/grade/lib.php:2695 | 6 | - No Need For Else
- Nested Ifthen
- strpos() Too Much
- Bail Out Early
- Uses Default Values
- Drop Else After Return
|
/grade/lib.php:3070 | 6 | - No Need For Else
- Nested Ifthen
- strpos() Too Much
- Bail Out Early
- Uses Default Values
- Drop Else After Return
|
/grade/report/grader/index.php:152 | 6 | - 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:404 | 6 | - 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:1030 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Written Only Variables
- Undefined Variable
- Use Positive Condition
- Else If Versus Elseif
|
/grade/report/grader/lib.php:2022 | 6 | - 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:2072 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Written Only Variables
- Undefined Variable
- Use Positive Condition
- Used Once Variables (In Scope)
|
/grade/report/history/index.php:113 | 6 | - 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:419 | 6 | - 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:27 | 6 | - 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:29 | 6 | - 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:41 | 6 | - 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:47 | 6 | - 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:65 | 6 | - Missing Assignation In Branches
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Else If Versus Elseif
- Use === null
|
/grade/report/user/lib.php:176 | 6 | - 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:41 | 6 | - 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:41 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Used Once Property
- Used Once Variables (In Scope)
- Forgotten Visibility
- Unfinished Object
|
/group/grouping_form.php:99 | 6 | - Nested Ifthen
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
- Logical Should Use Symbolic Operators
|
/group/lib.php:776 | 6 | - 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:806 | 6 | - 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:1002 | 6 | - 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:331 | 6 | - 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:344 | 6 | - 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:601 | 6 | - 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:626 | 6 | - 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:1990 | 6 | - 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:3840 | 6 | - 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:4644 | 6 | - Don't Pollute Global Space
- Mismatched Type
- Mismatched Default Arguments
- No Class In Global
- Wrong Type With Default
- Implicit Nullable Type
|
/lib/adminlib.php:848 | 6 | - 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:4443 | 6 | - 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:8879 | 6 | - 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:10454 | 6 | - 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:106 | 6 | - 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:40 | 6 | - 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:113 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Uses Default Values
- Iffectations
- Drop Else After Return
|
/lib/adodb/adodb-datadict.inc.php:631 | 6 | - 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:712 | 6 | - 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:723 | 6 | - 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:458 | 6 | - 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:229 | 6 | - 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:244 | 6 | - 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:415 | 6 | - 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:820 | 6 | - 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:1069 | 6 | - 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:2202 | 6 | - 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:2392 | 6 | - 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:379 | 6 | - 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:697 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Ambiguous Static
- Used Once Property
- Var Keyword
- Forgotten Visibility
|
/lib/adodb/adodb.inc.php:1133 | 6 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Forgotten Visibility
|
/lib/adodb/adodb.inc.php:1769 | 6 | - 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:1903 | 6 | - Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Forgotten Visibility
- Wrong Type Returned
|
/lib/adodb/adodb.inc.php:2657 | 6 | - 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:3130 | 6 | - 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:3474 | 6 | - 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:3523 | 6 | - 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:3538 | 6 | - 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:3563 | 6 | - 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:3966 | 6 | - Ambiguous Visibilities
- Ambiguous Static
- Var Keyword
- Forgotten Visibility
- Mismatch Properties Types
- Same Name For Property And Method
|
/lib/adodb/adodb.inc.php:3970 | 6 | - Never Used Properties
- Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- Mismatch Properties Types
- Unfinished Object
|
/lib/adodb/adodb.inc.php:4039 | 6 | - 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:4452 | 6 | - 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:5889 | 6 | - 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:144 | 6 | - 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:745 | 6 | - Variable Is Not A Condition
- Undefined Variable
- Used Once Variables (In Scope)
- Useless Parenthesis
- Undefined Functions
- @ Operator
|
/lib/adodb/drivers/adodb-db2.inc.php:1350 | 6 | - 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:1753 | 6 | - 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:1887 | 6 | - Variable Is Not A Condition
- Undefined Variable
- Used Once Variables (In Scope)
- Useless Parenthesis
- Undefined Functions
- @ Operator
|
/lib/adodb/drivers/adodb-fbsql.inc.php:191 | 6 | - Variable Is Not A Condition
- Undefined Variable
- Used Once Variables (In Scope)
- Useless Parenthesis
- Undefined Functions
- @ Operator
|
/lib/adodb/drivers/adodb-ibase.inc.php:108 | 6 | - 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:479 | 6 | - 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:45 | 6 | - 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:674 | 6 | - 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:993 | 6 | - 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:1263 | 6 | - 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:307 | 6 | - 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:1217 | 6 | - 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:974 | 6 | - 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:76 | 6 | - 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:574 | 6 | - 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:303 | 6 | - 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:793 | 6 | - 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:87 | 6 | - 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:502 | 6 | - 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:799 | 6 | - 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:349 | 6 | - Variable Is Not A Condition
- Undefined Variable
- Used Once Variables (In Scope)
- Useless Parenthesis
- Undefined Functions
- @ Operator
|
/lib/adodb/drivers/adodb-sybase.inc.php:358 | 6 | - 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:427 | 6 | - 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:16 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Ambiguous Static
- No Public Access
- Mismatch Properties Types
- Unfinished Object
|
/lib/aws-sdk/src/ClientResolver.php:900 | 6 | - 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:66 | 6 | - 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:56 | 6 | - 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:58 | 6 | - 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:215 | 6 | - Unused Public Methods
- Ambiguous Static
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/lib/aws-sdk/src/Middleware.php:69 | 6 | - 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:210 | 6 | - Abstract Or Implements
- Repeated Interface
- Method Collision Traits
- Already Parents Interface
- Interfaces Is Not Implemented
- Class Could Be Final
|
/lib/behat/classes/util.php:225 | 6 | - Don't Read And Write In One Expression
- Check JSON
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
|
/lib/behat/lib.php:486 | 6 | - 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:16 | 6 | - Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Mismatch Properties Types
- Unfinished Object
|
/lib/bennu/iCalendar_components.php:17 | 6 | - Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Mismatch Properties Types
- Unfinished Object
|
/lib/bennu/iCalendar_components.php:365 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- Inherited Property Type Must Match
- Unfinished Object
|
/lib/bennu/iCalendar_components.php:443 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- Inherited Property Type Must Match
- Unfinished Object
|
/lib/bennu/iCalendar_components.php:561 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- Inherited Property Type Must Match
- Unfinished Object
|
/lib/bennu/iCalendar_components.php:612 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- Inherited Property Type Must Match
- Unfinished Object
|
/lib/bennu/iCalendar_properties.php:19 | 6 | - Property Used In One Method Only
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Mismatch Properties Types
- Unfinished Object
|
/lib/bennu/iCalendar_properties.php:22 | 6 | - Property Used In One Method Only
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Mismatch Properties Types
- Unfinished Object
|
/lib/bennu/iCalendar_properties.php:26 | 6 | - Property Used In One Method Only
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Mismatch Properties Types
- Unfinished Object
|
/lib/bennu/iCalendar_properties.php:1234 | 6 | - Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Inherited Property Type Must Match
- Unfinished Object
|
/lib/blocklib.php:1445 | 6 | - Undefined Properties
- Nested Ifthen
- Written Only Variables
- Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
|
/lib/blocklib.php:1514 | 6 | - Undefined Properties
- Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/lib/blocklib.php:1596 | 6 | - Variable Is Not A Condition
- No Need For Else
- Nested Ifthen
- Use Positive Condition
- Bail Out Early
- Drop Else After Return
|
/lib/blocklib.php:2431 | 6 | - Don't Pollute Global Space
- No Class In Global
- Unused Parameter
- Used Once Variables (In Scope)
- Useless Return
- Empty Function
|
/lib/blocklib.php:2494 | 6 | - 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:124 | 6 | - 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:65 | 6 | - 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:138 | 6 | - 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:66 | 6 | - 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:39 | 6 | - 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:41 | 6 | - 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:40 | 6 | - 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:42 | 6 | - 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:39 | 6 | - 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:39 | 6 | - Undefined Interfaces
- Never Used Properties
- Ambiguous Visibilities
- Used Once Variables (In Scope)
- Forgotten Visibility
- Unfinished Object
|
/lib/classes/hook/output/before_html_attributes.php:40 | 6 | - Undefined Interfaces
- Never Used Properties
- Ambiguous Visibilities
- Used Once Variables (In Scope)
- Forgotten Visibility
- Unfinished Object
|
/lib/classes/hook/output/before_http_headers.php:38 | 6 | - 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:38 | 6 | - 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:39 | 6 | - 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:38 | 6 | - 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:132 | 6 | - Merge If Then
- Buried Assignation
- Uses Default Values
- Iffectations
- Strict Comparison With Booleans
- Else If Versus Elseif
|
/lib/classes/output/core_renderer.php:771 | 6 | - 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:2285 | 6 | - 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:3336 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Undefined Interfaces
- Undefined Classes
- Unresolved Instanceof
- Else If Versus Elseif
|
/lib/classes/output/core_renderer.php:3669 | 6 | - Should Use Ternary Operator
- Undefined Interfaces
- Use Positive Condition
- Undefined Classes
- Unresolved Instanceof
- Else If Versus Elseif
|
/lib/classes/output/core_renderer.php:4870 | 6 | - 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:131 | 6 | - Missing Assignation In Branches
- Use Positive Condition
- Buried Assignation
- Uses Default Values
- Iffectations
- Strict Comparison With Booleans
|
/lib/classes/output/theme_config.php:450 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Uses Default Values
- Iffectations
- Drop Else After Return
|
/lib/classes/output/theme_config.php:477 | 6 | - Unused Public Methods
- Ambiguous Static
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/lib/classes/output/theme_config.php:2066 | 6 | - 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:2107 | 6 | - Undefined Properties
- Check All Types
- No Need For Else
- Nested Ifthen
- Bail Out Early
- Drop Else After Return
|
/lib/classes/param.php:1038 | 6 | - Wrong Type For Native PHP Function
- Nested Ifthen
- Empty Blocks
- Repeated Regex
- Uses Default Values
- Else If Versus Elseif
|
/lib/classes/plugininfo/communication.php:33 | 6 | - 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:105 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Undefined Variable
- Used Once Variables (In Scope)
- Iffectations
- Use ::Class Operator
|
/lib/classes/report_helper.php:41 | 6 | - Undefined Properties
- Missing Assignation In Branches
- Nested Ifthen
- Undefined Variable
- Used Once Variables (In Scope)
- Iffectations
|
/lib/classes/session/manager.php:1257 | 6 | - 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:56 | 6 | - No Need For Else
- Use Positive Condition
- Bail Out Early
- Buried Assignation
- Iffectations
- Drop Else After Return
|
/lib/classes/update/checker.php:609 | 6 | - Wrong Type For Native PHP Function
- Uses Default Values
- Unused Returned Value
- Use random_int()
- Could Make A Function
- Preprocessable
|
/lib/classes/user.php:834 | 6 | - 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:966 | 6 | - 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:1232 | 6 | - Mismatched Default Arguments
- Avoid Using stdClass
- Should Use Local Class
- Wrong Type With Default
- Modified Typed Parameter
- Implicit Nullable Type
|
/lib/clilib.php:83 | 6 | - Assumptions
- Don't Pollute Global Space
- No Class In Global
- Undefined Classes
- Wrong Type With Default
- Implicit Nullable Type
|
/lib/clilib.php:175 | 6 | - 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:227 | 6 | - 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:1677 | 6 | - 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:307 | 6 | - No Need For Else
- Bail Out Early
- Uses Default Values
- Iffectations
- Drop Else After Return
- Could Make A Function
|
/lib/componentlib.class.php:356 | 6 | - No Need For Else
- Bail Out Early
- Uses Default Values
- Iffectations
- Drop Else After Return
- Could Make A Function
|
/lib/db/upgradelib.php:548 | 6 | - Undefined Properties
- Fn Argument Variable Confusion
- Written Only Variables
- Uses Default Values
- Wrong Number Of Arguments
- Empty Function
|
/lib/db/upgradelib.php:549 | 6 | - Undefined Properties
- Fn Argument Variable Confusion
- Written Only Variables
- Uses Default Values
- Wrong Number Of Arguments
- Empty Function
|
/lib/ddl/database_manager.php:958 | 6 | - Unused Public Methods
- Assumptions
- Max Level Of Nesting
- Too Many Local Variables
- Wrong Type With Default
- Implicit Nullable Type
|
/lib/deprecatedlib.php:509 | 6 | - 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:39 | 6 | - 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:60 | 6 | - 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:39 | 6 | - 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:1247 | 6 | - Ambiguous Static
- Mismatched Default Arguments
- Undefined Classes
- No Return Used
- Wrong Type With Default
- Implicit Nullable Type
|
/lib/dml/oci_native_moodle_database.php:1415 | 6 | - Unused Public Methods
- Mismatched Type
- Mismatched Default Arguments
- Undefined Classes
- Wrong Type With Default
- Implicit Nullable Type
|
/lib/dml/oci_native_moodle_database.php:1472 | 6 | - Unused Public Methods
- Mismatched Type
- Mismatched Default Arguments
- Undefined Classes
- Wrong Type With Default
- Implicit Nullable Type
|
/lib/dml/pgsql_native_moodle_database.php:39 | 6 | - 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:854 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Undefined Classes
- Wrong Type With Default
- Implicit Nullable Type
|
/lib/dml/pgsql_native_moodle_recordset.php:110 | 6 | - No Null For Native PHP Functions
- Nested Ifthen
- Same Conditions In Condition
- Buried Assignation
- Uses Default Values
- Iffectations
|
/lib/dml/tests/dml_test.php:220 | 6 | - 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:111 | 6 | - 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:47 | 6 | - 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:310 | 6 | - Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
|
/lib/enrollib.php:1485 | 6 | - 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:1695 | 6 | - 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:1936 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/lib/enrollib.php:1994 | 6 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/lib/enrollib.php:2044 | 6 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/lib/enrollib.php:2055 | 6 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/lib/enrollib.php:2451 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Unreachable Method
|
/lib/enrollib.php:2473 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/lib/enrollib.php:2669 | 6 | - Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
- No Return Used
|
/lib/enrollib.php:2866 | 6 | - Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/lib/environmentlib.php:1186 | 6 | - 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:1284 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Unfinished Object
|
/lib/environmentlib.php:1599 | 6 | - 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:431 | 6 | - Append And Assign Arrays
- Weak Type With Array
- Buried Assignation
- Uses Default Values
- Could Make A Function
- Use === null
|
/lib/filebrowser/file_browser.php:185 | 6 | - Undefined Properties
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
- Else If Versus Elseif
|
/lib/filebrowser/virtual_root_file.php:131 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/lib/filelib.php:611 | 6 | - 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:1389 | 6 | - 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:1518 | 6 | - 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:4397 | 6 | - 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:5218 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- strpos() Too Much
- Switch To Switch
- Uses Default Values
- Else If Versus Elseif
|
/lib/filestorage/file_storage.php:1224 | 6 | - 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:1910 | 6 | - 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:1923 | 6 | - 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:329 | 6 | - 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:596 | 6 | - 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:738 | 6 | - 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:101 | 6 | - 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:266 | 6 | - 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:117 | 6 | - 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:149 | 6 | - 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:262 | 6 | - 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:70 | 6 | - 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:631 | 6 | - Max Level Of Nesting
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Unused Parameter
- Forgotten Visibility
- Never Called Parameter
|
/lib/formslib.php:767 | 6 | - Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Forgotten Visibility
- Method Could Be Static
|
/lib/google/curlio.php:42 | 6 | - 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:1051 | 6 | - Undefined Properties
- No Need For Else
- Nested Ifthen
- Bail Out Early
- Drop Else After Return
- Use === null
|
/lib/grade/grade_item.php:2587 | 6 | - Written Only Variables
- Undefined Variable
- Bail Out Early
- Used Once Variables (In Scope)
- Uses Default Values
- Use ::Class Operator
|
/lib/gradelib.php:712 | 6 | - Should Use Ternary Operator
- Undefined Variable
- Use Positive Condition
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
|
/lib/grouplib.php:939 | 6 | - 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:1174 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Uses Default Values
- Drop Else After Return
- Could Make A Function
|
/lib/grouplib.php:1197 | 6 | - 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:8 | 6 | - 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:8 | 6 | - 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:294 | 6 | - Useless Referenced Argument
- Class-typed References
- Unused Parameter
- Undefined Classes
- Objects Don't Need References
- No Return Used
|
/lib/guzzlehttp/psr7/src/AppendStream.php:236 | 6 | - 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:116 | 6 | - 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:282 | 6 | - 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:22 | 6 | - 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:343 | 6 | - Undefined Properties
- No Need For Else
- Empty Blocks
- Use Positive Condition
- Uses Default Values
- Drop Else After Return
|
/lib/htmlpurifier/HTMLPurifier/Lexer/DOMLex.php:309 | 6 | - 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:57 | 6 | - Unused Public Methods
- Ambiguous Static
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/lib/installlib.php:62 | 6 | - 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:13 | 6 | - 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:14 | 6 | - 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:24 | 6 | - Weak Type With Array
- Scalar Are Not Arrays
- Null Or Boolean Arrays
- Useless Instructions
- Use ::Class Operator
- No Choice
|
/lib/lti1p3/src/LtiMessageLaunch.php:73 | 6 | - 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:201 | 6 | - Undefined Properties
- Check JSON
- Uses Default Values
- Useless Instructions
- No Choice
- Useless Null Coalesce
|
/lib/lti1p3/src/ServiceRequest.php:47 | 6 | - 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:347 | 6 | - 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:866 | 6 | - 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:55 | 6 | - 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:16 | 6 | - Unused Public Methods
- Assumptions
- Use Named Boolean In Argument Definition
- No Boolean As Default
- Ambiguous Static
- Should Use Local Class
|
/lib/modinfolib.php:961 | 6 | - 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:810 | 6 | - Test Then Cast
- No Need For Else
- Nested Ifthen
- Drop Else After Return
- Logical Should Use Symbolic Operators
- Use === null
|
/lib/moodlelib.php:2226 | 6 | - 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:3793 | 6 | - 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:5978 | 6 | - Don't Pollute Global Space
- No Class In Global
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- Never Called Parameter
|
/lib/moodlelib.php:6401 | 6 | - 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:7193 | 6 | - 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:7932 | 6 | - 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:8237 | 6 | - Empty Loop
- Wrong Type For Native PHP Function
- Static Loop
- Empty Blocks
- Uses Default Values
- Pre-increment
|
/lib/moodlelib.php:8546 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Switch To Switch
- Uses Default Values
- Could Make A Function
- Else If Versus Elseif
|
/lib/moodlelib.php:8606 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Use Positive Condition
- Uses Default Values
- Could Make A Function
- Else If Versus Elseif
|
/lib/moodlelib.php:9068 | 6 | - Nested Ifthen
- Buried Assignation
- Uses Default Values
- No Hardcoded Path
- Iffectations
- @ Operator
|
/lib/myprofilelib.php:235 | 6 | - Undefined Properties
- Modernize Empty With Expression
- Nested Ifthen
- Uses Default Values
- Iffectations
- Could Make A Function
|
/lib/navigationlib.php:381 | 6 | - Mismatched Type
- Undefined Interfaces
- Ambiguous Static
- Wrong Type With Default
- Could Inject Parameter
- Implicit Nullable Type
|
/lib/navigationlib.php:905 | 6 | - No Need For Else
- Undefined Interfaces
- Bail Out Early
- Undefined Classes
- Unresolved Instanceof
- Drop Else After Return
|
/lib/navigationlib.php:995 | 6 | - Nested Ifthen
- Written Only Variables
- Undefined Variable
- Bail Out Early
- Used Once Variables (In Scope)
- Uses Default Values
|
/lib/navigationlib.php:1974 | 6 | - 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:2163 | 6 | - 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:19 | 6 | - Never Used Properties
- Ambiguous Visibilities
- Ambiguous Static
- Used Once Variables (In Scope)
- Forgotten Visibility
- Unfinished Object
|
/lib/openspout/src/Writer/Common/ColumnWidth.php:19 | 6 | - Never Used Properties
- Ambiguous Visibilities
- Ambiguous Static
- Used Once Variables (In Scope)
- Forgotten Visibility
- Unfinished Object
|
/lib/openspout/src/Writer/XLSX/MergeCell.php:20 | 6 | - 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:10 | 6 | - 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:11 | 6 | - 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:12 | 6 | - 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:13 | 6 | - 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:12 | 6 | - Property Used In One Method Only
- Undefined Interfaces
- Used Once Variables (In Scope)
- Forgotten Visibility
- StandaloneType True False Null
- Unfinished Object
|
/lib/outputlib.php:77 | 6 | - 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:57 | 6 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Empty Function
- Forgotten Visibility
|
/lib/pear/HTML/QuickForm/Renderer.php:70 | 6 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Empty Function
- Forgotten Visibility
|
/lib/pear/HTML/QuickForm/Renderer.php:111 | 6 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Empty Function
- Forgotten Visibility
|
/lib/pear/HTML/QuickForm/Renderer.php:126 | 6 | - Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Empty Function
- Forgotten Visibility
|
/lib/pear/HTML/QuickForm/Renderer.php:154 | 6 | - 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:380 | 6 | - Never Used Properties
- Ambiguous Visibilities
- Ambiguous Static
- Var Keyword
- Forgotten Visibility
- Unfinished Object
|
/lib/pear/HTML/QuickForm/Renderer/Object.php:392 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Used Once Property
- Var Keyword
- Forgotten Visibility
- Unfinished Object
|
/lib/pear/HTML/QuickForm/Renderer/Object.php:410 | 6 | - Never Used Properties
- Ambiguous Visibilities
- Ambiguous Static
- Var Keyword
- Forgotten Visibility
- Unfinished Object
|
/lib/pear/HTML/QuickForm/Rule.php:62 | 6 | - Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Forgotten Visibility
- Unreachable Method
|
/lib/pear/HTML/QuickForm/Rule/Email.php:39 | 6 | - 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:489 | 6 | - 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:430 | 6 | - 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:49 | 6 | - Ambiguous Visibilities
- Var Keyword
- Forgotten Visibility
- StandaloneType True False Null
- Wrong Typed Property Default
- Unfinished Object
|
/lib/pear/HTML/QuickForm/group.php:438 | 6 | - 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:88 | 6 | - 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:110 | 6 | - 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:481 | 6 | - 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:68 | 6 | - 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:157 | 6 | - 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:81 | 6 | - 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:37 | 6 | - 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:37 | 6 | - 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:17 | 6 | - 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:19 | 6 | - 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:130 | 6 | - 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:50 | 6 | - Property Used In One Method Only
- Ambiguous Visibilities
- Ambiguous Static
- No Public Access
- StandaloneType True False Null
- Unfinished Object
|
/lib/phpminimumversionlib.php:47 | 6 | - 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:4857 | 6 | - 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:5000 | 6 | - 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:5029 | 6 | - 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:36 | 6 | - 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:36 | 6 | - 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:36 | 6 | - 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:162 | 6 | - 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:106 | 6 | - 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:474 | 6 | - 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:105 | 6 | - 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:90 | 6 | - 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:1624 | 6 | - 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:77 | 6 | - 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:15 | 6 | - 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:755 | 6 | - 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:36 | 6 | - 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:431 | 6 | - 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:273 | 6 | - 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:153 | 6 | - 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:647 | 6 | - No Need For Else
- Nested Ifthen
- strpos() Too Much
- Bail Out Early
- Uses Default Values
- Could Make A Function
|
/lib/phpxmlrpc/Helper/Http.php:235 | 6 | - Missing Assignation In Branches
- Weak Type With Array
- Buried Assignation
- Uses Default Values
- Iffectations
- @ Operator
|
/lib/portfoliolib.php:455 | 6 | - 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:778 | 6 | - 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:986 | 6 | - 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:1558 | 6 | - Undefined Properties
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Uses Default Values
- Iffectations
|
/lib/resourcelib.php:164 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Uses Default Values
- Strpos()-like Comparison
- Drop Else After Return
|
/lib/scssphp/Compiler.php:5301 | 6 | - 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:7096 | 6 | - 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:695 | 6 | - 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:97 | 6 | - Undefined Properties
- Should Use Ternary Operator
- Use Positive Condition
- Buried Assignation
- Uses Default Values
- Iffectations
|
/lib/simplepie/src/Content/Type/Sniffer.php:242 | 6 | - Undefined Properties
- Don't Read And Write In One Expression
- No Need For Else
- Buried Assignation
- Iffectations
- Drop Else After Return
|
/lib/statslib.php:1462 | 6 | - 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:58 | 6 | - Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- No Return Used
- Unreachable Method
|
/lib/tcpdf/include/tcpdf_fonts.php:1525 | 6 | - 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:2565 | 6 | - 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:214 | 6 | - 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:1879 | 6 | - 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:6384 | 6 | - 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:21655 | 6 | - 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:1028 | 6 | - Ambiguous Static
- Mismatched Default Arguments
- Should Use Local Class
- Undefined Classes
- No Return Used
- Method Could Be Static
|
/lib/testing/generator/data_generator.php:1131 | 6 | - 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:113 | 6 | - 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:176 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Wrong Type With Default
- Could Inject Parameter
- Implicit Nullable Type
|
/lib/testing/lib.php:289 | 6 | - Merge If Then
- Nested Ifthen
- Written Only Variables
- Undefined Variable
- Used Once Variables (In Scope)
- Iffectations
|
/lib/tests/behat/behat_general.php:2511 | 6 | - Don't Collect Void
- Should Make Alias
- Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
|
/lib/tests/behat/behat_hooks.php:215 | 6 | - Unused Public Methods
- Undefined Interfaces
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/lib/tests/behat/behat_navigation.php:1220 | 6 | - Don't Collect Void
- Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Native Alias Functions Usage
|
/lib/tests/customcontext_test.php:111 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Class Constants
- Undefined Classes
|
/lib/tests/customcontext_test.php:144 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Class Constants
- Undefined Classes
|
/lib/tests/customcontext_test.php:177 | 6 | - 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:150 | 6 | - 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:40 | 6 | - 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:4823 | 6 | - 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:724 | 6 | - Mismatched Type
- Parent First
- Wrong Type With Default
- Modified Typed Parameter
- Implicit Nullable Type
- Never Called Parameter
|
/lib/tests/other/todochecker.php:159 | 6 | - No Need For Else
- Nested Ifthen
- strpos() Too Much
- Bail Out Early
- Uses Default Values
- Could Make A Function
|
/lib/tokeniserlib.php:174 | 6 | - 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:188 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:191 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:194 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:197 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:203 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:206 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:209 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:212 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:218 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:221 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:224 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:227 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:396 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:399 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:402 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:405 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:411 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:414 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:417 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:423 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:426 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:429 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:432 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:504 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:507 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:510 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:513 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:519 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:522 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:525 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:531 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:534 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:537 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/validateurlsyntax.php:540 | 6 | - Wrong Type For Native PHP Function
- Undefined Variable
- Uses Default Values
- Could Make A Function
- Avoid Substr() One
- Preprocessable
|
/lib/weblib.php:1211 | 6 | - 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:1899 | 6 | - 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:2534 | 6 | - 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:58 | 6 | - 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:816 | 6 | - 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:817 | 6 | - 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:835 | 6 | - 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:1083 | 6 | - 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:1084 | 6 | - 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:1107 | 6 | - 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:1116 | 6 | - 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:1134 | 6 | - 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:1173 | 6 | - 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:322 | 6 | - 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:644 | 6 | - 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:229 | 6 | - 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:486 | 6 | - 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:224 | 6 | - 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:348 | 6 | - 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:530 | 6 | - 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:25 | 6 | - Undefined Interfaces
- Ambiguous Visibilities
- Ambiguous Static
- Scalar Or Object Property
- Assign Default To Properties
- Wrong Type With Default
|
/lib/zipstream/src/ZipStream.php:211 | 6 | - 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:114 | 6 | - Written Only Variables
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Uses Default Values
- Iffectations
|
/message/classes/api.php:472 | 6 | - 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:401 | 6 | - 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:461 | 6 | - 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:518 | 6 | - 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:579 | 6 | - 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:644 | 6 | - 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:700 | 6 | - 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:771 | 6 | - 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:831 | 6 | - 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:917 | 6 | - 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:971 | 6 | - 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:3465 | 6 | - False To Array Conversion
- Weak Type With Array
- Scalar Are Not Arrays
- Undefined Variable
- Uses Default Values
- Could Make A Function
|
/message/externallib.php:3542 | 6 | - 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:2836 | 6 | - 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:106 | 6 | - Unused Public Methods
- Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Empty Function
|
/mod/assign/assignmentplugin.php:117 | 6 | - Ambiguous Static
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/mod/assign/assignmentplugin.php:273 | 6 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/mod/assign/assignmentplugin.php:551 | 6 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/mod/assign/assignmentplugin.php:647 | 6 | - 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:158 | 6 | - 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:165 | 6 | - 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:103 | 6 | - 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:625 | 6 | - Missing Assignation In Branches
- Written Only Variables
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
- Else If Versus Elseif
|
/mod/assign/feedbackplugin.php:78 | 6 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
|
/mod/assign/gradingtable.php:723 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Uses Default Values
- Drop Else After Return
- Could Make A Function
|
/mod/assign/lib.php:1268 | 6 | - 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:1691 | 6 | - Don't Pollute Global Space
- Insufficient Type
- Avoid Using stdClass
- No Class In Global
- Modified Typed Parameter
- Memoize MagicCall
|
/mod/assign/locallib.php:123 | 6 | - Ambiguous Visibilities
- Ambiguous Static
- Assign Default To Properties
- StandaloneType True False Null
- Wrong Typed Property Default
- Unfinished Object
|
/mod/assign/locallib.php:1816 | 6 | - No Null For Index
- Mismatched Type
- Ambiguous Static
- Avoid Using stdClass
- Wrong Type With Default
- Implicit Nullable Type
|
/mod/assign/locallib.php:2989 | 6 | - Undefined Properties
- Undefined Variable
- Uses Default Values
- Useless Parenthesis
- Iffectations
- Else If Versus Elseif
|
/mod/assign/locallib.php:6114 | 6 | - Undefined Properties
- Missing Assignation In Branches
- Nested Ifthen
- Use Positive Condition
- Uses Default Values
- Strict Comparison With Booleans
|
/mod/assign/locallib.php:9913 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Uses Default Values
- Drop Else After Return
- Strict Comparison With Booleans
|
/mod/assign/overridedelete.php:26 | 6 | - 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:26 | 6 | - 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:26 | 6 | - 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:343 | 6 | - Don't Pollute Global Space
- Repeated Interface
- No Class In Global
- Empty Classes
- Already Parents Interface
- Class Could Be Final
|
/mod/assign/submissionplugin.php:116 | 6 | - Unused Public Methods
- Ambiguous Static
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Empty Function
|
/mod/assign/submissionplugin.php:125 | 6 | - Unused Public Methods
- Ambiguous Static
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Empty Function
|
/mod/assign/submissionplugin.php:146 | 6 | - 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:84 | 6 | - 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:47 | 6 | - 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:50 | 6 | - Unused Public Methods
- Ambiguous Static
- Unused Parameter
- Used Once Variables (In Scope)
- Empty Function
- Unreachable Method
|
/mod/bigbluebuttonbn/classes/local/helpers/roles.php:95 | 6 | - 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:195 | 6 | - 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:339 | 6 | - 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:697 | 6 | - 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:723 | 6 | - 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:48 | 6 | - 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:193 | 6 | - Don't Pollute Global Space
- No Class In Global
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- Empty Function
|
/mod/book/lib.php:527 | 6 | - 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:53 | 6 | - 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:80 | 6 | - Written Only Variables
- Used Once Variables (In Scope)
- Buried Assignation
- Used Once Variables
- Iffectations
- Else If Versus Elseif
|
/mod/book/tool/importhtml/locallib.php:39 | 6 | - 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:116 | 6 | - Undefined Properties
- Written Only Variables
- Used Once Variables (In Scope)
- Buried Assignation
- Uses Default Values
- Iffectations
|
/mod/chat/lib.php:953 | 6 | - Undefined Properties
- Undefined Variable
- Used Once Variables (In Scope)
- Iffectations
- Could Make A Function
- Else If Versus Elseif
|
/mod/chat/tests/generator/lib.php:53 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/mod/choice/lib.php:1222 | 6 | - 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:38 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/mod/data/classes/external.php:391 | 6 | - False To Array Conversion
- Weak Type With Array
- Scalar Are Not Arrays
- Uncaught Exceptions
- Undefined Classes
- Unresolved Classes
|
/mod/data/classes/external.php:407 | 6 | - 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:719 | 6 | - False To Array Conversion
- Weak Type With Array
- Scalar Are Not Arrays
- Uncaught Exceptions
- Undefined Classes
- Unresolved Classes
|
/mod/data/classes/external.php:737 | 6 | - 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:989 | 6 | - 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:65 | 6 | - 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:82 | 6 | - 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:84 | 6 | - 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:568 | 6 | - 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:583 | 6 | - 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:650 | 6 | - Undefined Properties
- Uses Default Values
- Useless Parenthesis
- Undefined Classes
- Could Make A Function
- Wrong Type Returned
|
/mod/data/classes/template.php:702 | 6 | - 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:721 | 6 | - 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:118 | 6 | - Merge If Then
- Nested Ifthen
- Buried Assignation
- Uses Default Values
- Iffectations
- Logical Should Use Symbolic Operators
|
/mod/data/field.php:156 | 6 | - Merge If Then
- Nested Ifthen
- Buried Assignation
- Uses Default Values
- Iffectations
- Logical Should Use Symbolic Operators
|
/mod/data/lib.php:413 | 6 | - Undefined Properties
- Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/mod/data/lib.php:440 | 6 | - Undefined Properties
- Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
|
/mod/data/lib.php:1989 | 6 | - 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:3994 | 6 | - 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:4361 | 6 | - Don't Pollute Global Space
- Insufficient Type
- Avoid Using stdClass
- No Class In Global
- Modified Typed Parameter
- Memoize MagicCall
|
/mod/data/templates.php:127 | 6 | - Merge If Then
- Mismatched Type
- Nested Ifthen
- Buried Assignation
- Uses Default Values
- Iffectations
|
/mod/data/tests/generator/lib.php:217 | 6 | - Assumptions
- Max Level Of Nesting
- Too Many Local Variables
- No Return Used
- Wrong Type With Default
- Implicit Nullable Type
|
/mod/feedback/classes/external.php:450 | 6 | - 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:547 | 6 | - 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:615 | 6 | - 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:740 | 6 | - 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:279 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Undefined Classes
- Empty Function
|
/mod/feedback/lib.php:871 | 6 | - 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:1581 | 6 | - 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:2334 | 6 | - Undefined Properties
- Variable Is Not A Condition
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
|
/mod/feedback/lib.php:2371 | 6 | - Undefined Properties
- Variable Is Not A Condition
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
|
/mod/feedback/lib.php:3186 | 6 | - 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:38 | 6 | - 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:38 | 6 | - 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:165 | 6 | - 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:280 | 6 | - 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:948 | 6 | - 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:985 | 6 | - 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:1005 | 6 | - Mismatched Type
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- No Return Used
|
/mod/forum/classes/privacy/provider.php:1044 | 6 | - 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:432 | 6 | - Nested Ifthen
- Written Only Variables
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
- Logical Should Use Symbolic Operators
|
/mod/forum/lib.php:2843 | 6 | - 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:2973 | 6 | - 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:3212 | 6 | - 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:4633 | 6 | - 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:5702 | 6 | - 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:6211 | 6 | - 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:6681 | 6 | - Don't Pollute Global Space
- Insufficient Type
- Avoid Using stdClass
- No Class In Global
- Modified Typed Parameter
- Memoize MagicCall
|
/mod/forum/rsslib.php:352 | 6 | - Missing Assignation In Branches
- Variable Is Not A Condition
- Nested Ifthen
- Undefined Variable
- Uses Default Values
- Else If Versus Elseif
|
/mod/forum/subscribers.php:145 | 6 | - 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:69 | 6 | - 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:64 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/mod/glossary/edit_form.php:124 | 6 | - 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:295 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Could Make A Function
- Repeated print()
|
/mod/glossary/formats/entrylist/entrylist_format.php:3 | 6 | - 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:162 | 6 | - 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:1426 | 6 | - 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:1573 | 6 | - 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:3947 | 6 | - 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:59 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/mod/h5pactivity/lib.php:208 | 6 | - 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:95 | 6 | - 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:50 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Avoid Using stdClass
- Wrong Type With Default
- Implicit Nullable Type
|
/mod/imscp/tests/generator/lib.php:38 | 6 | - 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:39 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/mod/lesson/classes/external.php:215 | 6 | - 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:555 | 6 | - 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:638 | 6 | - 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:749 | 6 | - 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:819 | 6 | - 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:902 | 6 | - 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:1719 | 6 | - 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:1837 | 6 | - 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:434 | 6 | - 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:1677 | 6 | - Don't Pollute Global Space
- Insufficient Type
- Avoid Using stdClass
- No Class In Global
- Modified Typed Parameter
- Memoize MagicCall
|
/mod/lesson/locallib.php:668 | 6 | - 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:1070 | 6 | - 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:2674 | 6 | - 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:2699 | 6 | - Undefined Variable
- Used Once Variables (In Scope)
- Uncaught Exceptions
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
|
/mod/lesson/pagetypes/numerical.php:406 | 6 | - 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:424 | 6 | - 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:445 | 6 | - Undefined Properties
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/lesson/tabs.php:54 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/lesson/tabs.php:58 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/lesson/tabs.php:72 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/lesson/tabs.php:73 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/lesson/tabs.php:84 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/lesson/tabs.php:85 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/lesson/tests/generator/lib.php:82 | 6 | - 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:47 | 6 | - Unused Public Methods
- Undefined Interfaces
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Method Could Be Static
|
/mod/lti/lib.php:460 | 6 | - Don't Pollute Global Space
- No Class In Global
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- Empty Function
|
/mod/lti/locallib.php:1056 | 6 | - 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:43 | 6 | - 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:86 | 6 | - 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:91 | 6 | - Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/quiz/classes/external.php:537 | 6 | - 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:1960 | 6 | - 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:53 | 6 | - 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:62 | 6 | - Never Used Properties
- Ambiguous Visibilities
- Used Once Variables (In Scope)
- Forgotten Visibility
- StandaloneType True False Null
- Unfinished Object
|
/mod/quiz/lib.php:455 | 6 | - 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:1740 | 6 | - 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:1749 | 6 | - Undefined Properties
- Written Only Variables
- Undefined Variable
- Used Once Variables (In Scope)
- Buried Assignation
- Iffectations
|
/mod/quiz/lib.php:2233 | 6 | - Don't Pollute Global Space
- Insufficient Type
- Avoid Using stdClass
- No Class In Global
- Modified Typed Parameter
- Memoize MagicCall
|
/mod/quiz/locallib.php:171 | 6 | - 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:539 | 6 | - 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:162 | 6 | - 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:31 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/mod/resource/deprecatedlib.php:51 | 6 | - 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:546 | 6 | - 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:1695 | 6 | - Don't Pollute Global Space
- Insufficient Type
- Avoid Using stdClass
- No Class In Global
- Modified Typed Parameter
- Memoize MagicCall
|
/mod/scorm/locallib.php:1227 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Same Conditions In Condition
- Could Be Spaceship
- Drop Else After Return
|
/mod/scorm/locallib.php:2608 | 6 | - 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:144 | 6 | - Undefined Properties
- Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Unused Returned Value
|
/mod/scorm/tests/generator/lib.php:38 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/mod/url/deprecatedlib.php:51 | 6 | - 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:346 | 6 | - Undefined Properties
- Merge If Then
- strpos() Too Much
- Undefined Variable
- Used Once Variables (In Scope)
- Uses Default Values
|
/mod/url/tests/generator/lib.php:38 | 6 | - Unused Public Methods
- Ambiguous Static
- Mismatched Default Arguments
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
|
/mod/wiki/diff/difflib.php:305 | 6 | - Empty Loop
- Static Loop
- Empty Blocks
- Pre-increment
- Could Make A Function
- Avoid Substr() One
|
/mod/wiki/lib.php:382 | 6 | - Don't Pollute Global Space
- No Class In Global
- Unused Parameter
- Used Once Variables (In Scope)
- Undefined Classes
- Empty Function
|
/mod/wiki/lib.php:429 | 6 | - 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:661 | 6 | - Check All Types
- No Need For Else
- Nested Ifthen
- Bail Out Early
- Use Instanceof
- Drop Else After Return
|
/mod/wiki/pagelib.php:1829 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Undefined Interfaces
- Undefined Classes
- Unresolved Instanceof
- Else If Versus Elseif
|
/mod/wiki/parser/markups/creole.php:94 | 6 | - 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:404 | 6 | - 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:140 | 6 | - Undefined Properties
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/workshop/allocation/manual/renderer.php:180 | 6 | - Undefined Properties
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/workshop/backup/moodle1/lib.php:338 | 6 | - 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:32 | 6 | - Recycled Variables
- Overwritten Literals
- Assigned Twice
- Buried Assignation
- Uses Default Values
- Could Make A Function
|
/mod/workshop/form/numerrors/settings.php:36 | 6 | - Recycled Variables
- Overwritten Literals
- Assigned Twice
- Buried Assignation
- Uses Default Values
- Could Make A Function
|
/mod/workshop/lib.php:1377 | 6 | - Missing Assignation In Branches
- Nested Ifthen
- Use Positive Condition
- Uses Default Values
- Could Make A Function
- Else If Versus Elseif
|
/mod/workshop/lib.php:1900 | 6 | - Don't Pollute Global Space
- Insufficient Type
- Avoid Using stdClass
- No Class In Global
- Modified Typed Parameter
- Memoize MagicCall
|
/mod/workshop/locallib.php:1491 | 6 | - 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:651 | 6 | - Undefined Properties
- Should Use Ternary Operator
- Undefined Interfaces
- Undefined Classes
- Unresolved Instanceof
- Logical Should Use Symbolic Operators
|
/mod/workshop/renderer.php:1024 | 6 | - Undefined Properties
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/mod/workshop/renderer.php:1030 | 6 | - Undefined Properties
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|
/notes/lib.php:386 | 6 | - 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:60 | 6 | - 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:42 | 6 | - 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:47 | 6 | - 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:47 | 6 | - 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:143 | 6 | - 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:888 | 6 | - 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:1863 | 6 | - 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:1155 | 6 | - 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:809 | 6 | - Ambiguous Visibilities
- Assign Default To Properties
- StandaloneType True False Null
- Wrong Typed Property Default
- Mismatch Properties Types
- Unfinished Object
|
/question/format/xml/format.php:1562 | 6 | - Undefined Properties
- Missing Assignation In Branches
- Use Positive Condition
- Buried Assignation
- Uses Default Values
- Iffectations
|
/question/type/calculatedsimple/question.php:38 | 6 | - 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:37 | 6 | - 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:188 | 6 | - 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:37 | 6 | - 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:163 | 6 | - 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:130 | 6 | - 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:440 | 6 | - 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:451 | 6 | - 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:162 | 6 | - 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:144 | 6 | - 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:127 | 6 | - 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:79 | 6 | - 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:83 | 6 | - 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:44 | 6 | - Mismatched Type
- Incompatible Signature Methods With Covariance
- StandaloneType True False Null
- Parent First
- Modified Typed Parameter
- Could Inject Parameter
|
/reportbuilder/classes/system_report.php:311 | 6 | - Unused Public Methods
- Avoid Using stdClass
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Empty Function
|
/repository/equella/lib.php:250 | 6 | - 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:464 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Uses Default Values
- Drop Else After Return
- Could Make A Function
|
/repository/filesystem/lib.php:756 | 6 | - Missing Assignation In Branches
- Uses Default Values
- Iffectations
- Strpos()-like Comparison
- @ Operator
- Could Make A Function
|
/repository/lib.php:230 | 6 | - Variable Is Not A Condition
- No Need For Else
- Nested Ifthen
- Use Positive Condition
- Bail Out Early
- Drop Else After Return
|
/repository/lib.php:1857 | 6 | - No Need For Else
- Nested Ifthen
- Undefined Variable
- Bail Out Early
- Used Once Variables (In Scope)
- Drop Else After Return
|
/repository/lib.php:1975 | 6 | - No Need For Else
- Nested Ifthen
- Bail Out Early
- Iffectations
- Use ::Class Operator
- Drop Else After Return
|
/repository/lib.php:2162 | 6 | - 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:171 | 6 | - 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:321 | 6 | - 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:2318 | 6 | - Undefined Properties
- No Need For Else
- Bail Out Early
- Uses Default Values
- Drop Else After Return
- Strict Comparison With Booleans
|
/repository/url/locallib.php:260 | 6 | - 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:43 | 6 | - 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:257 | 6 | - 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:290 | 6 | - Should Use Local Class
- Undefined Classes
- Wrong Type With Default
- Implicit Nullable Type
- Method Could Be Static
- Never Called Parameter
|
/search/classes/engine.php:364 | 6 | - 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:346 | 6 | - Don't Collect Void
- Uncaught Exceptions
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Native Alias Functions Usage
|
/theme/yui_combo.php:436 | 6 | - 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:41 | 6 | - 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:332 | 6 | - Unused Public Methods
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Unreachable Method
- Method Could Be Static
|
/user/filters/lib.php:349 | 6 | - Unused Public Methods
- Useless Referenced Argument
- Unused Parameter
- Used Once Variables (In Scope)
- Should Use Local Class
- Method Could Be Static
|
/user/lib.php:1175 | 6 | - 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:60 | 6 | - Undefined Properties
- Nested Ifthen
- Buried Assignation
- Uses Default Values
- Iffectations
- Could Make A Function
|
/user/profile/field/menu/field.class.php:93 | 6 | - 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:58 | 6 | - 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:902 | 6 | - 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:158 | 6 | - 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:37 | 6 | - 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:44 | 6 | - Undefined Variable
- Uses Default Values
- Undefined Classes
- Unresolved Classes
- Use ::Class Operator
- Could Make A Function
|