Skip to content

Commit

Permalink
Trim trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
petk committed Oct 18, 2018
1 parent 0f4f47c commit 4875117
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions include/karma.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ function formatKarmaLinks($line)
}
// SVN
} else {
// PHP Group members, such as Rasmus, got access to everything. This
// PHP Group members, such as Rasmus, got access to everything. This
// check prevents broken links to /viewvc/*
if ($path === '*') {
return '<strong>This user has karma for everything!</strong>';
}

$url = "https://svn.php.net/viewvc/".strtr($path, array("/*/" => "/trunk/"));

}
$line = sprintf('<a href="%s" title="%s %s">%s</a>', $url, $path, $extra, $path);
return $line;
Expand Down
2 changes: 1 addition & 1 deletion include/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ function site_footer($config = array()) {



// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
2 changes: 1 addition & 1 deletion include/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ function error($errormsg)
exit;
}

// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
</div>
<?php
site_footer();
// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
2 changes: 1 addition & 1 deletion js/jquery.autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
}
return ret;
},

getSuggestions: function(q) {
var cr, me, ls;
cr = this.isLocal ? this.getSuggestionsLocal(q) : this.cachedResponse[q];
Expand Down
8 changes: 4 additions & 4 deletions js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ var fnFormatSearchResult = function(value, data, currentValue) {
return '<img src="http://www.gravatar.com/avatar/' + users[value]["email"] + '.jpg?s=25" /> ' + listing;
};

$('input.search').autocomplete({
minChars:2,
$('input.search').autocomplete({
minChars:2,
maxHeight:400,
fnFormatResult: fnFormatSearchResult,
onSelect: function(value, data){
onSelect: function(value, data){
if (window.location.host == 'master.php.net') {
window.location = "/manage/users.php?username=" + users[value]["username"];
} else {
Expand All @@ -21,4 +21,4 @@ $('input.search').autocomplete({
lookup: lookup
});

// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
2 changes: 1 addition & 1 deletion js/userlisting.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ function getAllUsers() {
echo 'var lookup = ' . json_encode($lookup) . ';';


// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
2 changes: 1 addition & 1 deletion user.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@
<?php
site_footer();

// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :
// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 :

0 comments on commit 4875117

Please sign in to comment.