jidaikobo-shibata/a11yc

View on GitHub

Showing 280 of 426 total issues

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

    public static function html($url, $html, $codes = array(), $ua = 'using', $force = false)
Severity: Minor
Found in classes/Validate.php - About 35 mins to fix

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

        private static function summaryless($n, $m, $url, $tstr, $table_tag)
    Severity: Minor
    Found in classes/Validate/Check/Table.php - About 35 mins to fix

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

          private static function updateEach($criterion, $results, $iclchks, $chk, $v)
      Severity: Minor
      Found in classes/Controller/BulkCriterion.php - About 35 mins to fix

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

            public static function update($key, $url, $value, $version = null, $group_id = null)
        Severity: Minor
        Found in classes/Model/DataUpdate.php - About 35 mins to fix

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

              private static function updateIntegrate($criterion, $results, $iclchks, $chk, $v)
          Severity: Minor
          Found in classes/Controller/BulkCriterion.php - About 35 mins to fix

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

                public static function insert($key, $url, $value, $version = null, $group_id = null)
            Severity: Minor
            Found in classes/Model/DataUpdate.php - About 35 mins to fix

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

                  private static function setDeleteFor($eles, $del_eles)
                  {
                      $del_fors = array();
                      foreach (array_keys($del_eles) as $id)
                      {
              Severity: Minor
              Found in classes/Validate/Check/NotLabelButTitle.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 setMessage has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  private static function setMessage($url)
                  {
                      $yml = Yaml::fetch();
                      $all_errs = array(
                          'notices' => array(),
              Severity: Minor
              Found in classes/Validate.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 check has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function check($url)
                  {
                      Validate\Set::log($url, 'area_has_alt', self::$unspec, 1);
                      $str = Element\Get::ignoredHtml($url);
              
              
              Severity: Minor
              Found in classes/Validate/Check/AreaHasAlt.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 check has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function check($url)
                  {
                      Validate\Set::log($url, 'css_invisible', self::$unspec, 5);
                      Validate\Set::log($url, 'css_background_image_only', self::$unspec, 5);
                      if ( ! static::$do_css_check) return;
              Severity: Minor
              Found in classes/Validate/Check/CssInvisibles.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 tags has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  private static function tags($str)
                  {
                      $ret = array(
                          0 => array(),
                          1 => array(),
              Severity: Minor
              Found in classes/Element/Get.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 uploadImg has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function uploadImg($target_path, $id = '', $old_path = '')
                  {
                      $file = Input::file('file');
                      if (empty($file['name'])) return $old_path;
              
              
              Severity: Minor
              Found in classes/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

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

                  private static function fieldsetless($url, $ms, $radio_check_names)
                  {
                      foreach ($radio_check_names as $radio_check_name)
                      {
                          foreach ($ms as $k => $tstr)
              Severity: Minor
              Found in classes/Validate/Check/Fieldsetless.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 setCurrentErr has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function setCurrentErr($url, $error_id, $issue_html = '')
                  {
                      $yml = Yaml::fetch();
                      $current_err = array();
              
              
              Severity: Minor
              Found in classes/Validate.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 __construct has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function __construct($config)
                  {
                      $dbtype = strtolower($config['dbtype']);
                      $dbh = false;
              
              
              Severity: Minor
              Found in libs/kontiki/classes/Db.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 auth has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function auth ()
                  {
                      // check is already logged in?
                      if (Session::show('auth', 'uid')) return TRUE;
              
              
              Severity: Minor
              Found in libs/kontiki/classes/Auth.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 getTargetUrl has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  protected static function getTargetUrl($attrs)
                  {
                      if (isset($attrs['href']))
                      {
                          return $attrs['href'];
              Severity: Minor
              Found in classes/Validate/Check/LinkCheck.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 import has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function import()
                  {
                      if (Input::isPostExists())
                      {
                          $file = Input::file('import');
              Severity: Minor
              Found in classes/Controller/DataImport.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 report has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function report()
                  {
                      if (class_exists('ZipArchive'))
                      {
                          if (ini_get('zlib.output_compression'))
              Severity: Minor
              Found in classes/Controller/DownloadReport.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 html has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function html()
                  {
                      if (class_exists('ZipArchive'))
                      {
                          if (ini_get('zlib.output_compression'))
              Severity: Minor
              Found in classes/Controller/DownloadHtml.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

              Severity
              Category
              Status
              Source
              Language