Usage_Reports::get_data()

get_data


Return Return

(mixed)


Source Source

File: src/core/classes/class-usage-reports.php

	public function get_data() {

		$started_at = microtime( true );

		$Automator_System_Report = Automator_System_Report::get_instance();

		$this->system_report = $Automator_System_Report->get();
		$this->recipes_data  = Automator()->get_recipes_data( false );

		$this->get_server_info();
		$this->get_wp_info();
		$this->get_theme_info();
		$this->get_license_info();
		$this->get_plugins_info( 'active' );
		$this->get_automator_info();
		$this->get_recipes_info();

		$finished_at = microtime( true );

		$this->report['get_data_took'] = round( ( $finished_at - $started_at ) * 1000 );

		return $this->report;
	}