Skip to content

Commit

Permalink
Spaces around - operator
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Apr 27, 2015
1 parent 598435f commit cdc6a58
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion libraries/core.lib.php
Expand Up @@ -789,7 +789,7 @@ function PMA_arrayRemove($path, &$array)
break;
}
$depth++;
$path[$depth] =& $path[$depth-1][$key];
$path[$depth] =& $path[$depth - 1][$key];
}
// if element found, remove it
if ($found) {
Expand Down
20 changes: 10 additions & 10 deletions libraries/plugins/import/ImportCsv.class.php
Expand Up @@ -281,7 +281,7 @@ public function doImport()
$ch = $this->readCsvTerminatedString(
$buffer, $ch, $i, $csv_terminated_len
);
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;

}
while ($i < $len) {
Expand Down Expand Up @@ -311,7 +311,7 @@ public function doImport()
$ch = $this->readCsvTerminatedString(
$buffer, $ch, $i, $csv_terminated_len
);
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;
}
continue;
}
Expand All @@ -329,7 +329,7 @@ public function doImport()
$ch = $this->readCsvTerminatedString(
$buffer, $ch, $i, $csv_terminated_len
);
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;
}
} else {
$need_end = false;
Expand Down Expand Up @@ -357,7 +357,7 @@ public function doImport()
$ch = $this->readCsvTerminatedString(
$buffer, $ch, $i, $csv_terminated_len
);
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;
}
if ($csv_enclosed == $csv_escaped
&& ($ch == $csv_terminated
Expand All @@ -381,7 +381,7 @@ public function doImport()
$ch = $this->readCsvTerminatedString(
$buffer, $ch, $i, $csv_terminated_len
);
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;
}
}

Expand All @@ -394,7 +394,7 @@ public function doImport()
$i = $fallbacki;
$ch = mb_substr($buffer, $i, 1);
if ($csv_terminated_len > 1 && $ch == $csv_terminated[0]) {
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;
}
break;
}
Expand All @@ -408,7 +408,7 @@ public function doImport()
if ($csv_terminated_len > 1
&& $ch == $csv_terminated[0]
) {
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;
}
break;
} else {
Expand All @@ -420,7 +420,7 @@ public function doImport()
$ch = $this->readCsvTerminatedString(
$buffer, $ch, $i, $csv_terminated_len
);
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;
}
}
}
Expand All @@ -439,7 +439,7 @@ public function doImport()
if ($csv_terminated_len > 1
&& $ch == $csv_terminated[0]
) {
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;
}
break;
}
Expand All @@ -451,7 +451,7 @@ public function doImport()
$ch = $this->readCsvTerminatedString(
$buffer, $ch, $i, $csv_terminated_len
);
$i += $csv_terminated_len-1;
$i += $csv_terminated_len - 1;
}
}
// If everything went okay, store value
Expand Down
12 changes: 6 additions & 6 deletions libraries/rte/rte_routines.lib.php
Expand Up @@ -908,12 +908,12 @@ function PMA_RTN_getEditorForm($mode, $operation, $routine)
$routine['item_param_opts_text'][] = '';
$routine['item_num_params']++;
} else if ($operation == 'remove') {
unset($routine['item_param_dir'][$routine['item_num_params']-1]);
unset($routine['item_param_name'][$routine['item_num_params']-1]);
unset($routine['item_param_type'][$routine['item_num_params']-1]);
unset($routine['item_param_length'][$routine['item_num_params']-1]);
unset($routine['item_param_opts_num'][$routine['item_num_params']-1]);
unset($routine['item_param_opts_text'][$routine['item_num_params']-1]);
unset($routine['item_param_dir'][$routine['item_num_params'] - 1]);
unset($routine['item_param_name'][$routine['item_num_params'] - 1]);
unset($routine['item_param_type'][$routine['item_num_params'] - 1]);
unset($routine['item_param_length'][$routine['item_num_params'] - 1]);
unset($routine['item_param_opts_num'][$routine['item_num_params'] - 1]);
unset($routine['item_param_opts_text'][$routine['item_num_params'] - 1]);
$routine['item_num_params']--;
}
$disableRemoveParam = '';
Expand Down

0 comments on commit cdc6a58

Please sign in to comment.