Passed
Push — master ( d9712a...797bd7 )
by Daniel
03:51 queued 01:51
created

algolia-woo-indexer.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Plugin Name:     Algolia WooCommerce Indexer
4
 * Description:     Implement Algolia indexing from Woocommerce
5
 * Text Domain:     algolia-woo-indexer
6
 * Author:          Daniel F
7
 * Requires at least: 5.5
8
 * Tested up to: 5.5
9
 * Requires PHP: 7.3
10
 * WC requires at least: 4.6.1
11
 * WC tested up to: 4.6.1
12
 * Version:         1.0.4
13
 *
14
 * @package         algolia-woo-indexer
15
 * @license         GNU version 3
16
 */
17
18
/**
19
 * Abort if this file is called directly
20
 */
21
if ( ! defined( 'ABSPATH' ) ) {
22
	exit;
23
}
24
25
/**
26
 * Main class file
27
 */
28
require_once plugin_dir_path( __FILE__ ) . '/classes/class-algolia-woo-indexer.php';
29
30
/**
31
 * Class for checking plugin requirements
32
 */
33
require_once plugin_dir_path( __FILE__ ) . '/classes/class-check-requirements.php';
34
35
/**
36
 * Class for verifying nonces
37
 */
38
require_once plugin_dir_path( __FILE__ ) . '/classes/class-verify-nonces.php';
39
40
$algowooindexer = \Algowoo\Algolia_Woo_Indexer::get_instance();
0 ignored issues
show
The type Algowoo\Algolia_Woo_Indexer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
41
42
register_activation_hook( __FILE__, array( $algowooindexer, 'activate_plugin' ) );
43
register_deactivation_hook( __FILE__, array( $algowooindexer, 'deactivate_plugin' ) );
44