DerDu/MOC-Framework-Mark-V

View on GitHub

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(
            ',',
Severity: Minor
Found in Component/Document/Component/Bridge/Repository/PhpExcel/File.php - About 45 mins to fix

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)
Severity: Minor
Found in Component/Mail/Component/Bridge/Repository/EdenPhpSmtp.php - About 45 mins to fix

    Method connectServer has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function connectServer($Host, $Username, $Password, $Port = null, $useSSL = false, $useTLS = false)
    Severity: Minor
    Found in Component/Mail/Component/Bridge/Repository/EdenPhpPop3.php - About 45 mins to fix

      Method getDocumentation has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              $Project,
              $Title,
              DirectoryParameter $Source,
              DirectoryParameter $Destination,
              ExcludeParameter $Exclude = null
      Severity: Minor
      Found in Component/Documentation/Documentation.php - About 35 mins to fix

        Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                $Project,
                $Title,
                DirectoryParameter $Source,
                DirectoryParameter $Destination,
                ExcludeParameter $Exclude = null
        Severity: Minor
        Found in Component/Documentation/Component/Bridge/Repository/ApiGen.php - About 35 mins to fix

          Method getApiGenDocumentation has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  $Project,
                  $Title,
                  DirectoryParameter $Source,
                  DirectoryParameter $Destination,
                  ExcludeParameter $Exclude = null
          Severity: Minor
          Found in Component/Documentation/Documentation.php - About 35 mins to fix

            Function getRangeCellList has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
            Open

                private function getRangeCellList()
                {
            
                    $Result = array();
                    if (null === $this->CellBR) {
            Severity: Minor
            Found in Component/Document/Component/Bridge/Repository/PhpExcel/Style.php - About 35 mins to fix

            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);
            Severity: Minor
            Found in Component/Document/Component/Bridge/Repository/PhpExcel/File.php - About 35 mins to fix

            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;
            Severity: Major
            Found in Component/Document/Vendor/UniversalXml/Source/Node.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return '';
              Severity: Major
              Found in Component/Document/Vendor/PhpOfficeCommon/0.2.6/src/Common/Text.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return $Index;
                Severity: Major
                Found in Component/Document/Vendor/UniversalXml/Source/Node.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return false;
                  Severity: Major
                  Found in Component/Document/Vendor/UniversalXml/Source/Node.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return self::getYamlDocument($Location);
                    Severity: Major
                    Found in Component/Document/Document.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return \PHPExcel_Style_Border::BORDER_THIN;
                      Severity: Major
                      Found in Component/Document/Component/Bridge/Repository/PhpExcel/Style.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                                return $Result;
                        Severity: Major
                        Found in Component/Document/Vendor/UniversalXml/Source/Node.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return false;
                          Severity: Major
                          Found in Core/AutoLoader/Vendor/Universal/NamespaceLoader.php - About 30 mins to fix

                            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;
                            Severity: Minor
                            Found in Core/SecureKernel/Component/Bridge/Repository/SFTP/Connection.php - About 25 mins to fix

                            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();
                            Severity: Minor
                            Found in Component/Document/Component/Bridge/Repository/PhpExcel/File.php - About 25 mins to fix

                            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();
                            
                            
                            Severity: Minor
                            Found in Core/SecureKernel/Component/Bridge/Repository/SFTP.php - About 25 mins to fix

                            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();
                            Severity: Minor
                            Found in Core/FileSystem/Component/Parameter/Repository/FileParameter.php - About 25 mins to fix

                            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

                            Severity
                            Category
                            Status
                            Source
                            Language