-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathphpstan-bootstrap.php
More file actions
55 lines (48 loc) · 1.22 KB
/
phpstan-bootstrap.php
File metadata and controls
55 lines (48 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* PHPStan bootstrap file for Contextual Related Posts Pro.
*
* @package WebberZone\Contextual_Related_Posts
*/
if ( ! defined( 'TOP_TEN_VERSION' ) ) {
define( 'TOP_TEN_VERSION', '0.0.0' );
}
if ( ! defined( 'TOP_TEN_PLUGIN_FILE' ) ) {
define( 'TOP_TEN_PLUGIN_FILE', '' );
}
if ( ! defined( 'TOP_TEN_PLUGIN_DIR' ) ) {
define( 'TOP_TEN_PLUGIN_DIR', '' );
}
if ( ! defined( 'TOP_TEN_PLUGIN_URL' ) ) {
define( 'TOP_TEN_PLUGIN_URL', '' );
}
if ( ! defined( 'TOP_TEN_STORE_DATA' ) ) {
define( 'TOP_TEN_STORE_DATA', 180 );
}
if ( ! defined( 'TOP_TEN_DB_VERSION' ) ) {
define( 'TOP_TEN_DB_VERSION', '0.0.0' );
}
if ( ! function_exists( 'fs_dynamic_init' ) ) {
/**
* Freemius fs_dynamic_init() stub for static analysis.
*
* This is loaded only by PHPStan and never in normal plugin runtime.
*
* @param array $args Freemius initialisation arguments.
* @return object Object with minimal Freemius-like API.
*/
function fs_dynamic_init( array $args ) {
unset( $args );
return new class() {
/**
* Stub add_filter method.
*
* @param string $hook_name Hook name.
* @param callable $callback Callback.
* @return void
*/
public function add_filter( $hook_name, $callback ) {
}
};
}
}