Showing 426 of 426 total issues
Method html
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function html($url, $html, $codes = array(), $ua = 'using', $force = false)
{
// if ( ! is_string($html)) Util::error('invalid HTML was given');
$html = ! is_string($html) ? '' : $html;
Method check
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function check($url)
{
Validate\Set::log($url, 'meta_refresh', self::$unspec, 5);
if (Validate::$is_partial === true) return;
Validate\Set::log($url, 'meta_refresh', self::$unspec, 1);
Method check
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function check($url)
{
Validate\Set::log($url, 'area_has_alt', self::$unspec, 1);
$str = Element\Get::ignoredHtml($url);
Method fetchHtmlFromInternet
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function fetchHtmlFromInternet($url, $ua = 'using')
{
$ua = $ua == 'using' ? Input::userAgent() : $ua;
if ( ! is_string($ua)) Util::error();
if (isset(static::$htmls[$url][$ua])) return static::$htmls[$url][$ua];
Method initDefault
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function initDefault($name = 'default')
{
$set_utf8 = A11YC_DB_TYPE == 'mysql' ? ' SET utf8' : '';
$auto_increment = A11YC_DB_TYPE == 'mysql' ? 'auto_increment' : '' ;
Method enuniqueCssUri
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function enuniqueCssUri($url, $css_url = '')
{
if ($css_url)
{
$css_urls = explode('/', $css_url);
Method implement
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function implement($row)
{
$ret = array();
$cols = explode("</td>", $row);
foreach ($cols as $k => $v)
Method makeArray
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function makeArray($css)
{
// remove comments, import or so
$css = preg_replace('/\/\*.+?\*\//is', '', $css);
$css = preg_replace('/^@import.+?$/mis', '', $css);
Method getTitles
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static function getTitles($techs)
{
$results = array();
foreach ($techs as $tech)
{
Function check
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public static function check()
{
$pages = array();
foreach (Model\Page::fetchAll() as $page)
{
- 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 getClosePos
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private static function getClosePos($target, $elename, $end_pure)
{
$loop = true;
$open_pos = 1;
$close_pos = 1;
- 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 forge
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public static function forge($controller = '\A11yc\Controller\Center', $action = 'actionIndex')
{
// vals
$c = Input::get('c', '');
$a = Input::get('a', '');
- 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 isFieldsExist
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public static function isFieldsExist($table, $fields = array(), $name = 'default')
{
if ( ! static::isTableExist($table, $name)) return false;
$retvals = 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 check
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public static function check($url)
{
Validate\Set::log($url, 'not_label_but_title', self::$unspec, 1);
$str = Element\Get::ignoredHtml($url);
$ms = Element\Get::elementsByRe($str, 'ignores', 'tags');
- 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 importPage
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private static function importPage($results)
{
if ( ! isset($results['page'])) return;
$this_pages = Model\Page::fetchAll();
- 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 importResult
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private static function importResult($results)
{
if ( ! isset($results['result'])) return;
foreach ($results['result'] as $url => $vals)
- 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 enuniqueCssUri
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private static function enuniqueCssUri($url, $css_url = '')
{
if ($css_url)
{
$css_urls = explode('/', $css_url);
- 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 implement
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private static function implement($row)
{
$ret = array();
$cols = explode("</td>", $row);
foreach ($cols as $k => $v)
- 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 edit
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public static function edit($is_add = false, $users = array(), $current_user_id = NULL)
{
$item = array();
if ($id = intval(Input::get('id')))
{
- 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 getImages
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public static function getImages($url, $base_uri = '', $target_html = '')
{
$retvals = array();
$str = empty($target_html) ? Element\Get::ignoredHtml($url) : $target_html;
$n = 0;
- 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"