-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathphpstan-bootstrap.php
More file actions
86 lines (72 loc) · 1.68 KB
/
phpstan-bootstrap.php
File metadata and controls
86 lines (72 loc) · 1.68 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**
* PHPStan bootstrap file for Contextual Related Posts Pro.
*
* @package WebberZone\Contextual_Related_Posts
*/
// phpcs:ignoreFile
if ( ! defined( 'WZ_CRP_VERSION' ) ) {
define( 'WZ_CRP_VERSION', '0.0.0' );
}
if ( ! defined( 'WZ_CRP_PLUGIN_FILE' ) ) {
define( 'WZ_CRP_PLUGIN_FILE', '' );
}
if ( ! defined( 'WZ_CRP_PLUGIN_DIR' ) ) {
define( 'WZ_CRP_PLUGIN_DIR', '' );
}
if ( ! defined( 'WZ_CRP_PLUGIN_URL' ) ) {
define( 'WZ_CRP_PLUGIN_URL', '' );
}
if ( ! defined( 'WZ_CRP_DEFAULT_THUMBNAIL_URL' ) ) {
define( 'WZ_CRP_DEFAULT_THUMBNAIL_URL', '' );
}
if ( ! defined( 'CRP_MAX_WORDS' ) ) {
define( 'CRP_MAX_WORDS', 100 );
}
if ( ! defined( 'CRP_CACHE_TIME' ) ) {
define( 'CRP_CACHE_TIME', 0 );
}
if ( ! defined( 'WZ_CRP_DB_VERSION' ) ) {
define( 'WZ_CRP_DB_VERSION', '0.0.0' );
}
if ( ! defined( 'CRP_CACHE_TIME' ) ) {
define( 'CRP_CACHE_TIME', 0 );
}
if ( ! defined( 'WZ_CRP_DB_VERSION' ) ) {
define( 'WZ_CRP_DB_VERSION', '0.0.0' );
}
if ( ! function_exists( 'fs_dynamic_init' ) ) {
/**
* Freemius bootstrap stub for static analysis.
*
* @param array<string, mixed> $args Freemius init args.
* @return object
*/
function fs_dynamic_init( array $args = array() ) {
unset( $args );
return new class() {
/**
* Stub method used by the plugin.
*
* @param string $tag Hook name.
* @param mixed $callback Callback.
* @return mixed
*/
public function add_filter( $tag, $callback ) {
unset( $tag, $callback );
return null;
}
/**
* Stub method used by the plugin.
*
* @return bool
*/
public function can_use_premium_code__premium_only() {
return false;
}
};
}
}
$crp_freemius = \fs_dynamic_init(
array()
);