@@ -16,9 +16,9 @@ class ConvertKitAPITest extends TestCase
16
16
17
17
/**
18
18
* Location of the monologger log file.
19
- *
19
+ *
20
20
* @since 1.2.0
21
- *
21
+ *
22
22
* @var string
23
23
*/
24
24
protected $ logFile = '' ;
@@ -38,7 +38,7 @@ protected function setUp(): void
38
38
$ dotenv ->load ();
39
39
40
40
// Set location where API class will create/write the log file.
41
- $ this ->logFile = dirname (dirname (__FILE__ )). '/src/logs/debug.log ' ;
41
+ $ this ->logFile = dirname (dirname (__FILE__ )) . '/src/logs/debug.log ' ;
42
42
43
43
// Delete any existing debug log file.
44
44
$ this ->deleteLogFile ();
@@ -49,9 +49,9 @@ protected function setUp(): void
49
49
50
50
/**
51
51
* Test that debug logging works when enabled and an API call is made.
52
- *
52
+ *
53
53
* @since 1.2.0
54
- *
54
+ *
55
55
* @return void
56
56
*/
57
57
public function testDebugEnabled ()
@@ -67,15 +67,15 @@ public function testDebugEnabled()
67
67
68
68
/**
69
69
* Test that debug logging is not performed when disabled and an API call is made.
70
- *
70
+ *
71
71
* @since 1.2.0
72
- *
72
+ *
73
73
* @return void
74
74
*/
75
75
public function testDebugDisabled ()
76
76
{
77
77
$ result = $ this ->api ->get_account ();
78
-
78
+
79
79
// Confirm that the log is empty / doesn't exist.
80
80
$ this ->assertEmpty ($ this ->getLogFileContents ());
81
81
}
@@ -2085,29 +2085,29 @@ public function testGetResourceInaccessibleURL()
2085
2085
2086
2086
/**
2087
2087
* Deletes the src/logs/debug.log file, if it remains following a previous test.
2088
- *
2088
+ *
2089
2089
* @since 1.2.0
2090
- *
2090
+ *
2091
2091
* @return void
2092
2092
*/
2093
2093
private function deleteLogFile ()
2094
2094
{
2095
- if (file_exists ($ this ->logFile )) {
2095
+ if (file_exists ($ this ->logFile )) {
2096
2096
unlink ($ this ->logFile );
2097
2097
}
2098
2098
}
2099
2099
2100
2100
/**
2101
2101
* Returns the contents of the src/logs/debug.log file.
2102
- *
2102
+ *
2103
2103
* @since 1.2.0
2104
- *
2104
+ *
2105
2105
* @return string
2106
2106
*/
2107
2107
private function getLogFileContents ()
2108
2108
{
2109
2109
// Return blank string if no log file.
2110
- if (!file_exists ($ this ->logFile )) {
2110
+ if (!file_exists ($ this ->logFile )) {
2111
2111
return '' ;
2112
2112
}
2113
2113
0 commit comments