include/agenda_fnc.php
Method getNavBarTabs
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getNavBarTabs($currentTab = '')
{
/** @var Helper $helper */
$helper = Helper::getInstance();
Function getNavBarTabs
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
Open
function getNavBarTabs($currentTab = '')
{
/** @var Helper $helper */
$helper = Helper::getInstance();
- 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
File agenda_fnc.php
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* classGenerator
* walls_watermarks.
*
Method agenda_getCanevas
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function agenda_getCanevas($ts, $hStart, $hEnd, $mPlage = 15, $nbJours = 1, $formatDate = '', $formatJour = 'H:i')
{
$helper = Helper::getInstance();
$jour = date('d', $ts);
$mois = date('m', $ts);
Method agenda_getEvents
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$eventsArray,
$ts,
$hStart,
$hEnd,
$mPlage = 15,
Method agenda_getCanevas
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function agenda_getCanevas($ts, $hStart, $hEnd, $mPlage = 15, $nbJours = 1, $formatDate = '', $formatJour = 'H:i')
Function agenda_getCanevas
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
function agenda_getCanevas($ts, $hStart, $hEnd, $mPlage = 15, $nbJours = 1, $formatDate = '', $formatJour = 'H:i')
{
$helper = Helper::getInstance();
$jour = date('d', $ts);
$mois = date('m', $ts);
- 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
Method getListYears
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getListYears($year, $nbYearsBefore = 0, $nbYearsAfter = 5, $addNone = false, $name = 'year')