From 7c7f5c05c7f86f531d0943b2b17393ce74c627b3 Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Mon, 10 Oct 2016 19:10:12 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- admin/aioseop_module_class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/admin/aioseop_module_class.php b/admin/aioseop_module_class.php index b79e095da..58ae8bb24 100644 --- a/admin/aioseop_module_class.php +++ b/admin/aioseop_module_class.php @@ -130,6 +130,7 @@ function get_option_name() { /** * Convenience function to see if an option is set. + * @param string $option */ function option_isset( $option, $location = null ) { $prefix = $this->get_prefix( $location ); @@ -235,6 +236,7 @@ function substr( $string, $start = 0, $length = 2147483647 ) { /** * Wrapper for strpos() - uses mb_strpos() if possible. + * @param string $needle */ function strpos( $haystack, $needle, $offset = 0 ) { if ( function_exists( 'mb_strpos' ) ) { @@ -246,6 +248,7 @@ function strpos( $haystack, $needle, $offset = 0 ) { /** * Wrapper for strrpos() - uses mb_strrpos() if possible. + * @param string $needle */ function strrpos( $haystack, $needle, $offset = 0 ) { if ( function_exists( 'mb_strrpos' ) ) { @@ -287,6 +290,9 @@ function xml_string_to_array( $xmlstr ) { } } + /** + * @param DOMElement $node + */ function domnode_to_array( $node ) { switch ( $node->nodeType ) { case XML_CDATA_SECTION_NODE: @@ -929,6 +935,7 @@ function get_filesystem_object() { /** * See if a file exists using WP Filesystem. + * @param string $filename */ function file_exists( $filename ) { $wpfs = $this->get_filesystem_object(); @@ -1003,6 +1010,7 @@ function load_file( $filename, $use_include_path = false, $context = null, $offs /** * Save a file through WP Filesystem. + * @param string $filename */ function save_file( $filename, $contents ) { $failed_str = __( sprintf( "Failed to write file %s!\n", $filename ), 'all-in-one-seo-pack' ); @@ -1026,6 +1034,7 @@ function save_file( $filename, $contents ) { /** * Delete a file through WP Filesystem. + * @param string $filename */ function delete_file( $filename ) { $wpfs = $this->get_filesystem_object(); @@ -1046,6 +1055,8 @@ function delete_file( $filename ) { /** * Rename a file through WP Filesystem. + * @param string $filename + * @param string $newname */ function rename_file( $filename, $newname ) { $wpfs = $this->get_filesystem_object();