WhitespaceClean-resources/classes
whitespace pass over files for reference regex that was used s/[ \t]+(\r?\n)/\1/
This commit is contained in:
parent
66ba2802bd
commit
1726744f4e
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cache class provides an abstracted cache
|
* cache class provides an abstracted cache
|
||||||
*
|
*
|
||||||
* @method string set
|
* @method string set
|
||||||
* @method string get
|
* @method string get
|
||||||
* @method string delete
|
* @method string delete
|
||||||
|
|
|
||||||
|
|
@ -366,7 +366,7 @@ include "root.php";
|
||||||
$keys=array_keys($data);
|
$keys=array_keys($data);
|
||||||
$values=array_values($data);
|
$values=array_values($data);
|
||||||
for($i=0;$i<$count;$i++){
|
for($i=0;$i<$count;$i++){
|
||||||
$keys[$i]= str_replace("-", "_", $keys[$i]);
|
$keys[$i]= str_replace("-", "_", $keys[$i]);
|
||||||
$this->{$keys[$i]}=$values[$i];
|
$this->{$keys[$i]}=$values[$i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -443,7 +443,7 @@ include "root.php";
|
||||||
$xml .= " <param name=\"auth-acl\" value=\"" . $this->auth_acl . "\"/>\n";
|
$xml .= " <param name=\"auth-acl\" value=\"" . $this->auth_acl . "\"/>\n";
|
||||||
}
|
}
|
||||||
$xml .= " </params>\n";
|
$xml .= " </params>\n";
|
||||||
|
|
||||||
$xml .= " <variables>\n";
|
$xml .= " <variables>\n";
|
||||||
if (strlen($this->hold_music)) {
|
if (strlen($this->hold_music)) {
|
||||||
$xml .= " <variable name=\"hold_music\" value=\"" . $this->hold_music . "\"/>\n";
|
$xml .= " <variable name=\"hold_music\" value=\"" . $this->hold_music . "\"/>\n";
|
||||||
|
|
@ -608,7 +608,7 @@ include "root.php";
|
||||||
$xml .= "\n";
|
$xml .= "\n";
|
||||||
$xml .= "<include>\n";
|
$xml .= "<include>\n";
|
||||||
$xml .= " <!--the domain or ip (the right hand side of the @ in the addr-->\n";
|
$xml .= " <!--the domain or ip (the right hand side of the @ in the addr-->\n";
|
||||||
if ($extension_dir_name == "default") {
|
if ($extension_dir_name == "default") {
|
||||||
$xml .= " <domain name=\"\$\${domain}\">\n";
|
$xml .= " <domain name=\"\$\${domain}\">\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class Syslog extends Event_Handler{
|
||||||
if ($_SESSION['event']['syslog']['enable'] <> 0){
|
if ($_SESSION['event']['syslog']['enable'] <> 0){
|
||||||
closelog();
|
closelog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function log_event($event_type, $params){
|
public function log_event($event_type, $params){
|
||||||
if ($_SESSION['event']['syslog']['enable'] <> 0){
|
if ($_SESSION['event']['syslog']['enable'] <> 0){
|
||||||
|
|
|
||||||
|
|
@ -323,7 +323,7 @@ include "root.php";
|
||||||
$database->add();
|
$database->add();
|
||||||
}
|
}
|
||||||
|
|
||||||
//delete the old dialplan details to prepare for new details
|
//delete the old dialplan details to prepare for new details
|
||||||
$database = new database;
|
$database = new database;
|
||||||
$database->table = "v_dialplan_details";
|
$database->table = "v_dialplan_details";
|
||||||
$database->where[0]['name'] = 'domain_uuid';
|
$database->where[0]['name'] = 'domain_uuid';
|
||||||
|
|
|
||||||
|
|
@ -661,7 +661,7 @@
|
||||||
|
|
||||||
//define singular function to convert a word in english to singular
|
//define singular function to convert a word in english to singular
|
||||||
private function singular($word) {
|
private function singular($word) {
|
||||||
//"-es" is used for words that end in "-x", "-s", "-z", "-sh", "-ch" in which case you add
|
//"-es" is used for words that end in "-x", "-s", "-z", "-sh", "-ch" in which case you add
|
||||||
if (substr($word, -2) == "es") {
|
if (substr($word, -2) == "es") {
|
||||||
if (substr($word, -3, 1) == "x") {
|
if (substr($word, -3, 1) == "x") {
|
||||||
return substr($word,0,-2);
|
return substr($word,0,-2);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* permission class
|
* permission class
|
||||||
*
|
*
|
||||||
* @method string add
|
* @method string add
|
||||||
* @method string delete
|
* @method string delete
|
||||||
* @method string exists
|
* @method string exists
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ include "root.php";
|
||||||
$this->object->assign($key, $value);
|
$this->object->assign($key, $value);
|
||||||
}
|
}
|
||||||
if ($this->engine === 'twig') {
|
if ($this->engine === 'twig') {
|
||||||
$this->var_array[$key] = $value;
|
$this->var_array[$key] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue