for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Handles webfonts.
*
* @package Kirki
* @category Modules
* @author Aristeides Stathopoulos
* @copyright Copyright (c) 2017, Aristeides Stathopoulos
* @license http://opensource.org/licenses/https://opensource.org/licenses/MIT
* @since 3.0.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
* Adds script for tooltips.
class Kirki_Modules_Webfonts {
* The class constructor
* @access public
public function __construct() {
include_once wp_normalize_path( dirname( __FILE__ ) . '/class-kirki-fonts.php' );
include_once wp_normalize_path( dirname( __FILE__ ) . '/class-kirki-fonts-google.php' );
* Parses fields and if any tooltips are found, they are added to the
* object's $tooltips_content property.
* @access private
private function parse_fields() {
$fields = Kirki::$fields;
foreach ( $fields as $field ) {
foreach
This check looks for foreach loops that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.
Consider removing the loop.