Completed
Pull Request — v3.0 (#146)
by
unknown
53:57 queued 42:42
created
web_interface/astpp/application/controllers/newmail.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,23 +29,23 @@
 block discarded – undo
29 29
 		parent::__construct();
30 30
 	}
31 31
 	
32
-	function index(){
32
+	function index() {
33 33
 		$data['account_info'] = $this->session->userdata['accountinfo'];
34 34
 		$data['username'] = $this->session->userdata('user_name');
35 35
 		$data['page_title'] = "Test Mail";
36
-		$this->load->view('view_newmail',$data);
36
+		$this->load->view('view_newmail', $data);
37 37
 	}
38
-	function customer_mail_result($flag=FALSE){
38
+	function customer_mail_result($flag = FALSE) {
39 39
 	$account_info = $this->session->userdata['accountinfo'];
40 40
         $post_array = $this->input->post();
41
-	$post_array['accountid']=$account_info['id'];
42
-	$post_array['history_id']=0;
43
-	$post_array['email']=$post_array['to'];
41
+	$post_array['accountid'] = $account_info['id'];
42
+	$post_array['history_id'] = 0;
43
+	$post_array['email'] = $post_array['to'];
44 44
 	unset($post_array['to']);
45
-	$this->email_lib->send_email($post_array,$post_array,'','',0,0);
45
+	$this->email_lib->send_email($post_array, $post_array, '', '', 0, 0);
46 46
 		$this->thanks();
47 47
 	}
48
-	function thanks(){
48
+	function thanks() {
49 49
             $this->load->view('view_mail_response');
50 50
 	}	
51 51
 
Please login to merge, or discard this patch.
web_interface/astpp/application/libraries/global_locale.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,19 +21,19 @@
 block discarded – undo
21 21
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 22
 ###############################################################################
23 23
 
24
-if (!defined('BASEPATH'))
24
+if ( ! defined('BASEPATH'))
25 25
     exit('No direct script access allowed');
26 26
 
27 27
 /**
28 28
  * Dynamically build forms for display
29 29
  */
30
-class Global_locale{
30
+class Global_locale {
31 31
 
32 32
     function __construct($library_name = '') {
33 33
 
34 34
         $this->CI = & get_instance();
35 35
 	header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
36
-	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
36
+	header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
37 37
 	header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
38 38
 	header("Cache-Control: post-check=0, pre-check=0", false);
39 39
 	header("Pragma: no-cache");
Please login to merge, or discard this patch.
web_interface/astpp/application/libraries/locale_menu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 22
 ###############################################################################
23 23
 
24
-if (!defined('BASEPATH'))
24
+if ( ! defined('BASEPATH'))
25 25
     exit('No direct script access allowed');
26 26
 
27 27
 /**
28 28
  * Dynamically build forms for display
29 29
  */
30
-class locale_Menu{
30
+class locale_Menu {
31 31
 
32 32
     function __construct($library_name = '') {
33 33
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $this->CI->load->model('db_model');
36 36
         $this->CI->load->library('email');
37 37
         $this->CI->load->library('session');
38
-	$current_locale=$this->CI->session->userdata('user_language');
38
+	$current_locale = $this->CI->session->userdata('user_language');
39 39
 	putenv("LC_ALL=$current_locale");
40 40
 	setlocale(LC_ALL, $current_locale); 
41 41
 	bindtextdomain(WEBSITE_DOMAIN, FCPATH.'/application/modules/dashboard/language');
Please login to merge, or discard this patch.
web_interface/astpp/application/libraries/freeswitch_lib.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,16 +22,16 @@  discard block
 block discarded – undo
22 22
 ###############################################################################
23 23
 
24 24
 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
25
-class freeswitch_lib{
25
+class freeswitch_lib {
26 26
 	
27
-	function event_socket_create($host='127.0.0.1', $port='8021', $password='ClueCon') {
27
+	function event_socket_create($host = '127.0.0.1', $port = '8021', $password = 'ClueCon') {
28 28
 	    $fp = @fsockopen($host, $port, $errno, $errdesc);
29 29
 // 	    or die("Connection to $host failed");
30 30
 // 	    socket_set_blocking($fp,false);
31 31
 	    
32 32
 	    if ($fp) {
33
-		socket_set_blocking($fp,false);
34
-		while (!feof($fp)) {
33
+		socket_set_blocking($fp, false);
34
+		while ( ! feof($fp)) {
35 35
 		    $buffer = fgets($fp, 1024);
36 36
 		    usleep(100); //allow time for reponse
37 37
 		    if (trim($buffer) == "Content-Type: auth/request") {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		$response = "";
55 55
 		$i = 0;
56 56
 		$contentlength = 0;
57
-		while (!feof($fp)) {
57
+		while ( ! feof($fp)) {
58 58
 		    $buffer = fgets($fp, 4096);
59 59
 		    if ($contentlength > 0) {
60 60
 		      $response .= $buffer;
Please login to merge, or discard this patch.
web_interface/astpp/application/config/cron.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
 */
8 8
 
9 9
 $astpp_config = parse_ini_file("/var/lib/astpp/astpp-config.conf");
10
-$config['SERVER_NAME'] 		= $astpp_config['base_url'];	// Your web site url
11
-$config['CRON_TIME_LIMIT']	= 0;								// 0 = no time limit
12
-$config['argv']			= array("LowBalance"=>"lowbalance/low_balance",
10
+$config['SERVER_NAME'] = $astpp_config['base_url']; // Your web site url
11
+$config['CRON_TIME_LIMIT'] = 0; // 0 = no time limit
12
+$config['argv'] = array("LowBalance"=>"lowbalance/low_balance",
13 13
 					"Lowcredit"=>"lowcreditlimit/low_creditlimit",
14 14
 					"UpdateBalance" => "updateBalance/GetUpdateBalance",
15 15
 				        "CurrencyUpdate" => "currencyupdate/update_currency",
16 16
 					"GenerateInvoice" => "generateInvoice/getInvoiceData",
17 17
 					"FeedBack"=>"feedback/customer_feedback_result/TRUE",
18 18
 					"BroadcastEmail" => "broadcastemail/broadcast_email");
19
-$config['CRON_BETA_MODE']	= false;							// Beta Mode (useful for blocking submissions for testing)
19
+$config['CRON_BETA_MODE'] = false; // Beta Mode (useful for blocking submissions for testing)
20 20
 
21 21
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/did/views/view_did_import.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
               <div class="col-md-12">
17 17
             	<div class="w-box">
18 18
             	 <span  style="margin-left:10px; text-align: center;background-color: none;color:#1c8400;">
19
-                    <? if(isset($error) && !empty($error)) {
19
+                    <? if (isset($error) && ! empty($error)) {
20 20
                         echo $error;
21 21
                     }?>
22 22
                  </span>
Please login to merge, or discard this patch.
freeswitch/fs/scripts/astpp.directory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     if ($xml == "")
32 32
         xml_not_found();
33 33
     echo $xml;
34
-}else {
34
+} else {
35 35
     xml_not_found();
36 36
 }
37 37
 $logger->log("*************************** Directory Ends **********************************");
Please login to merge, or discard this patch.
web_interface/astpp/application/models/astpp_common.php 1 patch
Indentation   +112 added lines, -112 removed lines patch added patch discarded remove patch
@@ -22,133 +22,133 @@
 block discarded – undo
22 22
 ###############################################################################
23 23
 
24 24
 class Astpp_common extends CI_Model {
25
-    // ------------------------------------------------------------------------
26
-    /**
27
-     * initialises the class inheriting the methods of the class Model 
28
-     *
29
-     * @return Usermodel
30
-     */
31
-    function Astpp_common() {
32
-        parent::__construct();
33
-    }
34
-    /**
35
-     * -------Here we write code for model astpp_common_model functions list_applyable_charges------
36
-     * Purpose: build array for applyable charge dropdown list.
37
-     * @param 
38
-     * @return return array of applyable chargelist.
39
-     */
40
-    function list_applyable_charges($accountid = '') {
41
-        $accountinfo = $this->session->userdata('accountinfo');
42
-        $reseller_id = $accountinfo['type'] == 1 ? $accountinfo['id'] : 0;
25
+	// ------------------------------------------------------------------------
26
+	/**
27
+	 * initialises the class inheriting the methods of the class Model 
28
+	 *
29
+	 * @return Usermodel
30
+	 */
31
+	function Astpp_common() {
32
+		parent::__construct();
33
+	}
34
+	/**
35
+	 * -------Here we write code for model astpp_common_model functions list_applyable_charges------
36
+	 * Purpose: build array for applyable charge dropdown list.
37
+	 * @param 
38
+	 * @return return array of applyable chargelist.
39
+	 */
40
+	function list_applyable_charges($accountid = '') {
41
+		$accountinfo = $this->session->userdata('accountinfo');
42
+		$reseller_id = $accountinfo['type'] == 1 ? $accountinfo['id'] : 0;
43 43
 	$q = " SELECT * FROM `charges` where reseller_id =$reseller_id and id NOT IN(select charge_id from charge_to_account where accountid  =$accountid) AND pricelist_id = '0'";
44
-        $item_arr = array();
45
-        $query = $this->db->query($q);
46
-        if ($query->num_rows() > 0) {
47
-            foreach ($query->result_array() as $row) {
48
-                if ($row['charge'] > 0) {
49
-                    $row['charge'] = $this->common_model->calculate_currency($row['charge']);
50
-                }
51
-                $item_arr[$row['id']] = $row['description'].' - '.$row['charge'];
52
-            }
53
-        }
54
-        return $item_arr;
55
-    }
56
-    function quote($inp) {
57
-        return "'".$this->db->escape_str($inp)."'";
58
-    }
44
+		$item_arr = array();
45
+		$query = $this->db->query($q);
46
+		if ($query->num_rows() > 0) {
47
+			foreach ($query->result_array() as $row) {
48
+				if ($row['charge'] > 0) {
49
+					$row['charge'] = $this->common_model->calculate_currency($row['charge']);
50
+				}
51
+				$item_arr[$row['id']] = $row['description'].' - '.$row['charge'];
52
+			}
53
+		}
54
+		return $item_arr;
55
+	}
56
+	function quote($inp) {
57
+		return "'".$this->db->escape_str($inp)."'";
58
+	}
59 59
 
60
-    /**
61
-     * @param string $q
62
-     * @param string $colname
63
-     */
64
-    function db_get_item($q, $colname) {
65
-        $item_arr = array();
66
-        $query = $this->db->query($q);
67
-        if ($query->num_rows() > 0) {
68
-            $row = $query->row_array();
69
-            return $row[$colname];
70
-        }
71
-        return '';
72
-    }
73
-    // Return the balance for a specific ASTPP account.
74
-    function accountbalance($account) {
75
-        $debit = 0;
76
-        $q = "SELECT SUM(debit) as val1 FROM cdrs WHERE accountid=".$this->quote($account)." AND status NOT IN (1, 2)";
77
-        $query = $this->db->query($q);
78
-        if ($query->num_rows() > 0) {
79
-            $row = $query->row_array();
80
-            $debit = $row['val1'];
81
-        }
82
-        $credit = 0;
83
-        $q = "SELECT SUM(credit) as val1  FROM cdrs WHERE accountid= ".$this->quote($account)." AND status NOT IN (1, 2)";
84
-        $query = $this->db->query($q);
85
-        if ($query->num_rows() > 0) {
86
-            $row = $query->row_array();
87
-            $credit = $row['val1'];
88
-        }
89
-        $posted_balance = 0;
90
-        $q = "SELECT * FROM accounts WHERE id = ".$this->quote($account);
91
-        $query = $this->db->query($q);
92
-        if ($query->num_rows() > 0) {
93
-            $row = $query->row_array();
94
-            $posted_balance = $row['balance'];
95
-        }
96
-        $balance = ($debit - $credit + $posted_balance);
97
-        return $balance;
98
-    }
99
-    function accounts_total_balance($reseller) {
100
-        $debit = 0;
101
-        $credit = 0;
102
-        if ($reseller == "") {
103
-            $q = "SELECT SUM(debit) as val1 FROM cdrs WHERE status NOT IN (1, 2)";
104
-            $debit = $this->db_get_item($q, 'val1');
60
+	/**
61
+	 * @param string $q
62
+	 * @param string $colname
63
+	 */
64
+	function db_get_item($q, $colname) {
65
+		$item_arr = array();
66
+		$query = $this->db->query($q);
67
+		if ($query->num_rows() > 0) {
68
+			$row = $query->row_array();
69
+			return $row[$colname];
70
+		}
71
+		return '';
72
+	}
73
+	// Return the balance for a specific ASTPP account.
74
+	function accountbalance($account) {
75
+		$debit = 0;
76
+		$q = "SELECT SUM(debit) as val1 FROM cdrs WHERE accountid=".$this->quote($account)." AND status NOT IN (1, 2)";
77
+		$query = $this->db->query($q);
78
+		if ($query->num_rows() > 0) {
79
+			$row = $query->row_array();
80
+			$debit = $row['val1'];
81
+		}
82
+		$credit = 0;
83
+		$q = "SELECT SUM(credit) as val1  FROM cdrs WHERE accountid= ".$this->quote($account)." AND status NOT IN (1, 2)";
84
+		$query = $this->db->query($q);
85
+		if ($query->num_rows() > 0) {
86
+			$row = $query->row_array();
87
+			$credit = $row['val1'];
88
+		}
89
+		$posted_balance = 0;
90
+		$q = "SELECT * FROM accounts WHERE id = ".$this->quote($account);
91
+		$query = $this->db->query($q);
92
+		if ($query->num_rows() > 0) {
93
+			$row = $query->row_array();
94
+			$posted_balance = $row['balance'];
95
+		}
96
+		$balance = ($debit - $credit + $posted_balance);
97
+		return $balance;
98
+	}
99
+	function accounts_total_balance($reseller) {
100
+		$debit = 0;
101
+		$credit = 0;
102
+		if ($reseller == "") {
103
+			$q = "SELECT SUM(debit) as val1 FROM cdrs WHERE status NOT IN (1, 2)";
104
+			$debit = $this->db_get_item($q, 'val1');
105 105
 
106
-            $q = "SELECT SUM(credit)  as val1 FROM cdrs WHERE status NOT IN (1, 2)";
107
-            $credit = $this->db_get_item($q, 'val1');
106
+			$q = "SELECT SUM(credit)  as val1 FROM cdrs WHERE status NOT IN (1, 2)";
107
+			$credit = $this->db_get_item($q, 'val1');
108 108
 
109
-            $tmp = "SELECT SUM(balance) as val1 FROM accounts WHERE reseller_id = ''";
110
-        } else {
111
-            $tmp = "SELECT SUM(balance) as val1 FROM accounts WHERE reseller_id = ".$this->quote($reseller);
112
-        }
113
-        $posted_balance = $this->db_get_item($tmp, "val1");
109
+			$tmp = "SELECT SUM(balance) as val1 FROM accounts WHERE reseller_id = ''";
110
+		} else {
111
+			$tmp = "SELECT SUM(balance) as val1 FROM accounts WHERE reseller_id = ".$this->quote($reseller);
112
+		}
113
+		$posted_balance = $this->db_get_item($tmp, "val1");
114 114
 
115
-        $balance = ($debit - $credit + $posted_balance);
116
-        return $balance;
117
-    }
118
-    function count_dids($test) {
119
-        $tmp = "SELECT COUNT(*) as val1 FROM dids ".$test;
120
-        return $this->db_get_item($tmp, 'val1');
121
-    }
115
+		$balance = ($debit - $credit + $posted_balance);
116
+		return $balance;
117
+	}
118
+	function count_dids($test) {
119
+		$tmp = "SELECT COUNT(*) as val1 FROM dids ".$test;
120
+		return $this->db_get_item($tmp, 'val1');
121
+	}
122 122
 
123
-    function count_callingcards($where, $field = 'COUNT(*)') {
124
-        $tmp = "SELECT $field as val FROM callingcards ".$where;
125
-        return $this->db_get_item($tmp, 'val');
126
-    }
123
+	function count_callingcards($where, $field = 'COUNT(*)') {
124
+		$tmp = "SELECT $field as val FROM callingcards ".$where;
125
+		return $this->db_get_item($tmp, 'val');
126
+	}
127 127
 
128
-    function count_accounts($test) {
129
-        $tmp = "SELECT COUNT(*) as val1 FROM accounts ".$test;
130
-        return $this->db_get_item($tmp, 'val1');
131
-    }
128
+	function count_accounts($test) {
129
+		$tmp = "SELECT COUNT(*) as val1 FROM accounts ".$test;
130
+		return $this->db_get_item($tmp, 'val1');
131
+	}
132 132
 
133
-    function count_rategroup($test) {
133
+	function count_rategroup($test) {
134 134
 	 $tmp = "SELECT COUNT(*) as val1 FROM pricelists ".$test;
135
-        return $this->db_get_item($tmp, 'val1');
136
-    }
135
+		return $this->db_get_item($tmp, 'val1');
136
+	}
137 137
 
138
-    function count_termination($test = '') {
138
+	function count_termination($test = '') {
139 139
 	 $tmp = "SELECT COUNT(*) as val1 FROM outbound_routes ".$test;
140
-        return $this->db_get_item($tmp, 'val1');
141
-    }
140
+		return $this->db_get_item($tmp, 'val1');
141
+	}
142 142
 
143
-    function count_trunk($test = '') {
143
+	function count_trunk($test = '') {
144 144
 	 $tmp = "SELECT COUNT(*) as val1 FROM trunks ".$test;
145
-        return $this->db_get_item($tmp, 'val1');
146
-    }
145
+		return $this->db_get_item($tmp, 'val1');
146
+	}
147 147
 
148
-    function count_origination($test = '') {
148
+	function count_origination($test = '') {
149 149
 	 $tmp = "SELECT COUNT(*) as val1 FROM routes ".$test;
150
-        return $this->db_get_item($tmp, 'val1');
151
-    }
150
+		return $this->db_get_item($tmp, 'val1');
151
+	}
152 152
 
153 153
 } 
154 154
 ?>
Please login to merge, or discard this patch.
web_interface/astpp/application/models/system_model.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
 			$amount_operator = $taxes_search['amount_operator'];
126 126
 
127
-			if (!empty($taxes_search['amount'])) {
127
+			if ( ! empty($taxes_search['amount'])) {
128 128
 				switch ($amount_operator) {
129 129
 					case "1":
130 130
 						$this->db->where('taxes_amount ', $taxes_search['amount']);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
 			$rate_operator = $taxes_search['rate_operator'];
151 151
 
152
-			if (!empty($taxes_search['rate'])) {
152
+			if ( ! empty($taxes_search['rate'])) {
153 153
 				switch ($rate_operator) {
154 154
 					case "1":
155 155
 						$this->db->where('taxes_rate ', $taxes_search['rate']);
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 			}
174 174
 
175 175
 			$description_operator = $taxes_search['description_operator'];
176
-			if (!empty($taxes_search['description'])) {
176
+			if ( ! empty($taxes_search['description'])) {
177 177
 				switch ($description_operator) {
178 178
 					case "1":
179 179
 						$this->db->like('taxes_description', $taxes_search['description']);
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
 			$amount_operator = $taxes_search['amount_operator'];
204 204
 
205
-			if (!empty($taxes_search['amount'])) {
205
+			if ( ! empty($taxes_search['amount'])) {
206 206
 				switch ($amount_operator) {
207 207
 					case "1":
208 208
 						$this->db->where('taxes_amount =', $taxes_search['amount']);
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
 			$rate_operator = $taxes_search['rate_operator'];
229 229
 
230
-			if (!empty($taxes_search['rate'])) {
230
+			if ( ! empty($taxes_search['rate'])) {
231 231
 				switch ($rate_operator) {
232 232
 					case "1":
233 233
 						$this->db->where('taxes_rate == ', $taxes_search['rate']);
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 			}
252 252
 
253 253
 			$description_operator = $taxes_search['description_operator'];
254
-			if (!empty($taxes_search['description'])) {
254
+			if ( ! empty($taxes_search['description'])) {
255 255
 				switch ($description_operator) {
256 256
 					case "1":
257 257
 						$this->db->like('taxes_description', $taxes_search['description']);
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
 			$template_name_operator = $templatesearch['template_name_operator'];
300 300
 
301 301
 
302
-			if (!empty($templatesearch['template_name'])) {
302
+			if ( ! empty($templatesearch['template_name'])) {
303 303
 				switch ($template_name_operator) {
304 304
 					case "1":
305 305
 						$this->db->like('name', $templatesearch['template_name']);
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 			}
318 318
 
319 319
 			$template_subject = $templatesearch['subject_operator'];
320
-			if (!empty($templatesearch['subject'])) {
320
+			if ( ! empty($templatesearch['subject'])) {
321 321
 				switch ($template_subject) {
322 322
 					case "1":
323 323
 						$this->db->like('subject', $templatesearch['subject']);
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 				}
335 335
 			}
336 336
 			$template_op = $templatesearch['template_operator'];
337
-			if (!empty($templatesearch['template_desc'])) {
337
+			if ( ! empty($templatesearch['template_desc'])) {
338 338
 
339 339
 				switch ($template_op) {
340 340
 					case "1":
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 			}
354 354
 
355 355
 
356
-			if (!empty($templatesearch['accountid'])) {
356
+			if ( ! empty($templatesearch['accountid'])) {
357 357
 				$this->db->like('accountid', $templatesearch['accountid']);
358 358
 			}
359 359
 		}
@@ -395,19 +395,19 @@  discard block
 block discarded – undo
395 395
 		if ($this->session->userdata('advance_search') == 1) {
396 396
 			$configuration_search = $this->session->userdata('configuration_search');
397 397
 
398
-			if (!empty($configuration_search['reseller'])) {
398
+			if ( ! empty($configuration_search['reseller'])) {
399 399
 				$this->db->where('reseller ', $configuration_search['reseller']);
400 400
 			}
401
-			if (!empty($configuration_search['brand'])) {
401
+			if ( ! empty($configuration_search['brand'])) {
402 402
 				$this->db->where('brand', $configuration_search['brand']);
403 403
 			}
404
-			if (!empty($configuration_search['group_title'])) {
404
+			if ( ! empty($configuration_search['group_title'])) {
405 405
 				$this->db->where('group_title', $configuration_search['group_title']);
406 406
 			}
407 407
 
408 408
 			$name_operator = $configuration_search['name_operator'];
409 409
 
410
-			if (!empty($configuration_search['name'])) {
410
+			if ( ! empty($configuration_search['name'])) {
411 411
 				switch ($name_operator) {
412 412
 					case "1":
413 413
 						$this->db->like('name', $configuration_search['name']);
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
 
427 427
 			$value_operator = $configuration_search['value_operator'];
428 428
 
429
-			if (!empty($configuration_search['value'])) {
429
+			if ( ! empty($configuration_search['value'])) {
430 430
 				switch ($value_operator) {
431 431
 					case "1":
432 432
 						$this->db->like('value', $configuration_search['value']);
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 
446 446
 			$comment_operator = $configuration_search['comment_operator'];
447 447
 
448
-			if (!empty($configuration_search['comment'])) {
448
+			if ( ! empty($configuration_search['comment'])) {
449 449
 				switch ($comment_operator) {
450 450
 					case "1":
451 451
 						$this->db->like('comment', $configuration_search['comment']);
Please login to merge, or discard this patch.