Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Commit 5933e79

Browse files
qbootjoelwurtz
authored andcommitted
Fix CS + Remove invisible whitespaces
1 parent 052993a commit 5933e79

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

assets/css/redirectionio.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020

2121
#redirectionio #rio_connections .rio_connection_status {
22-
border-radius: 5px;
22+
border-radius: 5px;
2323
color: white;
2424
display: inline-block;
2525
padding: 1px 12px 1px 6px;

assets/js/redirectionio.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Add a new connection dynamically.
3-
*
3+
*
44
* @param {event} e
55
*/
66
function rioAddConnection(e)
@@ -20,7 +20,7 @@ function rioAddConnection(e)
2020

2121
// find next id
2222
var id = parseInt(lastInput.name.split(/\[|\]/)[3]);
23-
var newId = id + 1;
23+
var newId = id + 1;
2424

2525
// clone a table of inputs (name, host and port)
2626
var clone = tables[0].cloneNode(true);
@@ -47,7 +47,7 @@ function rioAddConnection(e)
4747

4848
/*
4949
* Remove a connection dynamically.
50-
*
50+
*
5151
* @param {event} e
5252
*/
5353
function rioRemoveConnection(e)
@@ -97,18 +97,18 @@ function rioRemoveConnection(e)
9797

9898
/*
9999
* Update input `name` and `id` properties with a new `id`.
100-
*
101-
* Example :
100+
*
101+
* Example :
102102
* with id = 5 / keepValue = false
103103
* from <input id="rio_12_type" name="rio[connections][12][type]" value="example" ... />
104104
* to <input id="rio_5_type" name="rio[connections][5][type]" value="" ... />
105-
*
105+
*
106106
* @param {object} input An HTML input
107107
* @param {int} id New input id
108108
* @param {bool} keepValue If false, we wipe the input value
109109
*/
110110
function rioUpdateInput(input, id, keepValue)
111-
{
111+
{
112112
keepValue = typeof keepValue !== 'undefined' ? keepValue : false;
113113

114114
var inputNameSplit = input.name.split(/\[|\]/);
@@ -159,8 +159,8 @@ function rioUpdateInput(input, id, keepValue)
159159

160160
/*
161161
* Create an HTML h2 element containing "title #id".
162-
*
163-
* @param {string} title H2 title value
162+
*
163+
* @param {string} title H2 title value
164164
* @param {int} id
165165
* @return {object} H2 element created
166166
*/
@@ -174,13 +174,13 @@ function rioCreateH2(title, id)
174174
};
175175
h2.innerHTML = title + '#' + id + ' ';
176176
h2.appendChild(removeButton);
177-
177+
178178
return h2;
179179
}
180180

181181
/*
182182
* Check if an HTML element `el` has class `className`.
183-
*
183+
*
184184
* @param {object} el HTML element
185185
* @param {string} className Class name to check
186186
* @return {bool}
@@ -193,7 +193,7 @@ function rioHasClass(el, className) {
193193

194194
/*
195195
* Find nextSibling element of node `node` with className `className`.
196-
*
196+
*
197197
* @param {object} node A DOM node
198198
* @param {string} className Class name to find
199199
* @return {mixed} node element if found else null

src/RedirectionIO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function findRedirect()
8282

8383
$client->log($request, $response);
8484

85-
if ($response->getStatusCode() == 410) {
85+
if ($response->getStatusCode() === 410) {
8686
define('DONOTCACHEPAGE', true); // WP Super Cache and W3 Total Cache recognise this
8787
status_header(410);
8888
} else {

src/RedirectionIOSettingsPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function outputContent()
4747
'<p>' .
4848
__('redirection.io let you track HTTP errors and setup useful HTTP redirections.', 'redirectionio') .
4949
'</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>
5151
and need an installed and configured agent on your server.
5252
</br>
5353
Before using it, please make sure that you have :', 'redirectionio'), esc_url('//redirection.io')) .

0 commit comments

Comments
 (0)