From e0fdf41320730a683407d8e634ccd1b80adaca83 Mon Sep 17 00:00:00 2001 From: mafoo Date: Fri, 11 Mar 2016 12:08:26 +0000 Subject: [PATCH] WhitespaceClean-resources/classes whitespace pass over files for reference regex that was used s/[ \t]+(\r?\n)/\1/ --- resources/classes/cache.php | 2 +- resources/classes/directory.php | 6 +++--- resources/classes/event/handler/syslog.php | 2 +- resources/classes/fax.php | 2 +- resources/classes/orm.php | 2 +- resources/classes/permissions.php | 2 +- resources/classes/template.php | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/classes/cache.php b/resources/classes/cache.php index 077cfd9599..55fc8e039b 100644 --- a/resources/classes/cache.php +++ b/resources/classes/cache.php @@ -2,7 +2,7 @@ /** * cache class provides an abstracted cache - * + * * @method string set * @method string get * @method string delete diff --git a/resources/classes/directory.php b/resources/classes/directory.php index 1ba55de749..e6951a2a03 100644 --- a/resources/classes/directory.php +++ b/resources/classes/directory.php @@ -366,7 +366,7 @@ include "root.php"; $keys=array_keys($data); $values=array_values($data); for($i=0;$i<$count;$i++){ - $keys[$i]= str_replace("-", "_", $keys[$i]); + $keys[$i]= str_replace("-", "_", $keys[$i]); $this->{$keys[$i]}=$values[$i]; } } @@ -443,7 +443,7 @@ include "root.php"; $xml .= " auth_acl . "\"/>\n"; } $xml .= " \n"; - + $xml .= " \n"; if (strlen($this->hold_music)) { $xml .= " hold_music . "\"/>\n"; @@ -608,7 +608,7 @@ include "root.php"; $xml .= "\n"; $xml .= "\n"; $xml .= " \n"; - if ($extension_dir_name == "default") { + if ($extension_dir_name == "default") { $xml .= " \n"; } else { diff --git a/resources/classes/event/handler/syslog.php b/resources/classes/event/handler/syslog.php index ab5b98e67c..606c137c44 100644 --- a/resources/classes/event/handler/syslog.php +++ b/resources/classes/event/handler/syslog.php @@ -21,7 +21,7 @@ class Syslog extends Event_Handler{ if ($_SESSION['event']['syslog']['enable'] <> 0){ closelog(); } - } + } public function log_event($event_type, $params){ if ($_SESSION['event']['syslog']['enable'] <> 0){ diff --git a/resources/classes/fax.php b/resources/classes/fax.php index 195a0e8370..05dae4cbf4 100644 --- a/resources/classes/fax.php +++ b/resources/classes/fax.php @@ -323,7 +323,7 @@ include "root.php"; $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->table = "v_dialplan_details"; $database->where[0]['name'] = 'domain_uuid'; diff --git a/resources/classes/orm.php b/resources/classes/orm.php index f5cebe317e..13a4f24f88 100644 --- a/resources/classes/orm.php +++ b/resources/classes/orm.php @@ -661,7 +661,7 @@ //define singular function to convert a word in english to singular 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, -3, 1) == "x") { return substr($word,0,-2); diff --git a/resources/classes/permissions.php b/resources/classes/permissions.php index fa5ccb5055..c1ea8ee84a 100644 --- a/resources/classes/permissions.php +++ b/resources/classes/permissions.php @@ -23,7 +23,7 @@ /** * permission class - * + * * @method string add * @method string delete * @method string exists diff --git a/resources/classes/template.php b/resources/classes/template.php index dab07d44dc..5595cf3861 100644 --- a/resources/classes/template.php +++ b/resources/classes/template.php @@ -80,7 +80,7 @@ include "root.php"; $this->object->assign($key, $value); } if ($this->engine === 'twig') { - $this->var_array[$key] = $value; + $this->var_array[$key] = $value; } }