@@ -21,8 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | You should have received a copy of the GNU General Public License |
23 | 23 | along with WP Default Feature Image. If not, see https://www.gnu.org/licenses/gpl-2.0.html. |
24 | - |
|
25 | -*/ |
|
24 | + */ |
|
26 | 25 | |
27 | 26 | |
28 | 27 | define('WPDFI_PLUGIN', __FILE__ ); |
@@ -133,7 +132,7 @@ discard block |
||
133 | 132 | * @return WPDFI Singleton instance of plugin class. |
134 | 133 | */ |
135 | 134 | function wpdfi() { |
136 | - return WPDFI::instance(); |
|
135 | + return WPDFI::instance(); |
|
137 | 136 | } |
138 | 137 | |
139 | 138 | add_action('plugins_loaded', [wpdfi(), 'hooks']); |
@@ -25,14 +25,14 @@ discard block |
||
25 | 25 | */ |
26 | 26 | |
27 | 27 | |
28 | -define('WPDFI_PLUGIN', __FILE__ ); |
|
29 | -define('WPDFI_PLUGIN_BASENAME', plugin_basename( WPDFI_PLUGIN ) ); |
|
30 | -define('WPDFI_URL_BASE', plugin_dir_url( WPDFI_PLUGIN) ); |
|
31 | -define('WPDFI_DIR_BASE', plugin_dir_path( WPDFI_PLUGIN ) ); |
|
32 | -define('WPDFI_ASSETS', WPDFI_URL_BASE . '/assets/' ); |
|
33 | -define('WPDFI_TEMPLATES_PATH', WPDFI_DIR_BASE. '/templates/'); |
|
28 | +define('WPDFI_PLUGIN', __FILE__); |
|
29 | +define('WPDFI_PLUGIN_BASENAME', plugin_basename(WPDFI_PLUGIN)); |
|
30 | +define('WPDFI_URL_BASE', plugin_dir_url(WPDFI_PLUGIN)); |
|
31 | +define('WPDFI_DIR_BASE', plugin_dir_path(WPDFI_PLUGIN)); |
|
32 | +define('WPDFI_ASSETS', WPDFI_URL_BASE.'/assets/'); |
|
33 | +define('WPDFI_TEMPLATES_PATH', WPDFI_DIR_BASE.'/templates/'); |
|
34 | 34 | |
35 | -require_once WPDFI_DIR_BASE . '/vendor/autoload.php'; |
|
35 | +require_once WPDFI_DIR_BASE.'/vendor/autoload.php'; |
|
36 | 36 | |
37 | 37 | use WPDFI\Traits\HasModule; |
38 | 38 | use WPDFI\Traits\Singleton; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | public function hooks() |
70 | 70 | { |
71 | 71 | |
72 | - add_action( 'init', [$this, 'init']); |
|
72 | + add_action('init', [$this, 'init']); |
|
73 | 73 | |
74 | 74 | /* Load all module hooks */ |
75 | 75 | $this->moduleHooks(); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | public function install() { |
86 | 86 | |
87 | 87 | $options = get_option('wpdfi-settings'); |
88 | - if(!$options['options']['status_for_update']) { |
|
88 | + if (!$options['options']['status_for_update']) { |
|
89 | 89 | $options['options']['status_for_update'] = 'publish'; |
90 | 90 | update_option('wpdfi-settings', $options); |
91 | 91 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public function init() |
102 | 102 | { |
103 | - load_plugin_textdomain('wpdfi', false, WPDFI_DIR_BASE . '/lang/'); |
|
103 | + load_plugin_textdomain('wpdfi', false, WPDFI_DIR_BASE.'/lang/'); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | 'admin' => Admin::instance() |
119 | 119 | ]; |
120 | 120 | |
121 | - foreach($modules as $moduleName => $moduleHandle) { |
|
121 | + foreach ($modules as $moduleName => $moduleHandle) { |
|
122 | 122 | $this->module($moduleName, $moduleHandle); |
123 | 123 | } |
124 | 124 |