Passed
Pull Request — v3.0 (#189)
by
unknown
10:51
created
web_interface/astpp/application/modules/email/views/view_email_brod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
  <div class="container">
237 237
  <form method="post" action="<?= base_url()?>email/email_client_get/" enctype="multipart/form-data" name="myform" id="myform" onsubmit="return(regvalidate())">
238 238
      <span  style="margin-left:10px; text-align: center;background-color: none;color:#DD191D;">
239
-                    <? if(isset($error) && !empty($error)) {
239
+                    <? if (isset($error) && ! empty($error)) {
240 240
 						echo $error;
241 241
 					}?>
242 242
                  </span>
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/did/language/english/did_lang.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php if ( ! defined('BASEPATH')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 
3 5
 //DID list
4 6
 $lang['DID.MANAGE_DIDs'] = 'Manage DIDs';
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/did/language/spanish/did_lang.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php if ( ! defined('BASEPATH')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 
3 5
 //did list
4 6
 $lang['DID.MANAGE_DIDs'] = 'Gestionar DIDs';
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.
web_interface/astpp/application/modules/user/views/view_user_speeddial.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
                                             </label>
132 132
                                             </div>
133 133
                                                <div class="col-md-3">
134
-                                            <input class="col-md-2 form-control" name="speed_dial_<?php echo $i; ?>" id="speed_dial_<?php echo $i; ?>" size="16" type="text"  value="<?php if (isset($speeddial[$i]) && !empty($speeddial[$i])) {
134
+                                            <input class="col-md-2 form-control" name="speed_dial_<?php echo $i; ?>" id="speed_dial_<?php echo $i; ?>" size="16" type="text"  value="<?php if (isset($speeddial[$i]) && ! empty($speeddial[$i])) {
135 135
 		echo $speeddial[$i];
136 136
 	} ?>">
137 137
                                                </div>
Please login to merge, or discard this patch.
astpp/application/modules/user/views/view_user_invoices_config.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -206,13 +206,13 @@
 block discarded – undo
206 206
 				</div>
207 207
 		</div>	
208 208
 <?php
209
-	if($account_data['logo']  != ''){
210
-		 $logo=$account_data['file'];
211
-	}else{
212
-		 $logo=$account_data['logo'];
209
+	if ($account_data['logo'] != '') {
210
+		 $logo = $account_data['file'];
211
+	} else {
212
+		 $logo = $account_data['logo'];
213 213
 	}
214
-		  if($logo != ''){        
215
-			 $file_name= base_url()."upload/$logo";
214
+		  if ($logo != '') {        
215
+			 $file_name = base_url()."upload/$logo";
216 216
 ?>
217 217
 
218 218
 		<div class='col-md-12 no-padding'>
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
 <?php
209 209
 	if($account_data['logo']  != ''){
210 210
 		 $logo=$account_data['file'];
211
-	}else{
211
+	} else{
212 212
 		 $logo=$account_data['logo'];
213 213
 	}
214 214
 		  if($logo != ''){        
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/invoices/views/view_invoiceconf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         <div class="w-section inverse no-padding">
14 14
             <?php echo $form; ?>
15 15
             <?php
16
-			if(isset($validation_errors) && $validation_errors != ''){ ?>
16
+			if (isset($validation_errors) && $validation_errors != '') { ?>
17 17
                 <script>
18 18
                 var ERR_STR = '<?php echo $validation_errors; ?>';
19 19
                 print_error(ERR_STR);
Please login to merge, or discard this patch.
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/config/cron.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 */
10 10
 
11 11
 $astpp_config = parse_ini_file("/var/lib/astpp/astpp-config.conf");
12
-$config['SERVER_NAME'] 		= $astpp_config['base_url'];	// Your web site url
13
-$config['CRON_TIME_LIMIT']	= 0;								// 0 = no time limit
14
-$config['argv']			= array("LowBalance"=>"lowbalance/low_balance",
12
+$config['SERVER_NAME'] = $astpp_config['base_url']; // Your web site url
13
+$config['CRON_TIME_LIMIT'] = 0; // 0 = no time limit
14
+$config['argv'] = array("LowBalance"=>"lowbalance/low_balance",
15 15
 					"Lowcredit"=>"lowcreditlimit/low_creditlimit",
16 16
 					"UpdateBalance" => "updateBalance/GetUpdateBalance",
17 17
 						"CurrencyUpdate" => "currencyupdate/update_currency",
18 18
 					"GenerateInvoice" => "generateInvoice/getInvoiceData",
19 19
 					"FeedBack"=>"feedback/customer_feedback_result/TRUE",
20 20
 					"BroadcastEmail" => "broadcastemail/broadcast_email");
21
-$config['CRON_BETA_MODE']	= false;							// Beta Mode (useful for blocking submissions for testing)
21
+$config['CRON_BETA_MODE'] = false; // Beta Mode (useful for blocking submissions for testing)
22 22
 
23 23
 ?>
Please login to merge, or discard this patch.