web/skins/modern/Divs.php
Method divOtherinstallers
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function divOtherinstallers() {
$retval = "
<div class='sub_h'>
<div id='other_installers'>".$this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]."
<table id='device_list' style='padding:0px;'>";
Method divFooter
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function divFooter() {
$retval = "
<div class='footer' id='footer'>
<table>
<tr>
Method divUserWelcome
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function divUserWelcome() {
$retval = "
<div id='user_welcome'> <!-- this information is shown just before the download -->
<strong>".$this->Gui->textTemplates->templates[user\WELCOME_ABOARD_PAGEHEADING]."</strong>
<p>
Method divRoller
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function divRoller() {
$retval = "
<div id='roller'>
<div id='slides'>
<span id='line1'>".$this->Gui->textTemplates->templates[user\FRONTPAGE_ROLLER_EASY]."</span>
Function divOtherinstallers
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
public function divOtherinstallers() {
$retval = "
<div class='sub_h'>
<div id='other_installers'>".$this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]."
<table id='device_list' style='padding:0px;'>";
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function divFooter
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public function divFooter() {
$retval = "
<div class='footer' id='footer'>
<table>
<tr>
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"