@@ -28,6 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Increment the time by interval and return value in YYYY-MM-DD HH:MM format. |
31 | + * @param integer $basetiming |
|
31 | 32 | */ |
32 | 33 | static function nexttime($basetiming, $interval) |
33 | 34 | { |
@@ -146,6 +147,7 @@ discard block |
||
146 | 147 | |
147 | 148 | /** |
148 | 149 | * Repeat Activity instance till given limit. |
150 | + * @param RecurringType|null $recurObj |
|
149 | 151 | */ |
150 | 152 | static function repeat($focus, $recurObj) |
151 | 153 | { |
@@ -175,8 +175,9 @@ |
||
175 | 175 | $endDate = date('Y-m-d', $endDateTime); |
176 | 176 | |
177 | 177 | // Reset the new_focus and prepare for reuse |
178 | - if (isset($new_focus->id)) |
|
179 | - unset($new_focus->id); |
|
178 | + if (isset($new_focus->id)) { |
|
179 | + unset($new_focus->id); |
|
180 | + } |
|
180 | 181 | $new_focus->column_fields = array(); |
181 | 182 | |
182 | 183 | foreach ($base_focus->column_fields as $key => $value) { |
@@ -103,6 +103,7 @@ discard block |
||
103 | 103 | /** Function to get the user Email id based on column name and column value |
104 | 104 | * $name -- column name of the vtiger_users vtiger_table |
105 | 105 | * $val -- column value |
106 | + * @param string $name |
|
106 | 107 | */ |
107 | 108 | function getUserEmailId($name, $val) |
108 | 109 | { |
@@ -162,6 +163,8 @@ discard block |
||
162 | 163 | * $attachment -- whether we want to attach the currently selected file or all vtiger_files. |
163 | 164 | [values = current,all] - optional |
164 | 165 | * $emailid -- id of the email object which will be used to get the vtiger_attachments - optional |
166 | + * @param PHPMailer $mail |
|
167 | + * @param string $to_email |
|
165 | 168 | */ |
166 | 169 | function setMailerProperties($mail, $subject, $contents, $fromEmail, $fromName, $to_email, $attachment = '', $emailid = '', $module = '', $logo = '') |
167 | 170 | { |
@@ -297,6 +300,7 @@ discard block |
||
297 | 300 | * $mail -- reference of the mail object |
298 | 301 | * $filename -- filename which is going to added with the mail |
299 | 302 | * $record -- id of the record - optional |
303 | + * @param string $record |
|
300 | 304 | */ |
301 | 305 | function addAttachment($mail, $filename, $record) |
302 | 306 | { |
@@ -313,6 +317,7 @@ discard block |
||
313 | 317 | /** Function to add all the vtiger_files as attachment with the mail object |
314 | 318 | * $mail -- reference of the mail object |
315 | 319 | * $record -- email id ie., record id which is used to get the all vtiger_attachments from database |
320 | + * @param string $record |
|
316 | 321 | */ |
317 | 322 | function addAllAttachments($mail, $record) |
318 | 323 | { |
@@ -347,6 +352,9 @@ discard block |
||
347 | 352 | * $mail -- reference of the mail object |
348 | 353 | * $cc_mod -- mode to set the address ie., cc or bcc |
349 | 354 | * $cc_val -- addresss with comma seperated to set as CC or BCC in the mail |
355 | + * @param PHPMailer $mail |
|
356 | + * @param string $cc_mod |
|
357 | + * @param string $cc_val |
|
350 | 358 | */ |
351 | 359 | function setCCAddress($mail, $cc_mod, $cc_val) |
352 | 360 | { |
@@ -375,6 +383,7 @@ discard block |
||
375 | 383 | |
376 | 384 | /** Function to send the mail which will be called after set all the mail object values |
377 | 385 | * $mail -- reference of the mail object |
386 | + * @param PHPMailer $mail |
|
378 | 387 | */ |
379 | 388 | function MailSend($mail) |
380 | 389 | { |
@@ -423,6 +432,7 @@ discard block |
||
423 | 432 | * $mail_status -- status of the mail which is sent or not |
424 | 433 | * $to -- the email address to whom we sent the mail and failes |
425 | 434 | * return -- Mail error occured during the mail sending process |
435 | + * @param PHPMailer $mail |
|
426 | 436 | */ |
427 | 437 | function getMailError($mail, $mail_status, $to) |
428 | 438 | { |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | $mail->Body = decode_html($contents); |
180 | 180 | $mail->AltBody = strip_tags(preg_replace(array("/<p>/i", "/<br>/i", "/<br \/>/i"), array("\n", "\n", "\n"), $contents)); |
181 | 181 | |
182 | - $mail->IsSMTP(); //set mailer to use SMTP |
|
182 | + $mail->IsSMTP(); //set mailer to use SMTP |
|
183 | 183 | |
184 | 184 | setMailServerProperties($mail); |
185 | 185 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | addAllAttachments($mail, $emailid); |
231 | 231 | } |
232 | 232 | |
233 | - $mail->IsHTML(true); // set email format to HTML |
|
233 | + $mail->IsHTML(true); // set email format to HTML |
|
234 | 234 | |
235 | 235 | return; |
236 | 236 | } |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | if ($smtp_auth) { |
279 | 279 | $mail->SMTPAuth = true; // turn on SMTP authentication |
280 | 280 | } |
281 | - $mail->Host = $server; // specify main and backup server |
|
281 | + $mail->Host = $server; // specify main and backup server |
|
282 | 282 | $mail->Username = $username; // SMTP username |
283 | 283 | $mail->Password = $password; // SMTP password |
284 | 284 | // To Support TLS |
@@ -525,8 +525,8 @@ discard block |
||
525 | 525 | |
526 | 526 | function isUserInitiated() |
527 | 527 | { |
528 | - return ( AppRequest::get('module') == 'Emails' && |
|
529 | - ( AppRequest::get('action') == 'mailsend' || AppRequest::get('action') == 'Save')); |
|
528 | + return (AppRequest::get('module') == 'Emails' && |
|
529 | + (AppRequest::get('action') == 'mailsend' || AppRequest::get('action') == 'Save')); |
|
530 | 530 | } |
531 | 531 | |
532 | 532 | /** |
@@ -245,27 +245,30 @@ discard block |
||
245 | 245 | $log->debug('Inside the function setMailServerProperties'); |
246 | 246 | |
247 | 247 | $res = $adb->pquery('select * from vtiger_systems where server_type=?', array('email')); |
248 | - if (AppRequest::has('server')) |
|
249 | - $server = AppRequest::get('server'); |
|
250 | - else |
|
251 | - $server = $adb->query_result_raw($res, 0, 'server'); |
|
252 | - if (AppRequest::has('server_username')) |
|
253 | - $username = AppRequest::get('server_username'); |
|
254 | - else |
|
255 | - $username = $adb->query_result_raw($res, 0, 'server_username'); |
|
256 | - |
|
257 | - if (AppRequest::has('server_password')) |
|
258 | - $password = AppRequest::get('server_password'); |
|
259 | - else |
|
260 | - $password = $adb->query_result_raw($res, 0, 'server_password'); |
|
248 | + if (AppRequest::has('server')) { |
|
249 | + $server = AppRequest::get('server'); |
|
250 | + } else { |
|
251 | + $server = $adb->query_result_raw($res, 0, 'server'); |
|
252 | + } |
|
253 | + if (AppRequest::has('server_username')) { |
|
254 | + $username = AppRequest::get('server_username'); |
|
255 | + } else { |
|
256 | + $username = $adb->query_result_raw($res, 0, 'server_username'); |
|
257 | + } |
|
258 | + |
|
259 | + if (AppRequest::has('server_password')) { |
|
260 | + $password = AppRequest::get('server_password'); |
|
261 | + } else { |
|
262 | + $password = $adb->query_result_raw($res, 0, 'server_password'); |
|
263 | + } |
|
261 | 264 | |
262 | 265 | // Define default state |
263 | 266 | $smtp_auth = false; |
264 | 267 | |
265 | 268 | // Prasad: First time read smtp_auth from the request |
266 | - if (AppRequest::get('smtp_auth') == 'on') |
|
267 | - $smtp_auth = true; |
|
268 | - else if (AppRequest::get('module') == 'Settings' && (!AppRequest::has('smtp_auth'))) { |
|
269 | + if (AppRequest::get('smtp_auth') == 'on') { |
|
270 | + $smtp_auth = true; |
|
271 | + } else if (AppRequest::get('module') == 'Settings' && (!AppRequest::has('smtp_auth'))) { |
|
269 | 272 | //added to avoid issue while editing the values in the outgoing mail server. |
270 | 273 | $smtp_auth = false; |
271 | 274 | } else { |
@@ -353,10 +356,12 @@ discard block |
||
353 | 356 | $log = LoggerManager::getInstance(); |
354 | 357 | $log->debug('Inside the functin setCCAddress'); |
355 | 358 | |
356 | - if ($cc_mod == 'cc') |
|
357 | - $method = 'AddCC'; |
|
358 | - if ($cc_mod == 'bcc') |
|
359 | - $method = 'AddBCC'; |
|
359 | + if ($cc_mod == 'cc') { |
|
360 | + $method = 'AddCC'; |
|
361 | + } |
|
362 | + if ($cc_mod == 'bcc') { |
|
363 | + $method = 'AddBCC'; |
|
364 | + } |
|
360 | 365 | if ($cc_val != '') { |
361 | 366 | $ccmail = explode(",", trim($cc_val, ",")); |
362 | 367 | for ($i = 0; $i < count($ccmail); $i++) { |
@@ -367,8 +372,9 @@ discard block |
||
367 | 372 | $cc_name = $name_addr_pair[0]; |
368 | 373 | $addr = trim($name_addr_pair[1], ">"); |
369 | 374 | } |
370 | - if ($ccmail[$i] != '') |
|
371 | - $mail->$method($addr, $cc_name); |
|
375 | + if ($ccmail[$i] != '') { |
|
376 | + $mail->$method($addr, $cc_name); |
|
377 | + } |
|
372 | 378 | } |
373 | 379 | } |
374 | 380 | } |
@@ -541,8 +547,9 @@ discard block |
||
541 | 547 | $userGroups = new GetGroupUsers(); |
542 | 548 | $userGroups->getAllUsersInGroup($groupId); |
543 | 549 | |
544 | - if (count($userGroups->group_users) == 0) |
|
545 | - return []; |
|
550 | + if (count($userGroups->group_users) == 0) { |
|
551 | + return []; |
|
552 | + } |
|
546 | 553 | |
547 | 554 | $query = sprintf('SELECT |
548 | 555 | email1 |
@@ -27,7 +27,6 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Function returns Tickets grouped by Status |
30 | - * @param type $data |
|
31 | 30 | * @return <Array> |
32 | 31 | */ |
33 | 32 | public function getTicketsByStatus($owner) |
@@ -19,8 +19,9 @@ discard block |
||
19 | 19 | |
20 | 20 | $listSearchParams = []; |
21 | 21 | $conditions = array(array('ticketstatus', 'e', $value)); |
22 | - if (!empty($assignedto)) |
|
23 | - array_push($conditions, array('assigned_user_id', 'e', $assignedto)); |
|
22 | + if (!empty($assignedto)) { |
|
23 | + array_push($conditions, array('assigned_user_id', 'e', $assignedto)); |
|
24 | + } |
|
24 | 25 | $listSearchParams[] = $conditions; |
25 | 26 | return '&viewname=All&search_params=' . json_encode($listSearchParams); |
26 | 27 | } |
@@ -72,8 +73,9 @@ discard block |
||
72 | 73 | $priorities[$row['priority']] = $counter++; |
73 | 74 | $colors[$row['priority']] = $row['color']; |
74 | 75 | } |
75 | - if (!in_array($row['statusvalue'], $status)) |
|
76 | - $status[] = $row['statusvalue']; |
|
76 | + if (!in_array($row['statusvalue'], $status)) { |
|
77 | + $status[] = $row['statusvalue']; |
|
78 | + } |
|
77 | 79 | } |
78 | 80 | if (!empty($tickets)) { |
79 | 81 | $counter = 0; |
@@ -117,13 +119,15 @@ discard block |
||
117 | 119 | $data = $request->get('data'); |
118 | 120 | $createdTime = $request->get('createdtime'); |
119 | 121 | $widget = Vtiger_Widget_Model::getInstance($linkId, $currentUser->getId()); |
120 | - if (!$request->has('owner')) |
|
121 | - $owner = Settings_WidgetsManagement_Module_Model::getDefaultUserId($widget, $moduleName); |
|
122 | - else |
|
123 | - $owner = $request->get('owner'); |
|
122 | + if (!$request->has('owner')) { |
|
123 | + $owner = Settings_WidgetsManagement_Module_Model::getDefaultUserId($widget, $moduleName); |
|
124 | + } else { |
|
125 | + $owner = $request->get('owner'); |
|
126 | + } |
|
124 | 127 | $ownerForwarded = $owner; |
125 | - if ($owner == 'all') |
|
126 | - $owner = ''; |
|
128 | + if ($owner == 'all') { |
|
129 | + $owner = ''; |
|
130 | + } |
|
127 | 131 | |
128 | 132 | //Date conversion from user to database format |
129 | 133 | if (!empty($createdTime)) { |
@@ -27,6 +27,9 @@ discard block |
||
27 | 27 | $this->user = $user; |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @param Vtiger_Request $request |
|
32 | + */ |
|
30 | 33 | public static function import($request, $user) |
31 | 34 | { |
32 | 35 | $importController = new Import_Main_View($request, $user); |
@@ -100,6 +103,9 @@ discard block |
||
100 | 103 | } |
101 | 104 | } |
102 | 105 | |
106 | + /** |
|
107 | + * @param boolean $continueImport |
|
108 | + */ |
|
103 | 109 | public static function showCurrentStatus($importInfo, $importStatusCount, $continueImport) |
104 | 110 | { |
105 | 111 | $moduleName = $importInfo['module']; |
@@ -210,6 +216,9 @@ discard block |
||
210 | 216 | Import_Queue_Action::add($this->request, $this->user); |
211 | 217 | } |
212 | 218 | |
219 | + /** |
|
220 | + * @param Vtiger_Request $request |
|
221 | + */ |
|
213 | 222 | public static function deleteMap($request) |
214 | 223 | { |
215 | 224 | $moduleName = $request->getModule(); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Add widget to other module. |
62 | - * @param unknown_type $moduleNames |
|
62 | + * @param string[] $moduleNames |
|
63 | 63 | * @return unknown_type |
64 | 64 | */ |
65 | 65 | static function addWidgetTo($moduleNames, $widgetType = 'DETAILVIEWWIDGET', $widgetName = 'DetailViewBlockCommentWidget') |
@@ -64,11 +64,13 @@ discard block |
||
64 | 64 | */ |
65 | 65 | static function addWidgetTo($moduleNames, $widgetType = 'DETAILVIEWWIDGET', $widgetName = 'DetailViewBlockCommentWidget') |
66 | 66 | { |
67 | - if (empty($moduleNames)) |
|
68 | - return; |
|
67 | + if (empty($moduleNames)) { |
|
68 | + return; |
|
69 | + } |
|
69 | 70 | |
70 | - if (is_string($moduleNames)) |
|
71 | - $moduleNames = array($moduleNames); |
|
71 | + if (is_string($moduleNames)) { |
|
72 | + $moduleNames = array($moduleNames); |
|
73 | + } |
|
72 | 74 | |
73 | 75 | $commentWidgetModules = array(); |
74 | 76 | foreach ($moduleNames as $moduleName) { |
@@ -95,11 +97,13 @@ discard block |
||
95 | 97 | */ |
96 | 98 | static function removeWidgetFrom($moduleNames, $widgetType = 'DETAILVIEWWIDGET', $widgetName = 'DetailViewBlockCommentWidget') |
97 | 99 | { |
98 | - if (empty($moduleNames)) |
|
99 | - return; |
|
100 | + if (empty($moduleNames)) { |
|
101 | + return; |
|
102 | + } |
|
100 | 103 | |
101 | - if (is_string($moduleNames)) |
|
102 | - $moduleNames = array($moduleNames); |
|
104 | + if (is_string($moduleNames)) { |
|
105 | + $moduleNames = array($moduleNames); |
|
106 | + } |
|
103 | 107 | |
104 | 108 | $commentWidgetModules = array(); |
105 | 109 | foreach ($moduleNames as $moduleName) { |
@@ -149,6 +149,10 @@ discard block |
||
149 | 149 | return $hierarchy; |
150 | 150 | } |
151 | 151 | |
152 | + /** |
|
153 | + * @param integer $id |
|
154 | + * @param integer[] $encountered_accounts |
|
155 | + */ |
|
152 | 156 | public function __getParentEmployees($id, &$parent_accounts, &$encountered_accounts) |
153 | 157 | { |
154 | 158 | $adb = PearDatabase::getInstance(); |
@@ -200,6 +204,9 @@ discard block |
||
200 | 204 | return $parent_accounts; |
201 | 205 | } |
202 | 206 | |
207 | + /** |
|
208 | + * @param integer $id |
|
209 | + */ |
|
203 | 210 | public function __getChildEmployees($id, &$child_accounts, $depth) |
204 | 211 | { |
205 | 212 | $adb = PearDatabase::getInstance(); |
@@ -257,8 +257,9 @@ |
||
257 | 257 | $modcommentsModuleInstance = vtlib\Module::getInstance('ModComments'); |
258 | 258 | if ($modcommentsModuleInstance && file_exists('modules/ModComments/ModComments.php')) { |
259 | 259 | include_once 'modules/ModComments/ModComments.php'; |
260 | - if (class_exists('ModComments')) |
|
261 | - ModComments::addWidgetTo(array('OSSEmployees')); |
|
260 | + if (class_exists('ModComments')) { |
|
261 | + ModComments::addWidgetTo(array('OSSEmployees')); |
|
262 | + } |
|
262 | 263 | } |
263 | 264 | } else if ($event_type == 'module.disabled') { |
264 | 265 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Detect the MIME type based on extension in the filename. |
9 | - * @return MIME type text. |
|
9 | + * @return string type text. |
|
10 | 10 | */ |
11 | 11 | static function detect($filename) |
12 | 12 | { |
@@ -50,6 +50,9 @@ discard block |
||
50 | 50 | return $xml; |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param integer $level |
|
55 | + */ |
|
53 | 56 | protected function createXML($key, $value, $level) |
54 | 57 | { |
55 | 58 | $indent = ''; |
@@ -69,6 +72,9 @@ discard block |
||
69 | 72 | return $xml; |
70 | 73 | } |
71 | 74 | |
75 | + /** |
|
76 | + * @param string $line |
|
77 | + */ |
|
72 | 78 | protected function parseLine($line) |
73 | 79 | { |
74 | 80 | $tag = substr($line, 1, strpos($line, ':', 1) - 1); |
@@ -114,6 +120,9 @@ discard block |
||
114 | 120 | $this->_lastTag = $tag; |
115 | 121 | } |
116 | 122 | |
123 | + /** |
|
124 | + * @param string $value |
|
125 | + */ |
|
117 | 126 | protected function parseOperation($value) |
118 | 127 | { |
119 | 128 | $this->operations[] = array( |
@@ -124,6 +133,9 @@ discard block |
||
124 | 133 | ); |
125 | 134 | } |
126 | 135 | |
136 | + /** |
|
137 | + * @param string $value |
|
138 | + */ |
|
127 | 139 | protected function parseBalance($value) |
128 | 140 | { |
129 | 141 | return array( |
@@ -134,6 +146,9 @@ discard block |
||
134 | 146 | ); |
135 | 147 | } |
136 | 148 | |
149 | + /** |
|
150 | + * @param string $value |
|
151 | + */ |
|
137 | 152 | protected function parseTransaction($value) |
138 | 153 | { |
139 | 154 | $transaction = array( |
@@ -34,8 +34,9 @@ discard block |
||
34 | 34 | public function parse() |
35 | 35 | { |
36 | 36 | $tab = $this->prepareFile(); |
37 | - foreach ($tab as $line) |
|
38 | - $this->parseLine($line); |
|
37 | + foreach ($tab as $line) { |
|
38 | + $this->parseLine($line); |
|
39 | + } |
|
39 | 40 | } |
40 | 41 | |
41 | 42 | public function getXML() |
@@ -53,13 +54,15 @@ discard block |
||
53 | 54 | protected function createXML($key, $value, $level) |
54 | 55 | { |
55 | 56 | $indent = ''; |
56 | - for ($i = 0; $i <= $level; $i++) |
|
57 | - $indent .= "\t"; |
|
57 | + for ($i = 0; $i <= $level; $i++) { |
|
58 | + $indent .= "\t"; |
|
59 | + } |
|
58 | 60 | if (is_array($value)) { |
59 | 61 | $xml = "$indent<$key>\n"; |
60 | 62 | foreach ($value as $subKey => $subVal) { |
61 | - if (is_numeric($subKey)) |
|
62 | - $subKey = substr($key, 0, -1); |
|
63 | + if (is_numeric($subKey)) { |
|
64 | + $subKey = substr($key, 0, -1); |
|
65 | + } |
|
63 | 66 | $xml .= $this->createXML($subKey, $subVal, $level + 1); |
64 | 67 | } |
65 | 68 | $xml .= "$indent</$key>\n"; |
@@ -85,10 +88,11 @@ discard block |
||
85 | 88 | break; |
86 | 89 | case 'NS': |
87 | 90 | $code = substr($value, 0, 2); |
88 | - if ($code == '22') |
|
89 | - $this->ownerName = substr($value, 2); |
|
90 | - else if ($code == '23') |
|
91 | - $this->accountName = substr($value, 2); |
|
91 | + if ($code == '22') { |
|
92 | + $this->ownerName = substr($value, 2); |
|
93 | + } else if ($code == '23') { |
|
94 | + $this->accountName = substr($value, 2); |
|
95 | + } |
|
92 | 96 | break; |
93 | 97 | case '60F': |
94 | 98 | $this->openBalance = $this->parseBalance($value); |
@@ -103,10 +107,11 @@ discard block |
||
103 | 107 | self::parseOperation($value); |
104 | 108 | break; |
105 | 109 | case '86': |
106 | - if ($this->_lastTag == '61') |
|
107 | - $this->parseTransaction($value); |
|
108 | - else |
|
109 | - $this->info .= $value; |
|
110 | + if ($this->_lastTag == '61') { |
|
111 | + $this->parseTransaction($value); |
|
112 | + } else { |
|
113 | + $this->info .= $value; |
|
114 | + } |
|
110 | 115 | break; |
111 | 116 | default: |
112 | 117 | break; |
@@ -20,6 +20,9 @@ discard block |
||
20 | 20 | $this->parseLine($line); |
21 | 21 | } |
22 | 22 | |
23 | + /** |
|
24 | + * @param string $line |
|
25 | + */ |
|
23 | 26 | protected function parseLine($line) |
24 | 27 | { |
25 | 28 | $tag = substr($line, 1, strpos($line, ':', 1) - 1); |
@@ -65,6 +68,9 @@ discard block |
||
65 | 68 | $this->_lastTag = $tag; |
66 | 69 | } |
67 | 70 | |
71 | + /** |
|
72 | + * @param string $value |
|
73 | + */ |
|
68 | 74 | protected function parseOperation($value) |
69 | 75 | { |
70 | 76 | $this->operations[] = array( |
@@ -16,8 +16,9 @@ discard block |
||
16 | 16 | public function parse() |
17 | 17 | { |
18 | 18 | $tab = $this->prepareFile(); |
19 | - foreach ($tab as $line) |
|
20 | - $this->parseLine($line); |
|
19 | + foreach ($tab as $line) { |
|
20 | + $this->parseLine($line); |
|
21 | + } |
|
21 | 22 | } |
22 | 23 | |
23 | 24 | protected function parseLine($line) |
@@ -36,10 +37,11 @@ discard block |
||
36 | 37 | break; |
37 | 38 | case 'NS': |
38 | 39 | $code = substr($value, 0, 2); |
39 | - if ($code == '22') |
|
40 | - $this->ownerName = substr($value, 2); |
|
41 | - else if ($code == '23') |
|
42 | - $this->accountName = substr($value, 2); |
|
40 | + if ($code == '22') { |
|
41 | + $this->ownerName = substr($value, 2); |
|
42 | + } else if ($code == '23') { |
|
43 | + $this->accountName = substr($value, 2); |
|
44 | + } |
|
43 | 45 | break; |
44 | 46 | case '60F': |
45 | 47 | $this->openBalance = $this->parseBalance($value); |
@@ -54,10 +56,11 @@ discard block |
||
54 | 56 | self::parseOperation($value); |
55 | 57 | break; |
56 | 58 | case '86': |
57 | - if ($this->_lastTag == '61') |
|
58 | - $this->parseTransaction($value); |
|
59 | - else |
|
60 | - $this->info .= $value; |
|
59 | + if ($this->_lastTag == '61') { |
|
60 | + $this->parseTransaction($value); |
|
61 | + } else { |
|
62 | + $this->info .= $value; |
|
63 | + } |
|
61 | 64 | break; |
62 | 65 | default: |
63 | 66 | break; |