Showing 5,014 of 7,620 total issues
Function setUTF8
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function setUTF8()
{
$Statement = array();
if( $this->Database->getPlatform()->getName() == "mysql" ) {
- 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 createCategory
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function createCategory(
IFormInterface $Form,
$Category
) {
- 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 addCriteria
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
final public function addCriteria($Property, $Value, $Comparison = self::COMPARISON_EXACT)
{
if (is_array($Value) && $Comparison != self::COMPARISON_IN) {
foreach ($Value as $Part) {
$Expression = $this->getExpressionComparison($Property, $Part, $Comparison);
- 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 countReligion
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
private static function countReligion(
TblStudent $tblStudent,
TblLevel $tblLevel,
$countReligionArray
) {
- 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 addForeignKey
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function addForeignKey(DBALTable &$KeyTarget, DBALTable $KeySource, $AllowNull = false)
{
if (!$this->Database->hasColumn($KeyTarget->getName(), $KeySource->getName())) {
if ($AllowNull) {
- 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 innerJoin
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
protected function innerJoin($List)
{
$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
Function performQueryAnalysis
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function performQueryAnalysis($query) {
if (preg_match('/^\\s*SELECT\\s*`?[a-zA-Z0-9]*`?\\.?\\*/i', $query)) {
$this->hints[] = 'Use <code>SELECT *</code> only if you need all columns from table';
}
if (preg_match('/ORDER BY RAND()/i', $query)) {
- 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 performQueryAnalysis
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function performQueryAnalysis($query) {
if (preg_match('/^\\s*SELECT\\s\\*/i', $query)) {
$this->hints[] = 'Use <code>SELECT *</code> only if you need all columns from table';
}
if (preg_match('/ORDER BY RAND()/i', $query)) {
- 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 __construct
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __construct(
$Name,
$Label = '',
$Placeholder = '',
$Data = array(),
Method __construct
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __construct($ExchangeType = self::EXCHANGE_TYPE_PLUS, $Data = array(), $Title = '', $HandlerClass = '')
{
if (is_integer($ExchangeType) && empty($HandlerClass)) {
Function callContent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
var callContent = function (Content, Callback) {
if (!occupyPipeline()) return;
onSuccessEvent(Content);
if (Callback == false) {
Callback = function () {
Method createSponsorAssociation
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createSponsorAssociation(
IFormInterface $Form,
$SponsorAssociation
) {
Method createResponsibility
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function createResponsibility(
IFormInterface $Form,
$Responsibility
) {
Method getWebToCompanyModal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getWebToCompanyModal($form, TblCompany $tblCompany, $ToCompanyId = null)
{
if ($ToCompanyId) {
$title = new Title(new Edit() . ' Internet Adresse bearbeiten');
} else {
Method getMailToCompanyModal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getMailToCompanyModal($form, TblCompany $tblCompany, $ToCompanyId = null)
{
if ($ToCompanyId) {
$title = new Title(new Edit() . ' E-Mail Adresse bearbeiten');
} else {
Method updateGroup
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function updateGroup(IFormInterface $Form = null, TblGroup $tblGroup, $Group)
{
/**
* Skip to Frontend
Method getPhoneToCompanyModal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getPhoneToCompanyModal($form, TblCompany $tblCompany, $ToCompanyId = null)
{
if ($ToCompanyId) {
$title = new Title(new Edit() . ' Telefonnummer bearbeiten');
} else {
Method getRelationshipToCompanyModal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getRelationshipToCompanyModal($form, TblPerson $tblPerson, $ToCompanyId = null)
{
if ($ToCompanyId) {
$title = new Title(new Edit() . ' Institutionenbeziehung bearbeiten');
} else {
Method getPhoneToPersonModal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getPhoneToPersonModal($form, TblPerson $tblPerson, $ToPersonId = null)
{
if ($ToPersonId) {
$title = new Title(new Edit() . ' Telefonnummer bearbeiten');
} else {
Method getAddressToPersonModal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function getAddressToPersonModal($form, TblPerson $tblPerson, $ToPersonId = null)
{
if ($ToPersonId) {
$title = new Title(new Edit() . ' Adresse bearbeiten');
} else {