@@ -60,11 +60,12 @@ |
||
| 60 | 60 | $validation_array=json_decode($validation_errors); |
| 61 | 61 | if(is_object($validation_array)){ |
| 62 | 62 | $validation_array = get_object_vars($validation_array); |
| 63 | - foreach($validation_array as $key=>$value) |
|
| 64 | - echo $value."<br/>"; |
|
| 63 | + foreach($validation_array as $key=>$value) { |
|
| 64 | + echo $value."<br/>"; |
|
| 65 | + } |
|
| 66 | + } else { |
|
| 67 | + echo $validation_errors; |
|
| 65 | 68 | } |
| 66 | - else |
|
| 67 | - echo $validation_errors; |
|
| 68 | 69 | |
| 69 | 70 | } |
| 70 | 71 | ?> |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | foreach($csv_value as $field_name => $field_val){ |
| 105 | 105 | if($csv_key == 0){ |
| 106 | 106 | echo "<th>".ucfirst($field_name)."</th>"; |
| 107 | - }else{ |
|
| 107 | + } else{ |
|
| 108 | 108 | echo "<td class='portlet-content'>".$field_val."</td>"; |
| 109 | 109 | } |
| 110 | 110 | } |
@@ -298,7 +298,7 @@ |
||
| 298 | 298 | </td> |
| 299 | 299 | </tr> |
| 300 | 300 | </table> |
| 301 | -<?php }elseif ($logintype == 1) {?> |
|
| 301 | +<?php } elseif ($logintype == 1) {?> |
|
| 302 | 302 | <table class="invoice_table1 pull-right"> |
| 303 | 303 | <tr style="border-bottom:2px solid #dfdfe1; color:#474747;"><th colspan="2">Payment Amount :</th></tr> |
| 304 | 304 | <tr> |
@@ -1025,18 +1025,15 @@ |
||
| 1025 | 1025 | { |
| 1026 | 1026 | include($path.'config/'.ENVIRONMENT.'/'.strtolower($class).'.php'); |
| 1027 | 1027 | break; |
| 1028 | - } |
|
| 1029 | - elseif (defined('ENVIRONMENT') AND file_exists($path.'config/'.ENVIRONMENT.'/'.ucfirst(strtolower($class)).'.php')) |
|
| 1028 | + } elseif (defined('ENVIRONMENT') AND file_exists($path.'config/'.ENVIRONMENT.'/'.ucfirst(strtolower($class)).'.php')) |
|
| 1030 | 1029 | { |
| 1031 | 1030 | include($path.'config/'.ENVIRONMENT.'/'.ucfirst(strtolower($class)).'.php'); |
| 1032 | 1031 | break; |
| 1033 | - } |
|
| 1034 | - elseif (file_exists($path.'config/'.strtolower($class).'.php')) |
|
| 1032 | + } elseif (file_exists($path.'config/'.strtolower($class).'.php')) |
|
| 1035 | 1033 | { |
| 1036 | 1034 | include($path.'config/'.strtolower($class).'.php'); |
| 1037 | 1035 | break; |
| 1038 | - } |
|
| 1039 | - elseif (file_exists($path.'config/'.ucfirst(strtolower($class)).'.php')) |
|
| 1036 | + } elseif (file_exists($path.'config/'.ucfirst(strtolower($class)).'.php')) |
|
| 1040 | 1037 | { |
| 1041 | 1038 | include($path.'config/'.ucfirst(strtolower($class)).'.php'); |
| 1042 | 1039 | break; |
@@ -99,8 +99,7 @@ |
||
| 99 | 99 | if (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/mimes.php')) |
| 100 | 100 | { |
| 101 | 101 | include APPPATH.'config/'.ENVIRONMENT.'/mimes.php'; |
| 102 | - } |
|
| 103 | - else |
|
| 102 | + } else |
|
| 104 | 103 | { |
| 105 | 104 | include APPPATH.'config/mimes.php'; |
| 106 | 105 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | $pos = strpos($str, "_json"); |
| 165 | 165 | if($pos > 0 && !isset($_SERVER['HTTP_X_REQUESTED_WITH'])){ |
| 166 | 166 | $this->uri_string = str_replace('_json', '', trim($str, '/')); |
| 167 | - }else{ |
|
| 167 | + } else{ |
|
| 168 | 168 | // If the URI contains only a slash we'll kill it |
| 169 | 169 | $this->uri_string = ($str == '/') ? '' : $str; |
| 170 | 170 | } |
@@ -562,8 +562,7 @@ discard block |
||
| 562 | 562 | if ($where == 'trailing') |
| 563 | 563 | { |
| 564 | 564 | $leading = ''; |
| 565 | - } |
|
| 566 | - elseif ($where == 'leading') |
|
| 565 | + } elseif ($where == 'leading') |
|
| 567 | 566 | { |
| 568 | 567 | $trailing = ''; |
| 569 | 568 | } |
@@ -85,8 +85,7 @@ |
||
| 85 | 85 | if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/hooks.php')) |
| 86 | 86 | { |
| 87 | 87 | include(APPPATH.'config/'.ENVIRONMENT.'/hooks.php'); |
| 88 | - } |
|
| 89 | - elseif (is_file(APPPATH.'config/hooks.php')) |
|
| 88 | + } elseif (is_file(APPPATH.'config/hooks.php')) |
|
| 90 | 89 | { |
| 91 | 90 | include(APPPATH.'config/hooks.php'); |
| 92 | 91 | } |
@@ -307,14 +307,12 @@ discard block |
||
| 307 | 307 | { |
| 308 | 308 | return new XML_RPC_Response(0, $this->xmlrpcerr['unknown_method'], $this->xmlrpcstr['unknown_method']); |
| 309 | 309 | } |
| 310 | - } |
|
| 311 | - else |
|
| 310 | + } else |
|
| 312 | 311 | { |
| 313 | 312 | if ($objectCall && ! is_callable(array($method_parts['0'], $method_parts['1']))) |
| 314 | 313 | { |
| 315 | 314 | return new XML_RPC_Response(0, $this->xmlrpcerr['unknown_method'], $this->xmlrpcstr['unknown_method']); |
| 316 | - } |
|
| 317 | - elseif ( ! $objectCall && ! is_callable($this->methods[$methName]['function'])) |
|
| 315 | + } elseif ( ! $objectCall && ! is_callable($this->methods[$methName]['function'])) |
|
| 318 | 316 | { |
| 319 | 317 | return new XML_RPC_Response(0, $this->xmlrpcerr['unknown_method'], $this->xmlrpcstr['unknown_method']); |
| 320 | 318 | } |
@@ -362,22 +360,19 @@ discard block |
||
| 362 | 360 | if ($method_parts[0] == "this" && $system_call == TRUE) |
| 363 | 361 | { |
| 364 | 362 | return call_user_func(array($this, $method_parts[1]), $m); |
| 365 | - } |
|
| 366 | - else |
|
| 363 | + } else |
|
| 367 | 364 | { |
| 368 | 365 | if ($this->object === FALSE) |
| 369 | 366 | { |
| 370 | 367 | $CI = & get_instance(); |
| 371 | 368 | return $CI->$method_parts['1']($m); |
| 372 | - } |
|
| 373 | - else |
|
| 369 | + } else |
|
| 374 | 370 | { |
| 375 | 371 | return $this->object->$method_parts['1']($m); |
| 376 | 372 | //return call_user_func(array(&$method_parts['0'],$method_parts['1']), $m); |
| 377 | 373 | } |
| 378 | 374 | } |
| 379 | - } |
|
| 380 | - else |
|
| 375 | + } else |
|
| 381 | 376 | { |
| 382 | 377 | return call_user_func($this->methods[$methName]['function'], $m); |
| 383 | 378 | } |
@@ -3,6 +3,7 @@ |
||
| 3 | 3 | $name = 'Courier'; |
| 4 | 4 | $up = -100; |
| 5 | 5 | $ut = 50; |
| 6 | -for ($i = 0; $i <= 255; $i++) |
|
| 7 | - $cw[chr($i)] = 600; |
|
| 6 | +for ($i = 0; $i <= 255; $i++) { |
|
| 7 | + $cw[chr($i)] = 600; |
|
| 8 | +} |
|
| 8 | 9 | ?> |