Passed
Pull Request — master (#20)
by
unknown
07:58
created

site-reviews.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * ╔═╗╔═╗╔╦╗╦╔╗╔╦  ╦  ╔═╗╔╗ ╔═╗
4
 * ║ ╦║╣ ║║║║║║║║  ║  ╠═╣╠╩╗╚═╗
5
 * ╚═╝╚═╝╩ ╩╩╝╚╝╩  ╩═╝╩ ╩╚═╝╚═╝.
6
 *
7
 * Plugin Name:       Site Reviews
8
 * Plugin URI:        https://wordpress.org/plugins/site-reviews
9
 * Description:       Receive and display reviews on your website
10
 * Version:           5.2.0
11
 * Author:            Paul Ryley
12
 * Author URI:        https://geminilabs.io
13
 * License:           GPL2
14
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
15
 * Requires at least: 5.5
16
 * Requires PHP:      5.6.20
17
 * Text Domain:       site-reviews
18
 * Domain Path:       languages
19
 */
20
defined('ABSPATH') || die;
21
22
if (!class_exists('GL_Plugin_Check_v5')) {
23
    require_once __DIR__.'/activate.php';
24
}
25
if ((new GL_Plugin_Check_v5(__FILE__))->canProceed()) {
26
    require_once __DIR__.'/autoload.php';
27
    require_once __DIR__.'/compatibility.php';
28
    require_once __DIR__.'/deprecated.php';
29
    require_once __DIR__.'/helpers.php';
30
    $app = GeminiLabs\SiteReviews\Application::load();
31
    $app->make('Provider')->register($app);
32
    register_deactivation_hook(__FILE__, array($app, 'deactivate'));
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

32
    /** @scrutinizer ignore-call */ 
33
    register_deactivation_hook(__FILE__, array($app, 'deactivate'));
Loading history...
33
    register_shutdown_function(array($app, 'catchFatalError'));
34
    $app->init();
35
}
36