Showing 65 of 88 total issues
Function getDelimiterType
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
private function getDelimiterType()
{
$Delimiter = 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
Method connectServer
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public function connectServer($Host, $Username, $Password, $Port = null, $useSSL = false, $useTLS = false)
Method connectServer
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public function connectServer($Host, $Username, $Password, $Port = null, $useSSL = false, $useTLS = false)
Method getDocumentation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
$Project,
$Title,
DirectoryParameter $Source,
DirectoryParameter $Destination,
ExcludeParameter $Exclude = null
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
$Project,
$Title,
DirectoryParameter $Source,
DirectoryParameter $Destination,
ExcludeParameter $Exclude = null
Method getApiGenDocumentation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
$Project,
$Title,
DirectoryParameter $Source,
DirectoryParameter $Destination,
ExcludeParameter $Exclude = null
Function getRangeCellList
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function getRangeCellList()
{
$Result = array();
if (null === $this->CellBR) {
- 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 loadFile
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function loadFile(FileParameter $Location, \PHPExcel_Cell_IValueBinder $ValueBinder = null)
{
$this->setFileParameter($Location);
$this->setConfiguration($ValueBinder);
- 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
Avoid too many return
statements within this method. Open
return $Node;
Avoid too many return
statements within this method. Open
return '';
Avoid too many return
statements within this method. Open
return $Index;
Avoid too many return
statements within this method. Open
return false;
Avoid too many return
statements within this method. Open
return self::getYamlDocument($Location);
Avoid too many return
statements within this method. Open
return \PHPExcel_Style_Border::BORDER_THIN;
Avoid too many return
statements within this method. Open
return $Result;
Avoid too many return
statements within this method. Open
return false;
Function loginCredential
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function loginCredential($Username, $Password = null)
{
$this->Username = $Username;
$this->Password = $Password;
- 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 saveFile
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function saveFile(FileParameter $Location = null)
{
if (null === $Location) {
$Info = $this->getFileParameter()->getFileInfo();
- 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 listDirectory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function listDirectory($Name = null)
{
$this->persistConnection();
- 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 setFile
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function setFile($File)
{
if (empty( $File ) && null !== $File) {
throw new EmptyFileException();
- 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"