File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function testStableTagIsUpToDate(): void {
1515 self ::fail ( 'There is no readme file ' );
1616 }
1717
18- $ plugin_data = get_plugin_data ( dirname ( dirname ( dirname ( __FILE__ ) ) ) . '/wp-crontrol.php ' );
18+ $ plugin_data = get_plugin_data ( dirname ( dirname ( __DIR__ ) ) . '/wp-crontrol.php ' );
1919
2020 self ::assertSame ( $ readme_data ['stable_tag ' ], $ plugin_data ['Version ' ] );
2121 }
@@ -27,7 +27,7 @@ public function testStableTagIsUpToDate(): void {
2727 */
2828 private function get_readme () {
2929 if ( ! isset ( $ this ->readme_data ) ) {
30- $ file = dirname ( dirname ( dirname ( __FILE__ ) ) ) . '/readme.txt ' ;
30+ $ file = dirname ( dirname ( __DIR__ ) ) . '/readme.txt ' ;
3131
3232 if ( ! is_file ( $ file ) ) {
3333 return false ;
@@ -46,11 +46,10 @@ private function get_readme() {
4646 }
4747
4848 $ this ->readme_data = array (
49- 'stable_tag ' => trim ( trim ( $ _stable_tag [1 ], '* ' ) )
49+ 'stable_tag ' => trim ( trim ( $ _stable_tag [1 ], '* ' ) ),
5050 );
5151 }
5252
5353 return $ this ->readme_data ;
5454 }
55-
5655}
You can’t perform that action at this time.
0 commit comments