Showing 5,014 of 7,620 total issues
Method getContent
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$sliceList[] = (new Slice())
Method frontendChoosePeriod
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendChoosePeriod($Id = null, $Period = null, $Remove = null)
{
$tblYear = $Id === null ? false : Term::useService()->getYearById($Id);
if ($tblYear) {
Method getContent
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
$left = '30%';
File ApiBankReference.php
has 401 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Billing\Accounting;
use SPHERE\Application\Api\ApiTrait;
use SPHERE\Application\Api\Dispatcher;
File ApiDebtor.php
has 401 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Billing\Accounting;
use SPHERE\Application\Api\ApiTrait;
use SPHERE\Application\Api\Dispatcher;
Method createPersonsFromFile
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createPersonsFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {
Function updatePassword
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
public function updatePassword(
IFormInterface $Form,
TblAccount $tblAccount,
$CredentialLock,
$CredentialLockSafety
- 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 checkInputBasket
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
private function checkInputBasket(
$Identifier = '',
$BasketId = '',
$Basket = array()
){
- 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 getESRLSubjectLanes
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
public function getESRLSubjectLanes($personId, $Height = '175px')
{
$SubjectSlice = (new Slice());
- 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 getContent
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
public static function getContent($ShowAll = false)
{
$validationTable = array();
if (!$ShowAll) {
- 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 migrateReporting
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
public function migrateReporting()
{
// All available Consumer
try {
$ConsumerList = $this->getConsumerList();
- 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 sanitizeDivision
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
protected function sanitizeDivision($Value)
{
$LevelName = null;
$DivisionName = null;
if ($Value === '') {
- 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 outerJoin
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
protected function outerJoin($List, $ProbeList = array(), $SearchList = array())
{
$Result = array();
/** @var AbstractView $Node0 */
foreach ($List[0] as $Node0) {
- 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 getExaminationsBoard
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getExaminationsBoard($marginTop, $textSize)
{
$leaderName = ' ';
$leaderDescription = 'Vorsitzende(r)';
Method setGradeLayoutBody
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function setGradeLayoutBody(
$subjectPosition = array(),
$typeId = 0,
$countSubjectColumns = 18,
$countRows = 12,
Method frontendTeacherAdd
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendTeacherAdd($Id = null, $TeacherId = null, $Remove = null, $Description = null)
{
$tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
if (!$tblDivision) {
Method frontendCustodyAdd
has 139 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function frontendCustodyAdd($Id = null, $PersonId = null, $Remove = null, $Description = null)
{
$tblDivision = $Id === null ? false : Division::useService()->getDivisionById($Id);
if (!$tblDivision) {
File ApiCreditor.php
has 397 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
namespace SPHERE\Application\Api\Billing\Accounting;
use SPHERE\Application\Api\ApiTrait;
use SPHERE\Application\Api\Dispatcher;
Method getContent
has 138 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getContent()
{
$sliceList = array();
Method createClubMembersFromFile
has 138 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createClubMembersFromFile(
IFormInterface $Form = null,
UploadedFile $File = null
) {