chore: lint code

This commit is contained in:
Ben Goldsworthy 2021-04-27 09:54:07 +01:00
parent 4415c98eaa
commit d3283bdb02
8 changed files with 25 additions and 19 deletions

View file

@ -42,9 +42,11 @@ class Footnotes_WYSIWYG {
* @since 1.5.0
* @param array $p_arr_buttons pre defined Buttons from WordPress.
* @return array
*
* @todo Does this need to be `static`?
*/
public static function new_visual_editor_button( $p_arr_buttons ) {
array_push( $p_arr_buttons, $this->plugin_name );
array_push( $p_arr_buttons, 'footnotes' );
return $p_arr_buttons;
}
@ -66,9 +68,11 @@ class Footnotes_WYSIWYG {
* @since 1.5.0
* @param array $p_arr_plugins Scripts to be included to the editor.
* @return array
*
* @todo Does this need to be `static`?
*/
public static function include_scripts( $p_arr_plugins ) {
$p_arr_plugins[ $this->plugin_name ] = plugins_url( '/../admin/js/wysiwyg-editor' . ( ( PRODUCTION_ENV ) ? '.min' : '' ) . '.js', __FILE__ );
$p_arr_plugins['footnotes'] = plugins_url( '/../admin/js/wysiwyg-editor' . ( ( PRODUCTION_ENV ) ? '.min' : '' ) . '.js', __FILE__ );
return $p_arr_plugins;
}

View file

@ -43,6 +43,8 @@ class Footnotes_Layout_Init {
/**
* Class Constructor. Initializes all WordPress hooks for the Plugin Settings.
*
* @param string $plugin_name The name of the plugin.
*
* @since 1.5.0
* @since 2.8.0 Added `$plugin_name` parameter.
*/