Skip to content

Commit a1be843

Browse files
committed
Coding standards.
1 parent 2b4e803 commit a1be843

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/integration/PluginTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)