Passed
Push — master ( fbf577...f911f0 )
by Daniel
02:00 queued 35s
created

algolia-woo-indexer.php (3 issues)

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.3
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';
0 ignored issues
show
The function plugin_dir_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

28
require_once /** @scrutinizer ignore-call */ plugin_dir_path( __FILE__ ) . '/classes/class-algolia-woo-indexer.php';
Loading history...
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();
41
42
register_activation_hook( __FILE__, array( $algowooindexer, 'activate_plugin' ) );
0 ignored issues
show
The function register_activation_hook was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

42
/** @scrutinizer ignore-call */ 
43
register_activation_hook( __FILE__, array( $algowooindexer, 'activate_plugin' ) );
Loading history...
43
register_deactivation_hook( __FILE__, array( $algowooindexer, 'deactivate_plugin' ) );
0 ignored issues
show
The function register_deactivation_hook was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

43
/** @scrutinizer ignore-call */ 
44
register_deactivation_hook( __FILE__, array( $algowooindexer, 'deactivate_plugin' ) );
Loading history...
44