Skip to content

Commit

Permalink
Fix CodeSniffer whitespace violoations
Browse files Browse the repository at this point in the history
Removed extraneous whitespace to eliminate errors reported by the
Squiz.WhiteSpace.SuperfluousWhitespace sniff.
  • Loading branch information
mperry2 committed Sep 11, 2013
1 parent 010b700 commit 2f7a0e9
Show file tree
Hide file tree
Showing 21 changed files with 2 additions and 31 deletions.
1 change: 0 additions & 1 deletion inc/RemoteAPICore.php
Expand Up @@ -333,7 +333,6 @@ function listAttachments($ns, $options = array()) {
if (!is_array($options)) $options = array();
$options['skipacl'] = 0; // no ACL skipping for XMLRPC


if(auth_quickaclcheck($ns.':*') >= AUTH_READ) {
$dir = utf8_encodeFN(str_replace(':', '/', $ns));

Expand Down
1 change: 0 additions & 1 deletion inc/auth.php
Expand Up @@ -391,7 +391,6 @@ function auth_randombytes($length) {
}
}


// If no strong randoms available, try OS the specific ways
if(!$strong) {
// Unix/Linux platform
Expand Down
1 change: 0 additions & 1 deletion inc/fulltext.php
Expand Up @@ -395,7 +395,6 @@ function ft_snippet_re_preprocess($term) {
$BR = '\b';
}


if(substr($term,0,2) == '\\*'){
$term = substr($term,2);
}else{
Expand Down
1 change: 0 additions & 1 deletion inc/infoutils.php
Expand Up @@ -193,7 +193,6 @@ function check(){
msg('Valid locale '.hsc($loc).' found.', 1);
}


if($conf['allowdebug']){
msg('Debugging support is enabled. If you don\'t need it you should set $conf[\'allowdebug\'] = 0',-1);
}else{
Expand Down
4 changes: 0 additions & 4 deletions inc/parser/handler.php
Expand Up @@ -618,7 +618,6 @@ function Doku_Handler_Parse_Media($match) {
// Split title from URL
$link = explode('|',$link,2);


// Check alignment
$ralign = (bool)preg_match('/^ /',$link[0]);
$lalign = (bool)preg_match('/ $/',$link[0]);
Expand Down Expand Up @@ -1341,7 +1340,6 @@ function finalizeTable() {
break;
}


}
}

Expand All @@ -1368,7 +1366,6 @@ function finalizeTable() {
break;
}


}
}
if (is_null($spanning_cell)) {
Expand Down Expand Up @@ -1403,7 +1400,6 @@ function finalizeTable() {
}
}


// condense cdata
$cnt = count($this->tableCalls);
for( $key = 0; $key < $cnt; $key++){
Expand Down
1 change: 0 additions & 1 deletion inc/parser/metadata.php
Expand Up @@ -292,7 +292,6 @@ function internallink($id, $name = null){
$id = $parts[0];
}


$default = $this->_simpleTitle($id);

// first resolve and clean up the $id
Expand Down
1 change: 0 additions & 1 deletion inc/parser/parser.php
Expand Up @@ -807,7 +807,6 @@ function connectTo($mode) {
"\"",$mode,'doublequoteclosing'
);


}

function getSort() {
Expand Down
1 change: 0 additions & 1 deletion inc/parser/xhtml.php
Expand Up @@ -737,7 +737,6 @@ function windowssharelink($url, $name = null) {
$link['class'] = 'media';
}


$link['title'] = $this->_xmlEntities($url);
$url = str_replace('\\','/',$url);
$url = 'file:///'.$url;
Expand Down
4 changes: 0 additions & 4 deletions lib/plugins/acl/admin.php
Expand Up @@ -61,7 +61,6 @@ function handle() {
// fresh 1:1 copy without replacements
$AUTH_ACL = file($config_cascade['acl']['default']);


// namespace given?
if($INPUT->str('ns') == '*'){
$this->ns = '*';
Expand Down Expand Up @@ -386,7 +385,6 @@ function _html_acleditor($current){
echo '<legend>'.$this->getLang('acl_mod').'</legend>';
}


echo $this->_html_checkboxes($current,empty($this->ns),'acl');

if(is_null($current)){
Expand Down Expand Up @@ -686,7 +684,6 @@ function _acl_add($acl_scope, $acl_user, $acl_level){
if($acl_level > AUTH_EDIT) $acl_level = AUTH_EDIT;
}


$new_acl = "$acl_scope\t$acl_user\t$acl_level\n";

$new_config = $acl_config.$new_acl;
Expand Down Expand Up @@ -775,7 +772,6 @@ function _html_select(){
$inlist = true;
}


echo '<select name="acl_t" class="edit">'.NL;
echo ' <option value="__g__" class="aclgroup"'.$gsel.'>'.$this->getLang('acl_group').':</option>'.NL;
echo ' <option value="__u__" class="acluser"'.$usel.'>'.$this->getLang('acl_user').':</option>'.NL;
Expand Down
2 changes: 0 additions & 2 deletions lib/plugins/acl/style.css
@@ -1,4 +1,3 @@

#acl__tree {
font-size: 90%;
width: 25%;
Expand Down Expand Up @@ -138,4 +137,3 @@
#acl_manager table tr:hover {
background-color: __background_alt__;
}

2 changes: 0 additions & 2 deletions lib/plugins/config/settings/config.class.php
Expand Up @@ -176,12 +176,10 @@ function _read_config($file) {
for ($i=0; $i<count($matches); $i++) {
$value = $matches[$i][2];


// correct issues with the incoming data
// FIXME ... for now merge multi-dimensional array indices using ____
$key = preg_replace('/.\]\[./',CM_KEYMARKER,$matches[$i][1]);


// handle arrays
if(preg_match('/^array ?\((.*)\)/', $value, $match)){
$arr = explode(',', $match[1]);
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/plugin/admin.php
Expand Up @@ -65,7 +65,6 @@ function handle() {
// enable direct access to language strings
$this->setupLocale();


$fn = $INPUT->param('fn');
if (is_array($fn)) {
$this->cmd = key($fn);
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/plugin/classes/ap_info.class.php
Expand Up @@ -13,7 +13,6 @@ function process() {
$component_list = $this->get_plugin_components($this->manager->plugin);
usort($component_list, array($this,'component_sort'));


foreach ($component_list as $component) {
if (($obj = &plugin_load($component['type'],$component['name'],false,true)) === null) continue;

Expand Down
1 change: 0 additions & 1 deletion lib/plugins/popularity/action.php
Expand Up @@ -35,7 +35,6 @@ function _autosubmit(Doku_Event &$event, $param){
//Actually send it
$status = $this->helper->sendData( $this->helper->gatherAsString() );


if ( $status !== '' ){
//If an error occured, log it
io_saveFile( $this->helper->autosubmitErrorFile, $status );
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/revert/admin.php
Expand Up @@ -120,7 +120,6 @@ function _list($filter){
$recents = getRecents(0,$this->max_lines);
echo '<ul>';


$cnt = 0;
foreach($recents as $recent){
if($filter){
Expand Down
4 changes: 2 additions & 2 deletions lib/plugins/syntax.php
Expand Up @@ -216,12 +216,12 @@ function setupLocale() {

global $conf; // definitely don't invoke "global $lang"
$path = DOKU_PLUGIN.$this->getPluginName().'/lang/';

$lang = array();
// don't include once, in case several plugin components require the same language file
@include($path.'en/lang.php');
if ($conf['lang'] != 'en') @include($path.$conf['lang'].'/lang.php');

$this->lang = $lang;
$this->localised = true;
}
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/usermanager/admin.php
Expand Up @@ -342,7 +342,6 @@ function _htmlInputField($id, $name, $label, $value, $cando, $indent=0) {
$autocomp = '';
}


echo "<tr $class>";
echo "<td><label for=\"$id\" >$label: </label></td>";
echo "<td>";
Expand Down
1 change: 0 additions & 1 deletion lib/scripts/linkwiz.js
Expand Up @@ -237,7 +237,6 @@ var dw_linkwiz = {
link = ':' + link;
}


var so = link.length;
var eo = 0;
if(dw_linkwiz.val){
Expand Down
2 changes: 0 additions & 2 deletions lib/scripts/textselection.js
Expand Up @@ -104,7 +104,6 @@ function getSelection(textArea) {
}
} while ((!before_finished || !selection_finished));


// count number of newlines in str to work around stupid IE selection bug
var countNL = function(str) {
var m = str.split("\r\n");
Expand Down Expand Up @@ -230,4 +229,3 @@ function insertAtCarret(textAreaID, text){
var selection = getSelection(txtarea);
pasteText(selection,text,{nosel: true});
}

1 change: 0 additions & 1 deletion lib/tpl/dokuwiki/css/_forms.css
@@ -1,4 +1,3 @@

/* TODO: this file is not up to the best standards and will be fixed after an overhaul of the form code */

/**
Expand Down
1 change: 0 additions & 1 deletion lib/tpl/dokuwiki/css/_media_fullscreen.css
Expand Up @@ -501,4 +501,3 @@
width: 100%;
max-width: none;
}

0 comments on commit 2f7a0e9

Please sign in to comment.