@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @param string $file File with HTTP response. |
50 | 50 | */ |
51 | 51 | public function mock_http_response( $url, $file ) { |
52 | - $this->mock_http_responses[ $url ] = $file; |
|
52 | + $this->mock_http_responses[$url] = $file; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | * @return array |
65 | 65 | */ |
66 | 66 | public function pre_http_request( $preempt, $r, $url ) { |
67 | - if ( ! isset( $this->mock_http_responses[ $url ] ) ) { |
|
67 | + if ( ! isset( $this->mock_http_responses[$url] ) ) { |
|
68 | 68 | return $preempt; |
69 | 69 | } |
70 | 70 | |
71 | - $file = $this->mock_http_responses[ $url ]; |
|
71 | + $file = $this->mock_http_responses[$url]; |
|
72 | 72 | |
73 | - unset( $this->mock_http_responses[ $url ] ); |
|
73 | + unset( $this->mock_http_responses[$url] ); |
|
74 | 74 | |
75 | 75 | $response = file_get_contents( $file, true ); |
76 | 76 |