Changeset 3477 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php
- Timestamp:
- 06/19/2016 08:40:01 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php
r3476 r3477 1 1 <?php 2 namespace WordPressdotorg\Plugin_Directory\Admin; 3 use \WordPressdotorg\Plugin_Directory\Readme_Parser; 2 namespace WordPressdotorg\Plugin_Directory\Readme; 4 3 use WordPressdotorg\Plugin_Directory\Tools\Filesystem; 5 4 … … 7 6 * A wp-admin interface to validate readme files. 8 7 * 9 * @package WordPressdotorg\Plugin_Directory\ Admin8 * @package WordPressdotorg\Plugin_Directory\Readme 10 9 */ 11 class Readme_Validator {12 13 /** 14 * Fetch the instance of the Readme_Validator class.10 class Validator { 11 12 /** 13 * Fetch the instance of the Validator class. 15 14 * 16 15 * @static … … 19 18 static $instance = null; 20 19 21 return ! is_null( $instance ) ? $instance : $instance = new Readme_Validator();22 } 23 24 /** 25 * Constructor.20 return ! is_null( $instance ) ? $instance : $instance = new Validator(); 21 } 22 23 /** 24 * Validator constructor. 26 25 */ 27 26 private function __construct() { … … 100 99 101 100 file_put_contents( $temp_file, $readme ); 102 $readme = new Readme_Parser( $temp_file );101 $readme = new Parser( $temp_file ); 103 102 104 103 // Fatal errors.
Note: See TracChangeset
for help on using the changeset viewer.