src/theme/functions/helper.php
Method name "Helper::add_next_and_number" is not in camel caps format Open
Open
public static function add_next_and_number($args){
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
if ( $i <= $numpages ) {
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
if ( ! $multipage || ! $more || $args['next_or_number'] !== 'next_and_number' )
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Opening brace of a class must be on the line after the definition Open
Open
class Helper {
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
// Originally found at http://www.velvetblues.com/web-development-blog/wordpress-number-next-previous-links-wp_link_pages/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$args['next_or_number'] = 'number';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$prev .= $args['link_before']. $args['previouspagelink'] . $args['link_after'] . '</a>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$next .= _wp_link_page($i);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $args;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $args;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
global $page, $numpages, $multipage, $more;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
class Helper {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ( ! $multipage || ! $more || $args['next_or_number'] !== 'next_and_number' )
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$i = $page - 1;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Inline control structures are not allowed Open
Open
if ( ! $multipage || ! $more || $args['next_or_number'] !== 'next_and_number' )
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$i = $page + 1;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static function add_next_and_number($args){
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$prev .= _wp_link_page($i);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$args['after'] = $next . $args['after'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Add Next and number hack
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$args['before'] = $args['before'] . ( $page == 1 ? '' : $prev );
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
namespace enigma;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Originally found at http://www.velvetblues.com/web-development-blog/wordpress-number-next-previous-links-wp_link_pages/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$prev = $next = '';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ( $i <= $numpages ) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$next .= $args['link_before']. $args['nextpagelink'] . $args['link_after'] . '</a>';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Expected 1 newline at end of file; 0 found Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
public static function add_next_and_number($args){
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
}
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
Open
if ( ! $multipage || ! $more || $args['next_or_number'] !== 'next_and_number' )
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
Open
if ( $i <= $numpages ) {
- Exclude checks
Whitespace found at end of line Open
Open
$args['after'] = $next . $args['after'];
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
class Helper {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
if ( $i <= $numpages ) {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
}
- Exclude checks
Opening brace should be on a new line Open
Open
public static function add_next_and_number($args){
- Exclude checks