@@ -47,7 +47,7 @@ |
||
47 | 47 | '<p>' . |
48 | 48 | __('redirection.io let you track HTTP errors and setup useful HTTP redirections.', 'redirectionio') . |
49 | 49 | '</p><p>' . |
50 | - sprintf(__('This plugin works in combination with <a href="%s">redirection.io</a> |
|
50 | + sprintf(__('This plugin works in combination with <a href="%s">redirection.io</a> |
|
51 | 51 | and need an installed and configured agent on your server. |
52 | 52 | </br> |
53 | 53 | Before using it, please make sure that you have :', 'redirectionio'), esc_url('//redirection.io')) . |
@@ -128,8 +128,7 @@ discard block |
||
128 | 128 | // find fake_agent location |
129 | 129 | $parentFolder = substr(__DIR__, -15, -6); |
130 | 130 | $fakeAgent = ('wordpress' === $parentFolder) ? |
131 | - __DIR__ . '/../../sdk/src/Resources/fake_agent.php' : |
|
132 | - './sdk/src/Resources/fake_agent.php'; |
|
131 | + __DIR__ . '/../../sdk/src/Resources/fake_agent.php' : './sdk/src/Resources/fake_agent.php'; |
|
133 | 132 | |
134 | 133 | $agent = new Process([$binary, $fakeAgent]); |
135 | 134 | $agent |
@@ -144,7 +143,7 @@ discard block |
||
144 | 143 | throw new ProcessFailedException($agent); |
145 | 144 | } |
146 | 145 | |
147 | - register_shutdown_function(function () use ($agent) { |
|
146 | + register_shutdown_function(function() use ($agent) { |
|
148 | 147 | $agent->stop(); |
149 | 148 | }); |
150 | 149 |