Passed
Branch v3.5 (f0ef26)
by Samir
36:09
created
astpp/application/modules/summary/views/view_providersummary_report.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -38,18 +38,18 @@  discard block
 block discarded – undo
38 38
                                 <legend><b>Search</b></legend>
39 39
                                 <div class="col-md-4 no-padding">
40 40
                                     <label class="search_label col-md-12 no-padding">From Date</label>
41
-                                    <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][0]) ? $session_info['callstart'][0] : date("Y-m-d") . " 00:00:00"; ?>" id="provider_from_date" size="20" class="col-md-5 form-control text field "  />
41
+                                    <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][0]) ? $session_info['callstart'][0] : date("Y-m-d")." 00:00:00"; ?>" id="provider_from_date" size="20" class="col-md-5 form-control text field "  />
42 42
                                 </div>
43 43
                                 <div class="col-md-4 no-padding">
44 44
                                     <label class="search_label col-md-12 no-padding">To Date</label>
45
-                                    <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][1]) ? $session_info['callstart'][1] : date("Y-m-d") . " 23:59:59"; ?>" id="provider_to_date" size="20" class="col-md-5 form-control text field "  />
45
+                                    <input type="text" name="callstart[]" value="<?php echo isset($session_info['callstart'][1]) ? $session_info['callstart'][1] : date("Y-m-d")." 23:59:59"; ?>" id="provider_to_date" size="20" class="col-md-5 form-control text field "  />
46 46
                                 </div>
47 47
                                 <div class="col-md-4 no-padding">
48 48
                                     <label class="search_label col-md-12 no-padding">Account</label>
49 49
 
50 50
                                     <select name="provider_id" class='col-md-5 form-control selectpicker' data-live-search='true'>
51 51
                                         <option value=''>--Select--</option>
52
-                                        <?php if (!empty($accountlist)) {
52
+                                        <?php if ( ! empty($accountlist)) {
53 53
 											foreach ($accountlist as $key => $value) {
54 54
 												?>
55 55
                                                 <optgroup label="<?php echo $key ?>">
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                                     <select name="trunk_id" class='col-md-5 form-control selectpicker' data-live-search='true'>
75 75
                                         <option value=''>--Select--</option>
76 76
                                         <?php
77
-										if (!empty($trunklist)) {
77
+										if ( ! empty($trunklist)) {
78 78
 											foreach ($trunklist as $key => $value) {
79 79
 												$selected = null;
80 80
 												if (isset($session_info['trunk_id']) && $session_info['trunk_id'] > 0 && $key == $session_info['trunk_id']) {
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
                                 </div>
89 89
                                 <div class="col-md-4 no-padding">
90 90
                                     <label class="search_label col-md-12 no-padding">Code </label>
91
-                                    <input type="text" name="pattern[pattern]" value="<?php echo (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && !empty($session_info['pattern']['pattern'])) ? $session_info['pattern']['pattern'] : ''; ?>" size="20" maxlength="15" class="col-md-5 form-control text field "/>
91
+                                    <input type="text" name="pattern[pattern]" value="<?php echo (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && ! empty($session_info['pattern']['pattern'])) ? $session_info['pattern']['pattern'] : ''; ?>" size="20" maxlength="15" class="col-md-5 form-control text field "/>
92 92
                                     <select name="pattern[pattern-string]" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'>
93 93
                                         <?php
94
-										if (!empty($search_string_type)) {
94
+										if ( ! empty($search_string_type)) {
95 95
 											foreach ($search_string_type as $key => $value) {
96 96
 												$selected = null;
97
-												if (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && !empty($session_info['pattern']['pattern']) && $session_info['pattern']['pattern-string'] == $key) {
97
+												if (isset($session_info['pattern']) && isset($session_info['pattern']['pattern']) && ! empty($session_info['pattern']['pattern']) && $session_info['pattern']['pattern-string'] == $key) {
98 98
 													$selected = "selected";
99 99
 												}
100 100
 												?>
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
                                 </div>
107 107
                                 <div class="col-md-4 no-padding">
108 108
                                     <label class="search_label col-md-12 no-padding">Destination </label>
109
-                                    <input type="text" name="notes[notes]" value="<?php echo (isset($session_info['notes']) && isset($session_info['notes']['notes']) && !empty($session_info['notes']['notes'])) ? $session_info['notes']['notes'] : ''; ?>" size="20" class="col-md-5 form-control text field "  />
109
+                                    <input type="text" name="notes[notes]" value="<?php echo (isset($session_info['notes']) && isset($session_info['notes']['notes']) && ! empty($session_info['notes']['notes'])) ? $session_info['notes']['notes'] : ''; ?>" size="20" class="col-md-5 form-control text field "  />
110 110
                                     <select name="notes[notes-string]" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'>
111 111
                                     <?php
112
-									   if (!empty($search_string_type)) {
112
+									   if ( ! empty($search_string_type)) {
113 113
 										foreach ($search_string_type as $key => $value) {
114 114
 											$selected = null;
115
-											if (isset($session_info['notes']) && isset($session_info['notes']['notes']) && !empty($session_info['notes']['notes']) && $session_info['notes']['notes-string'] == $key) {
115
+											if (isset($session_info['notes']) && isset($session_info['notes']['notes']) && ! empty($session_info['notes']['notes']) && $session_info['notes']['notes-string'] == $key) {
116 116
 												$selected = "selected";
117 117
 											}
118 118
 									?>
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
                                     <label class="search_label col-md-12 no-padding">Group By #time</label>
138 138
                                     <select name="time" class='col-md-5 form-control selectpicker' style='margin-left:5px;'data-live-search='true'>
139 139
                                         <?php
140
-										if (!empty($groupby_time)) {
140
+										if ( ! empty($groupby_time)) {
141 141
 											foreach ($groupby_time as $key => $value) {
142 142
 												$selected = null;
143
-												if (isset($session_info['time']) && !empty($session_info['time']) && $session_info['time'] == $key) {
143
+												if (isset($session_info['time']) && ! empty($session_info['time']) && $session_info['time'] == $key) {
144 144
 													$selected = "selected";
145 145
 												}
146 146
 												?>
@@ -154,10 +154,10 @@  discard block
 block discarded – undo
154 154
                                     <label class="search_label col-md-12 no-padding">Group By #1</label>
155 155
                                     <select name="groupby_1" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'>
156 156
                                         <?php
157
-										if (!empty($groupby_field)) {
157
+										if ( ! empty($groupby_field)) {
158 158
 											foreach ($groupby_field as $key => $value) {
159 159
 												$selected = null;
160
-												if (isset($session_info['groupby_1']) && !empty($session_info['groupby_1']) && $session_info['groupby_1'] == $key) {
160
+												if (isset($session_info['groupby_1']) && ! empty($session_info['groupby_1']) && $session_info['groupby_1'] == $key) {
161 161
 													$selected = "selected";
162 162
 												}
163 163
 												?>
@@ -171,10 +171,10 @@  discard block
 block discarded – undo
171 171
                                     <label class="search_label col-md-12 no-padding">Group By #2</label>
172 172
                                     <select name="groupby_2" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'>
173 173
                                         <?php
174
-										if (!empty($groupby_field)) {
174
+										if ( ! empty($groupby_field)) {
175 175
 											foreach ($groupby_field as $key => $value) {
176 176
 												$selected = null;
177
-												if (isset($session_info['groupby_2']) && !empty($session_info['groupby_2']) && $session_info['groupby_2'] == $key) {
177
+												if (isset($session_info['groupby_2']) && ! empty($session_info['groupby_2']) && $session_info['groupby_2'] == $key) {
178 178
 													$selected = "selected";
179 179
 												}
180 180
 												?>
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
                                     <label class="search_label col-md-12 no-padding">Group By #3</label>
189 189
                                     <select name="groupby_3" class='col-md-5 form-control selectpicker' style='margin-left:5px;' data-live-search='true'>
190 190
                                         <?php
191
-										if (!empty($groupby_field)) {
191
+										if ( ! empty($groupby_field)) {
192 192
 											foreach ($groupby_field as $key => $value) {
193 193
 												$selected = null;
194
-												if (isset($session_info['groupby_3']) && !empty($session_info['groupby_3']) && $session_info['groupby_3'] == $key) {
194
+												if (isset($session_info['groupby_3']) && ! empty($session_info['groupby_3']) && $session_info['groupby_3'] == $key) {
195 195
 													$selected = "selected";
196 196
 												}
197 197
 												?>
@@ -210,10 +210,10 @@  discard block
 block discarded – undo
210 210
                                     <label class="search_label col-md-6" style="font-size:17px;text-align:right;">Display records in </label>
211 211
                                     <select name="search_in" class='col-md-5 form-control selectpicker' style='background: #ddd; width: 23% !important;' data-live-search='true'>
212 212
 <?php
213
-if (!empty($search_report)) {
213
+if ( ! empty($search_report)) {
214 214
 	foreach ($search_report as $key => $value) {
215 215
 		$selected = null;
216
-		if (isset($session_info['search_in']) && isset($session_info['search_in']) && !empty($session_info['search_in']) && $session_info['search_in'] == $key) {
216
+		if (isset($session_info['search_in']) && isset($session_info['search_in']) && ! empty($session_info['search_in']) && $session_info['search_in'] == $key) {
217 217
 			//echo $key;exit;
218 218
 			$selected = "selected";
219 219
 		}
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/did/views/view_import_did.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@  discard block
 block discarded – undo
15 15
               <div class="col-md-12">
16 16
             	<div class="w-box">
17 17
             	 <span  style="margin-left:10px; text-align: center;background-color: none;color:#DD191D;">
18
-                    <? if(isset($error) && !empty($error)) {
18
+                    <? if (isset($error) && ! empty($error)) {
19 19
 						echo $error;
20 20
 					}?>
21 21
                  </span>
22 22
                    <h3 class="padding-t-10 padding-l-16">File must be in the following format(.csv):</h3>
23
-            <p><?= $fields;?></p>
23
+            <p><?= $fields; ?></p>
24 24
                  </div>
25 25
                </div>
26 26
                <div class="col-md-12  no-padding">
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                            <div class="col-md-12 no-padding">
31 31
                                <label class="col-md-3">Provider:</label>
32 32
                                <div>
33
-                               <? $provider_id = form_dropdown('provider_id', $this->db_model->build_concat_select_dropdown("id,first_name,number", " accounts", "where_arr", array("type" => "3","status"=>"0","deleted" => "0")), '');
33
+                               <? $provider_id = form_dropdown('provider_id', $this->db_model->build_concat_select_dropdown("id,first_name,number", " accounts", "where_arr", array("type" => "3", "status"=>"0", "deleted" => "0")), '');
34 34
 							echo $provider_id;
35 35
 							  ?> </div>
36 36
                            </div>
@@ -84,24 +84,24 @@  discard block
 block discarded – undo
84 84
 <?php }?>    
85 85
         
86 86
 <?php
87
-	if(isset($csv_tmp_data) && !empty($csv_tmp_data)){ ?>
87
+	if (isset($csv_tmp_data) && ! empty($csv_tmp_data)) { ?>
88 88
  <section class="slice color-three">
89 89
 	<div class="w-section inverse no-padding">
90 90
            <div class="container">
91 91
 	<div class="row">
92 92
              
93 93
         <div class="col-md-12 margin-t-10">        
94
-            <form id="import_form" name="import_form" action="<?=base_url()?>did/did_import_file/<?= $provider_id?>/<?=$check_header;?>/" method="POST">
94
+            <form id="import_form" name="import_form" action="<?=base_url()?>did/did_import_file/<?= $provider_id?>/<?=$check_header; ?>/" method="POST">
95 95
             <table width="100%" border="1"  class="details_table table">
96
-                <?php  $cnt =0;
97
-					foreach($csv_tmp_data as $csv_key => $csv_value){
98
-						if($csv_key <  15){
96
+                <?php  $cnt = 0;
97
+					foreach ($csv_tmp_data as $csv_key => $csv_value) {
98
+						if ($csv_key < 15) {
99 99
 							echo "<tr>";
100
-							foreach($csv_value as $field_name => $field_val){
101
-								if($csv_key == 0){
100
+							foreach ($csv_value as $field_name => $field_val) {
101
+								if ($csv_key == 0) {
102 102
 					$cnt++;
103 103
 									echo "<th>".ucfirst($field_name)."</th>";
104
-								}else{
104
+								} else {
105 105
 									echo "<td class='portlet-content'>".$field_val."</td>";   
106 106
 								}
107 107
 							}
Please login to merge, or discard this patch.
astpp/application/modules/did/views/view_did_manage_reseller_add.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@
 block discarded – undo
46 46
         	      <li class="col-md-12">
47 47
                         <label class="col-md-3 no-padding">Call Type</label>
48 48
                   		  <select name="call_type" class="col-md-5 form-control selectpicker" data-live-search='true'>
49
-                  		  <?php $calltype=$this->common->set_call_type();
50
-				  			 foreach($calltype as $key=>$value){
51
-				  			   $selected=$reseller_didinfo['call_type']==$key ? "selected='selected'" : '';
49
+                  		  <?php $calltype = $this->common->set_call_type();
50
+				  			 foreach ($calltype as $key=>$value) {
51
+				  			   $selected = $reseller_didinfo['call_type'] == $key ? "selected='selected'" : '';
52 52
 				  			   echo "<option value='$key'$selected>$value</option>";
53 53
 				  			 }
54 54
 				  			 ?>
Please login to merge, or discard this patch.
web_interface/astpp/application/modules/email/views/view_email_add_edit.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
             </div>
30 30
             <?php echo $form; ?>
31 31
         </div>    
32
-        <?php if(isset($maildata) && $maildata != ''){
32
+        <?php if (isset($maildata) && $maildata != '') {
33 33
 		  echo "<div class='col-md-12 no-padding'>Attachments :</div>";
34
-		  $imgArr = explode(",",$maildata);
35
-		  foreach($imgArr as $key => $imgname){
34
+		  $imgArr = explode(",", $maildata);
35
+		  foreach ($imgArr as $key => $imgname) {
36 36
 			$imgpath = base_url()."email/email_history_list_attachment/".$imgname;
37 37
 			echo "<div class='col-md-4 no-padding'>
38 38
                   <a href='".$imgpath."'>".$imgname."</a>
Please login to merge, or discard this patch.
astpp/application/modules/freeswitch/views/view_fs_freeswitch_execute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
 		<div class="col-md-2">
40 40
 		  <select class="form-control" name="host_id" id="host_id">
41 41
   		      <?php
42
-				foreach($fs_data as $name) { ?>
43
-     			 <option value="<?= $name['id'] ?>"<?php if(isset($host_id) && ($name['id'] == $host_id))echo 'selected';?>><?= $name['freeswitch_host'] ?></option>
42
+				foreach ($fs_data as $name) { ?>
43
+     			 <option value="<?= $name['id'] ?>"<?php if (isset($host_id) && ($name['id'] == $host_id))echo 'selected'; ?>><?= $name['freeswitch_host'] ?></option>
44 44
   			  <?php
45 45
 				  } ?>
46 46
 		   </select>
Please login to merge, or discard this patch.
astpp/application/modules/freeswitch/views/view_fssipprofile_edit.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -191,11 +191,11 @@
 block discarded – undo
191 191
 			          
192 192
 			</div>
193 193
 			<?
194
-			  if($params_name!='')
194
+			  if ($params_name != '')
195 195
 			  {
196
-				$type="edit_setting";
197
-			  }else{
198
-				$type="add_setting";
196
+				$type = "edit_setting";
197
+			  } else {
198
+				$type = "add_setting";
199 199
 			  }
200 200
 			?>
201 201
 			<input type='hidden' name='type_settings' value='<?=$type?>' />
Please login to merge, or discard this patch.
astpp/application/modules/accounts/views/view_customer_speed_dial.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/accounts/views/view_bulk_account_creation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@
 block discarded – undo
57 57
                     <div style="color:red;margin-left: 60px;">
58 58
                         <?php
59 59
 						if (isset($validation_errors)) {
60
-						   $validation_array=json_decode($validation_errors);
61
-						   if(is_object($validation_array)){
60
+						   $validation_array = json_decode($validation_errors);
61
+						   if (is_object($validation_array)) {
62 62
 						   $validation_array = get_object_vars($validation_array);
63
-						   foreach($validation_array as $key=>$value)
63
+						   foreach ($validation_array as $key=>$value)
64 64
 					  echo $value."<br/>";
65 65
 						   }
66 66
 						   else
Please login to merge, or discard this patch.
astpp/application/modules/accounts/views/view_reseller_invoices_config.php 1 patch
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.