Passed
Push — master ( ae447d...5389c1 )
by Salah
01:31
created

uninstall.php (1 issue)

Labels
Severity
1
<?php
2
3
/*
4
 * Copyright (c) 2017 Salah Alkhwlani <[email protected]>
5
 *
6
 * For the full copyright and license information, please view
7
 * the LICENSE file that was distributed with this source code.
8
 */
9
10
// If file is not invoked by WordPress, exit.
11
if (!\defined('WP_UNINSTALL_PLUGIN')) {
12
    exit;
13
}
14
15
// Register autoloader for this plugin.
16
require_once __DIR__ . '/vendor/autoload.php';
17
18
// Construct plugin instance.
19
$security = new \Yemenifree\WpSecurity\Plugin(plugin_basename(__FILE__));
0 ignored issues
show
The function plugin_basename 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

19
$security = new \Yemenifree\WpSecurity\Plugin(/** @scrutinizer ignore-call */ plugin_basename(__FILE__));
Loading history...
20
// Run uninstall actions.
21
$security->uninstall();
22