/home/altere25/labratnyc.com/wp-content/plugins/query-monitor/classes
NameSizeModeActions
Activation.php30380644editdlrm
ArrayAccess.php11050644editdlrm
Backtrace.php228870644editdlrm
Backtrace_Frame.php8700644editdlrm
CLI.php15680644editdlrm
Collector.php87070644editdlrm
Collectors.php34450644editdlrm
Collector_Assets.php145000644editdlrm
Component.php38660644editdlrm
Component_Altis_Vendor.php3560644editdlrm
Component_Core.php2630644editdlrm
Component_Dropin.php3460644editdlrm
Component_MU_Plugin.php3330644editdlrm
Component_MU_Vendor.php3420644editdlrm
Component_Other.php1700644editdlrm
Component_PHP.php2210644editdlrm
Component_Plugin.php3240644editdlrm
Component_Stylesheet.php3410644editdlrm
Component_Template.php2780644editdlrm
Component_Unknown.php8660644editdlrm
Component_VIP_Plugin.php3460644editdlrm
Data.php4280644editdlrm
DataCollector.php3960644editdlrm
DB.php15460644editdlrm
debug_bar.php17130644editdlrm
debug_bar_panel.php14460644editdlrm
Deprecated_Argument_Run.php10350644editdlrm
Deprecated_Class_Run.php9660644editdlrm
Deprecated_Constructor_Run.php11440644editdlrm
Deprecated_File_Included.php10950644editdlrm
Deprecated_Function_Run.php9830644editdlrm
Deprecated_Hook_Run.php10980644editdlrm
Dispatcher.php50970644editdlrm
Dispatchers.php12410644editdlrm
Doing_It_Wrong_Run.php8920644editdlrm
Frame_Registry.php14560644editdlrm
Hook.php13790644editdlrm
Output.php9230644editdlrm
PHP.php13970644editdlrm
Plugin.php24000644editdlrm
QM.php44510644editdlrm
QueryMonitor.php87050644editdlrm
Timer.php33260644editdlrm
Util.php199010644editdlrm
Wrong.php8220644editdlrm
Edit: /home/altere25/labratnyc.com/wp-content/plugins/query-monitor/classes/Component.php (3866B)
context = $context; $this->file = $file; $this->type = $type; } public function get_name(): string { if ( isset( $this->name ) ) { return $this->name; } return sprintf( $this->type, $this->context ); } final public function get_id(): string { return "{$this->type}-{$this->context}"; } final public function is_plugin(): bool { return ( $this->type === self::TYPE_PLUGIN ); } final public function is_core(): bool { return ( $this->type === self::TYPE_CORE ); } /** * @param QM_Component[] $components */ final public static function has_non_core( array $components ): bool { foreach ( $components as $component ) { if ( ! $component->is_core() ) { return true; } } return false; } final public static function from( string $type, string $context = '', string $file = '' ): QM_Component { switch ( $type ) { case self::TYPE_ALTIS_VENDOR: return new QM_Component_Altis_Vendor( $context, $file, $type ); case self::TYPE_PLUGIN: return new QM_Component_Plugin( $context, $file, $type ); case self::TYPE_MU_PLUGIN: return new QM_Component_MU_Plugin( $context, $file, $type ); case self::TYPE_MU_VENDOR: return new QM_Component_MU_Vendor( $context, $file, $type ); case self::TYPE_VIP_SHARED_PLUGIN: case self::TYPE_VIP_PLUGIN: case self::TYPE_VIP_CLIENT_MU_PLUGIN: return new QM_Component_VIP_Plugin( $context, $file, $type ); case self::TYPE_STYLESHEET: return new QM_Component_Stylesheet( $context, $file, $type ); case self::TYPE_TEMPLATE: return new QM_Component_Template( $context, $file, $type ); case self::TYPE_OTHER: return new QM_Component_Other( $context, $file, $type ); case self::TYPE_CORE: return new QM_Component_Core( $context, $file, $type ); case self::TYPE_DROPIN: return new QM_Component_Dropin( $context, $file, $type ); case self::TYPE_PHP: return new QM_Component_PHP( $context, $file, $type ); } return new QM_Component_Unknown( $context, $file, $type ); } /** * @return mixed */ public function __get( string $key ) { if ( 'name' === $key ) { return $this->get_name(); } } /** * @phpstan-return QM_Component_Array * @return array */ public function toArray(): array { return array( 'type' => $this->type, 'name' => $this->name, 'context' => $this->context, ); } /** * @phpstan-return QM_Component_Array * @return array */ public function jsonSerialize(): array { return $this->toArray(); } public static function sort( QM_Component $a, QM_Component $b ): int { return strcasecmp( $a->get_name(), $b->get_name() ); } }