@@ -55,56 +55,56 @@ |
||
55 | 55 | * |
56 | 56 | * @var array |
57 | 57 | */ |
58 | - public $rows = array(); |
|
58 | + public $rows = array(); |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Data for table heading |
62 | 62 | * |
63 | 63 | * @var array |
64 | 64 | */ |
65 | - public $heading = array(); |
|
65 | + public $heading = array(); |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Whether or not to automatically create the table header |
69 | 69 | * |
70 | 70 | * @var bool |
71 | 71 | */ |
72 | - public $auto_heading = TRUE; |
|
72 | + public $auto_heading = TRUE; |
|
73 | 73 | |
74 | 74 | /** |
75 | 75 | * Table caption |
76 | 76 | * |
77 | 77 | * @var string |
78 | 78 | */ |
79 | - public $caption = NULL; |
|
79 | + public $caption = NULL; |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Table layout template |
83 | 83 | * |
84 | 84 | * @var array |
85 | 85 | */ |
86 | - public $template = NULL; |
|
86 | + public $template = NULL; |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * Newline setting |
90 | 90 | * |
91 | 91 | * @var string |
92 | 92 | */ |
93 | - public $newline = "\n"; |
|
93 | + public $newline = "\n"; |
|
94 | 94 | |
95 | 95 | /** |
96 | 96 | * Contents of empty cells |
97 | 97 | * |
98 | 98 | * @var string |
99 | 99 | */ |
100 | - public $empty_cells = ''; |
|
100 | + public $empty_cells = ''; |
|
101 | 101 | |
102 | 102 | /** |
103 | 103 | * Callback for custom table layout |
104 | 104 | * |
105 | 105 | * @var function |
106 | 106 | */ |
107 | - public $function = NULL; |
|
107 | + public $function = NULL; |
|
108 | 108 | |
109 | 109 | /** |
110 | 110 | * Set the template from the table config file if it exists |
@@ -391,26 +391,26 @@ discard block |
||
391 | 391 | if (strpos($url, '?') !== FALSE) |
392 | 392 | { |
393 | 393 | $tb_array = explode('/', $url); |
394 | - $tb_end = $tb_array[count($tb_array)-1]; |
|
394 | + $tb_end = $tb_array[count($tb_array) - 1]; |
|
395 | 395 | |
396 | 396 | if ( ! is_numeric($tb_end)) |
397 | 397 | { |
398 | - $tb_end = $tb_array[count($tb_array)-2]; |
|
398 | + $tb_end = $tb_array[count($tb_array) - 2]; |
|
399 | 399 | } |
400 | 400 | |
401 | 401 | $tb_array = explode('=', $tb_end); |
402 | - $tb_id = $tb_array[count($tb_array)-1]; |
|
402 | + $tb_id = $tb_array[count($tb_array) - 1]; |
|
403 | 403 | } |
404 | 404 | else |
405 | 405 | { |
406 | 406 | $url = rtrim($url, '/'); |
407 | 407 | |
408 | 408 | $tb_array = explode('/', $url); |
409 | - $tb_id = $tb_array[count($tb_array)-1]; |
|
409 | + $tb_id = $tb_array[count($tb_array) - 1]; |
|
410 | 410 | |
411 | 411 | if ( ! is_numeric($tb_id)) |
412 | 412 | { |
413 | - $tb_id = $tb_array[count($tb_array)-2]; |
|
413 | + $tb_id = $tb_array[count($tb_array) - 2]; |
|
414 | 414 | } |
415 | 415 | } |
416 | 416 | |
@@ -488,9 +488,9 @@ discard block |
||
488 | 488 | */ |
489 | 489 | public function convert_ascii($str) |
490 | 490 | { |
491 | - $count = 1; |
|
492 | - $out = ''; |
|
493 | - $temp = array(); |
|
491 | + $count = 1; |
|
492 | + $out = ''; |
|
493 | + $temp = array(); |
|
494 | 494 | |
495 | 495 | for ($i = 0, $s = strlen($str); $i < $s; $i++) |
496 | 496 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @var string |
62 | 62 | */ |
63 | - public $skip_elements = 'p|pre|ol|ul|dl|object|table|h\d'; |
|
63 | + public $skip_elements = 'p|pre|ol|ul|dl|object|table|h\d'; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Tags we want the parser to completely ignore when splitting the string. |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * Etc... |
168 | 168 | * } |
169 | 169 | */ |
170 | - $chunks = preg_split('/(<(?:[^<>]+(?:"[^"]*"|\'[^\']*\')?)+>)/', $str, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); |
|
170 | + $chunks = preg_split('/(<(?:[^<>]+(?:"[^"]*"|\'[^\']*\')?)+>)/', $str, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); |
|
171 | 171 | |
172 | 172 | // Build our finalized string. We cycle through the array, skipping tags, and processing the contained text |
173 | 173 | $str = ''; |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | // We trim off the right-side new line so that the closing </p> tag |
373 | 373 | // will be positioned immediately following the string, matching |
374 | 374 | // the behavior of the opening <p> tag |
375 | - $str = '<p>'.rtrim($str).'</p>'; |
|
375 | + $str = '<p>'.rtrim($str).'</p>'; |
|
376 | 376 | } |
377 | 377 | |
378 | 378 | // Remove empty paragraphs if they are on the first line, as this |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | */ |
396 | 396 | protected function _protect_characters($match) |
397 | 397 | { |
398 | - return str_replace(array("'",'"','--',' '), array('{@SQ}', '{@DQ}', '{@DD}', '{@NBS}'), $match[0]); |
|
398 | + return str_replace(array("'", '"', '--', ' '), array('{@SQ}', '{@DQ}', '{@DD}', '{@NBS}'), $match[0]); |
|
399 | 399 | } |
400 | 400 | |
401 | 401 | // -------------------------------------------------------------------- |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * |
93 | 93 | * @var array |
94 | 94 | */ |
95 | - protected $_test_items_visible = array( |
|
95 | + protected $_test_items_visible = array( |
|
96 | 96 | 'test_name', |
97 | 97 | 'test_datatype', |
98 | 98 | 'res_datatype', |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | $back = $this->_backtrace(); |
168 | 168 | |
169 | - $report = array ( |
|
169 | + $report = array( |
|
170 | 170 | 'test_name' => $test_name, |
171 | 171 | 'test_datatype' => gettype($test), |
172 | 172 | 'res_datatype' => $extype, |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $result = $this->result(); |
199 | 199 | } |
200 | 200 | |
201 | - $CI =& get_instance(); |
|
201 | + $CI = & get_instance(); |
|
202 | 202 | $CI->load->language('unit_test'); |
203 | 203 | |
204 | 204 | $this->_parse_template(); |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | */ |
274 | 274 | public function result($results = array()) |
275 | 275 | { |
276 | - $CI =& get_instance(); |
|
276 | + $CI = & get_instance(); |
|
277 | 277 | $CI->load->language('unit_test'); |
278 | 278 | |
279 | 279 | if (count($results) === 0) |
@@ -293,8 +293,8 @@ discard block |
||
293 | 293 | { |
294 | 294 | empty($config) OR $this->initialize($config, FALSE); |
295 | 295 | |
296 | - $this->_mimes =& get_mimes(); |
|
297 | - $this->_CI =& get_instance(); |
|
296 | + $this->_mimes = & get_mimes(); |
|
297 | + $this->_CI = & get_instance(); |
|
298 | 298 | |
299 | 299 | log_message('info', 'Upload Class Initialized'); |
300 | 300 | } |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | else |
481 | 481 | { |
482 | 482 | // An extension was provided, let's have it! |
483 | - $this->file_ext = $this->get_extension($this->_file_name_override); |
|
483 | + $this->file_ext = $this->get_extension($this->_file_name_override); |
|
484 | 484 | } |
485 | 485 | |
486 | 486 | if ( ! $this->is_allowed_filetype(TRUE)) |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | // Convert the file size to kilobytes |
494 | 494 | if ($this->file_size > 0) |
495 | 495 | { |
496 | - $this->file_size = round($this->file_size/1024, 2); |
|
496 | + $this->file_size = round($this->file_size / 1024, 2); |
|
497 | 497 | } |
498 | 498 | |
499 | 499 | // Is the file size within the allowed maximum? |
@@ -812,10 +812,10 @@ discard block |
||
812 | 812 | { |
813 | 813 | $types = array(1 => 'gif', 2 => 'jpeg', 3 => 'png'); |
814 | 814 | |
815 | - $this->image_width = $D[0]; |
|
816 | - $this->image_height = $D[1]; |
|
817 | - $this->image_type = isset($types[$D[2]]) ? $types[$D[2]] : 'unknown'; |
|
818 | - $this->image_size_str = $D[3]; // string containing height and width |
|
815 | + $this->image_width = $D[0]; |
|
816 | + $this->image_height = $D[1]; |
|
817 | + $this->image_type = isset($types[$D[2]]) ? $types[$D[2]] : 'unknown'; |
|
818 | + $this->image_size_str = $D[3]; // string containing height and width |
|
819 | 819 | } |
820 | 820 | } |
821 | 821 | |
@@ -863,7 +863,7 @@ discard block |
||
863 | 863 | $this->file_type = 'image/jpeg'; |
864 | 864 | } |
865 | 865 | |
866 | - $img_mimes = array('image/gif', 'image/jpeg', 'image/png'); |
|
866 | + $img_mimes = array('image/gif', 'image/jpeg', 'image/png'); |
|
867 | 867 | |
868 | 868 | return in_array($this->file_type, $img_mimes, TRUE); |
869 | 869 | } |
@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | return FALSE; |
1006 | 1006 | } |
1007 | 1007 | |
1008 | - $this->upload_path = preg_replace('/(.+?)\/*$/', '\\1/', $this->upload_path); |
|
1008 | + $this->upload_path = preg_replace('/(.+?)\/*$/', '\\1/', $this->upload_path); |
|
1009 | 1009 | return TRUE; |
1010 | 1010 | } |
1011 | 1011 | |
@@ -1049,9 +1049,9 @@ discard block |
||
1049 | 1049 | $ext = ''; |
1050 | 1050 | if (strpos($filename, '.') !== FALSE) |
1051 | 1051 | { |
1052 | - $parts = explode('.', $filename); |
|
1053 | - $ext = '.'.array_pop($parts); |
|
1054 | - $filename = implode('.', $parts); |
|
1052 | + $parts = explode('.', $filename); |
|
1053 | + $ext = '.'.array_pop($parts); |
|
1054 | + $filename = implode('.', $parts); |
|
1055 | 1055 | } |
1056 | 1056 | |
1057 | 1057 | return substr($filename, 0, ($length - strlen($ext))).$ext; |
@@ -60,140 +60,140 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @var bool |
62 | 62 | */ |
63 | - public $debug = FALSE; |
|
63 | + public $debug = FALSE; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * I4 data type |
67 | 67 | * |
68 | 68 | * @var string |
69 | 69 | */ |
70 | - public $xmlrpcI4 = 'i4'; |
|
70 | + public $xmlrpcI4 = 'i4'; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Integer data type |
74 | 74 | * |
75 | 75 | * @var string |
76 | 76 | */ |
77 | - public $xmlrpcInt = 'int'; |
|
77 | + public $xmlrpcInt = 'int'; |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * Boolean data type |
81 | 81 | * |
82 | 82 | * @var string |
83 | 83 | */ |
84 | - public $xmlrpcBoolean = 'boolean'; |
|
84 | + public $xmlrpcBoolean = 'boolean'; |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | * Double data type |
88 | 88 | * |
89 | 89 | * @var string |
90 | 90 | */ |
91 | - public $xmlrpcDouble = 'double'; |
|
91 | + public $xmlrpcDouble = 'double'; |
|
92 | 92 | |
93 | 93 | /** |
94 | 94 | * String data type |
95 | 95 | * |
96 | 96 | * @var string |
97 | 97 | */ |
98 | - public $xmlrpcString = 'string'; |
|
98 | + public $xmlrpcString = 'string'; |
|
99 | 99 | |
100 | 100 | /** |
101 | 101 | * DateTime format |
102 | 102 | * |
103 | 103 | * @var string |
104 | 104 | */ |
105 | - public $xmlrpcDateTime = 'dateTime.iso8601'; |
|
105 | + public $xmlrpcDateTime = 'dateTime.iso8601'; |
|
106 | 106 | |
107 | 107 | /** |
108 | 108 | * Base64 data type |
109 | 109 | * |
110 | 110 | * @var string |
111 | 111 | */ |
112 | - public $xmlrpcBase64 = 'base64'; |
|
112 | + public $xmlrpcBase64 = 'base64'; |
|
113 | 113 | |
114 | 114 | /** |
115 | 115 | * Array data type |
116 | 116 | * |
117 | 117 | * @var string |
118 | 118 | */ |
119 | - public $xmlrpcArray = 'array'; |
|
119 | + public $xmlrpcArray = 'array'; |
|
120 | 120 | |
121 | 121 | /** |
122 | 122 | * Struct data type |
123 | 123 | * |
124 | 124 | * @var string |
125 | 125 | */ |
126 | - public $xmlrpcStruct = 'struct'; |
|
126 | + public $xmlrpcStruct = 'struct'; |
|
127 | 127 | |
128 | 128 | /** |
129 | 129 | * Data types list |
130 | 130 | * |
131 | 131 | * @var array |
132 | 132 | */ |
133 | - public $xmlrpcTypes = array(); |
|
133 | + public $xmlrpcTypes = array(); |
|
134 | 134 | |
135 | 135 | /** |
136 | 136 | * Valid parents list |
137 | 137 | * |
138 | 138 | * @var array |
139 | 139 | */ |
140 | - public $valid_parents = array(); |
|
140 | + public $valid_parents = array(); |
|
141 | 141 | |
142 | 142 | /** |
143 | 143 | * Response error numbers list |
144 | 144 | * |
145 | 145 | * @var array |
146 | 146 | */ |
147 | - public $xmlrpcerr = array(); |
|
147 | + public $xmlrpcerr = array(); |
|
148 | 148 | |
149 | 149 | /** |
150 | 150 | * Response error messages list |
151 | 151 | * |
152 | 152 | * @var string[] |
153 | 153 | */ |
154 | - public $xmlrpcstr = array(); |
|
154 | + public $xmlrpcstr = array(); |
|
155 | 155 | |
156 | 156 | /** |
157 | 157 | * Encoding charset |
158 | 158 | * |
159 | 159 | * @var string |
160 | 160 | */ |
161 | - public $xmlrpc_defencoding = 'UTF-8'; |
|
161 | + public $xmlrpc_defencoding = 'UTF-8'; |
|
162 | 162 | |
163 | 163 | /** |
164 | 164 | * XML-RPC client name |
165 | 165 | * |
166 | 166 | * @var string |
167 | 167 | */ |
168 | - public $xmlrpcName = 'XML-RPC for CodeIgniter'; |
|
168 | + public $xmlrpcName = 'XML-RPC for CodeIgniter'; |
|
169 | 169 | |
170 | 170 | /** |
171 | 171 | * XML-RPC version |
172 | 172 | * |
173 | 173 | * @var string |
174 | 174 | */ |
175 | - public $xmlrpcVersion = '1.1'; |
|
175 | + public $xmlrpcVersion = '1.1'; |
|
176 | 176 | |
177 | 177 | /** |
178 | 178 | * Start of user errors |
179 | 179 | * |
180 | 180 | * @var int |
181 | 181 | */ |
182 | - public $xmlrpcerruser = 800; |
|
182 | + public $xmlrpcerruser = 800; |
|
183 | 183 | |
184 | 184 | /** |
185 | 185 | * Start of XML parse errors |
186 | 186 | * |
187 | 187 | * @var int |
188 | 188 | */ |
189 | - public $xmlrpcerrxml = 100; |
|
189 | + public $xmlrpcerrxml = 100; |
|
190 | 190 | |
191 | 191 | /** |
192 | 192 | * Backslash replacement value |
193 | 193 | * |
194 | 194 | * @var string |
195 | 195 | */ |
196 | - public $xmlrpc_backslash = ''; |
|
196 | + public $xmlrpc_backslash = ''; |
|
197 | 197 | |
198 | 198 | /** |
199 | 199 | * XML-RPC Client object |
@@ -221,14 +221,14 @@ discard block |
||
221 | 221 | * |
222 | 222 | * @var string |
223 | 223 | */ |
224 | - public $message = ''; |
|
224 | + public $message = ''; |
|
225 | 225 | |
226 | 226 | /** |
227 | 227 | * Request error message |
228 | 228 | * |
229 | 229 | * @var string |
230 | 230 | */ |
231 | - public $error = ''; |
|
231 | + public $error = ''; |
|
232 | 232 | |
233 | 233 | /** |
234 | 234 | * XML-RPC result object |
@@ -242,14 +242,14 @@ discard block |
||
242 | 242 | * |
243 | 243 | * @var array |
244 | 244 | */ |
245 | - public $response = array(); // Response from remote server |
|
245 | + public $response = array(); // Response from remote server |
|
246 | 246 | |
247 | 247 | /** |
248 | 248 | * XSS Filter flag |
249 | 249 | * |
250 | 250 | * @var bool |
251 | 251 | */ |
252 | - public $xss_clean = TRUE; |
|
252 | + public $xss_clean = TRUE; |
|
253 | 253 | |
254 | 254 | // -------------------------------------------------------------------- |
255 | 255 | |
@@ -568,21 +568,21 @@ discard block |
||
568 | 568 | * |
569 | 569 | * @var string |
570 | 570 | */ |
571 | - public $path = ''; |
|
571 | + public $path = ''; |
|
572 | 572 | |
573 | 573 | /** |
574 | 574 | * Server hostname |
575 | 575 | * |
576 | 576 | * @var string |
577 | 577 | */ |
578 | - public $server = ''; |
|
578 | + public $server = ''; |
|
579 | 579 | |
580 | 580 | /** |
581 | 581 | * Server port |
582 | 582 | * |
583 | 583 | * @var int |
584 | 584 | */ |
585 | - public $port = 80; |
|
585 | + public $port = 80; |
|
586 | 586 | |
587 | 587 | /** |
588 | 588 | * |
@@ -604,42 +604,42 @@ discard block |
||
604 | 604 | * |
605 | 605 | * @var string |
606 | 606 | */ |
607 | - public $proxy = FALSE; |
|
607 | + public $proxy = FALSE; |
|
608 | 608 | |
609 | 609 | /** |
610 | 610 | * Proxy port |
611 | 611 | * |
612 | 612 | * @var int |
613 | 613 | */ |
614 | - public $proxy_port = 8080; |
|
614 | + public $proxy_port = 8080; |
|
615 | 615 | |
616 | 616 | /** |
617 | 617 | * Error number |
618 | 618 | * |
619 | 619 | * @var string |
620 | 620 | */ |
621 | - public $errno = ''; |
|
621 | + public $errno = ''; |
|
622 | 622 | |
623 | 623 | /** |
624 | 624 | * Error message |
625 | 625 | * |
626 | 626 | * @var string |
627 | 627 | */ |
628 | - public $errstring = ''; |
|
628 | + public $errstring = ''; |
|
629 | 629 | |
630 | 630 | /** |
631 | 631 | * Timeout in seconds |
632 | 632 | * |
633 | 633 | * @var int |
634 | 634 | */ |
635 | - public $timeout = 5; |
|
635 | + public $timeout = 5; |
|
636 | 636 | |
637 | 637 | /** |
638 | 638 | * No Multicall flag |
639 | 639 | * |
640 | 640 | * @var bool |
641 | 641 | */ |
642 | - public $no_multicall = FALSE; |
|
642 | + public $no_multicall = FALSE; |
|
643 | 643 | |
644 | 644 | // -------------------------------------------------------------------- |
645 | 645 | |
@@ -791,35 +791,35 @@ discard block |
||
791 | 791 | * |
792 | 792 | * @var mixed |
793 | 793 | */ |
794 | - public $val = 0; |
|
794 | + public $val = 0; |
|
795 | 795 | |
796 | 796 | /** |
797 | 797 | * Error number |
798 | 798 | * |
799 | 799 | * @var int |
800 | 800 | */ |
801 | - public $errno = 0; |
|
801 | + public $errno = 0; |
|
802 | 802 | |
803 | 803 | /** |
804 | 804 | * Error message |
805 | 805 | * |
806 | 806 | * @var string |
807 | 807 | */ |
808 | - public $errstr = ''; |
|
808 | + public $errstr = ''; |
|
809 | 809 | |
810 | 810 | /** |
811 | 811 | * Headers list |
812 | 812 | * |
813 | 813 | * @var array |
814 | 814 | */ |
815 | - public $headers = array(); |
|
815 | + public $headers = array(); |
|
816 | 816 | |
817 | 817 | /** |
818 | 818 | * XSS Filter flag |
819 | 819 | * |
820 | 820 | * @var bool |
821 | 821 | */ |
822 | - public $xss_clean = TRUE; |
|
822 | + public $xss_clean = TRUE; |
|
823 | 823 | |
824 | 824 | // -------------------------------------------------------------------- |
825 | 825 | |
@@ -928,7 +928,7 @@ discard block |
||
928 | 928 | */ |
929 | 929 | public function decode($array = NULL) |
930 | 930 | { |
931 | - $CI =& get_instance(); |
|
931 | + $CI = & get_instance(); |
|
932 | 932 | |
933 | 933 | if (is_array($array)) |
934 | 934 | { |
@@ -994,7 +994,7 @@ discard block |
||
994 | 994 | reset($xmlrpc_val->me['struct']); |
995 | 995 | $arr = array(); |
996 | 996 | |
997 | - while (list($key,$value) = each($xmlrpc_val->me['struct'])) |
|
997 | + while (list($key, $value) = each($xmlrpc_val->me['struct'])) |
|
998 | 998 | { |
999 | 999 | $arr[$key] = $this->xmlrpc_decoder($value); |
1000 | 1000 | } |
@@ -1054,14 +1054,14 @@ discard block |
||
1054 | 1054 | * |
1055 | 1055 | * @var array |
1056 | 1056 | */ |
1057 | - public $params = array(); |
|
1057 | + public $params = array(); |
|
1058 | 1058 | |
1059 | 1059 | /** |
1060 | 1060 | * XH? |
1061 | 1061 | * |
1062 | 1062 | * @var array |
1063 | 1063 | */ |
1064 | - public $xh = array(); |
|
1064 | + public $xh = array(); |
|
1065 | 1065 | |
1066 | 1066 | // -------------------------------------------------------------------- |
1067 | 1067 | |
@@ -1143,7 +1143,7 @@ discard block |
||
1143 | 1143 | // Check for HTTP 200 Response |
1144 | 1144 | if (strpos($data, 'HTTP') === 0 && ! preg_match('/^HTTP\/[0-9\.]+ 200 /', $data)) |
1145 | 1145 | { |
1146 | - $errstr = substr($data, 0, strpos($data, "\n")-1); |
|
1146 | + $errstr = substr($data, 0, strpos($data, "\n") - 1); |
|
1147 | 1147 | return new XML_RPC_Response(0, $this->xmlrpcerr['http_error'], $this->xmlrpcstr['http_error'].' ('.$errstr.')'); |
1148 | 1148 | } |
1149 | 1149 | |
@@ -1398,7 +1398,7 @@ discard block |
||
1398 | 1398 | case 'ARRAY': |
1399 | 1399 | $cur_val = array_shift($this->xh[$the_parser]['valuestack']); |
1400 | 1400 | $this->xh[$the_parser]['value'] = isset($cur_val['values']) ? $cur_val['values'] : array(); |
1401 | - $this->xh[$the_parser]['vt'] = strtolower($name); |
|
1401 | + $this->xh[$the_parser]['vt'] = strtolower($name); |
|
1402 | 1402 | break; |
1403 | 1403 | case 'NAME': |
1404 | 1404 | $this->xh[$the_parser]['valuestack'][0]['name'] = $this->xh[$the_parser]['ac']; |
@@ -1418,7 +1418,7 @@ discard block |
||
1418 | 1418 | } |
1419 | 1419 | elseif ($name === 'DATETIME.ISO8601') |
1420 | 1420 | { |
1421 | - $this->xh[$the_parser]['vt'] = $this->xmlrpcDateTime; |
|
1421 | + $this->xh[$the_parser]['vt'] = $this->xmlrpcDateTime; |
|
1422 | 1422 | $this->xh[$the_parser]['value'] = $this->xh[$the_parser]['ac']; |
1423 | 1423 | } |
1424 | 1424 | elseif ($name === 'BASE64') |
@@ -1430,7 +1430,7 @@ discard block |
||
1430 | 1430 | // Translated BOOLEAN values to TRUE AND FALSE |
1431 | 1431 | $this->xh[$the_parser]['value'] = (bool) $this->xh[$the_parser]['ac']; |
1432 | 1432 | } |
1433 | - elseif ($name=='DOUBLE') |
|
1433 | + elseif ($name == 'DOUBLE') |
|
1434 | 1434 | { |
1435 | 1435 | // we have a DOUBLE |
1436 | 1436 | // we must check that only 0123456789-.<space> are characters here |
@@ -1453,8 +1453,8 @@ discard block |
||
1453 | 1453 | // This if() detects if no scalar was inside <VALUE></VALUE> |
1454 | 1454 | if ($this->xh[$the_parser]['vt'] == 'value') |
1455 | 1455 | { |
1456 | - $this->xh[$the_parser]['value'] = $this->xh[$the_parser]['ac']; |
|
1457 | - $this->xh[$the_parser]['vt'] = $this->xmlrpcString; |
|
1456 | + $this->xh[$the_parser]['value'] = $this->xh[$the_parser]['ac']; |
|
1457 | + $this->xh[$the_parser]['vt'] = $this->xmlrpcString; |
|
1458 | 1458 | } |
1459 | 1459 | |
1460 | 1460 | // build the XML-RPC value out of the data received, and substitute it |
@@ -1559,7 +1559,7 @@ discard block |
||
1559 | 1559 | */ |
1560 | 1560 | public function output_parameters(array $array = array()) |
1561 | 1561 | { |
1562 | - $CI =& get_instance(); |
|
1562 | + $CI = & get_instance(); |
|
1563 | 1563 | |
1564 | 1564 | if ( ! empty($array)) |
1565 | 1565 | { |
@@ -1633,7 +1633,7 @@ discard block |
||
1633 | 1633 | reset($param->me['struct']); |
1634 | 1634 | $arr = array(); |
1635 | 1635 | |
1636 | - while (list($key,$value) = each($param->me['struct'])) |
|
1636 | + while (list($key, $value) = each($param->me['struct'])) |
|
1637 | 1637 | { |
1638 | 1638 | $arr[$key] = $this->decode_message($value); |
1639 | 1639 | } |
@@ -1658,14 +1658,14 @@ discard block |
||
1658 | 1658 | * |
1659 | 1659 | * @var array |
1660 | 1660 | */ |
1661 | - public $me = array(); |
|
1661 | + public $me = array(); |
|
1662 | 1662 | |
1663 | 1663 | /** |
1664 | 1664 | * Value type |
1665 | 1665 | * |
1666 | 1666 | * @var int |
1667 | 1667 | */ |
1668 | - public $mytype = 0; |
|
1668 | + public $mytype = 0; |
|
1669 | 1669 | |
1670 | 1670 | // -------------------------------------------------------------------- |
1671 | 1671 | |
@@ -1844,13 +1844,13 @@ discard block |
||
1844 | 1844 | switch ($typ) |
1845 | 1845 | { |
1846 | 1846 | case $this->xmlrpcBase64: |
1847 | - $rs .= '<'.$typ.'>'.base64_encode( (string) $val).'</'.$typ.">\n"; |
|
1847 | + $rs .= '<'.$typ.'>'.base64_encode((string) $val).'</'.$typ.">\n"; |
|
1848 | 1848 | break; |
1849 | 1849 | case $this->xmlrpcBoolean: |
1850 | - $rs .= '<'.$typ.'>'.( (bool) $val ? '1' : '0').'</'.$typ.">\n"; |
|
1850 | + $rs .= '<'.$typ.'>'.((bool) $val ? '1' : '0').'</'.$typ.">\n"; |
|
1851 | 1851 | break; |
1852 | 1852 | case $this->xmlrpcString: |
1853 | - $rs .= '<'.$typ.'>'.htmlspecialchars( (string) $val).'</'.$typ.">\n"; |
|
1853 | + $rs .= '<'.$typ.'>'.htmlspecialchars((string) $val).'</'.$typ.">\n"; |
|
1854 | 1854 | break; |
1855 | 1855 | default: |
1856 | 1856 | $rs .= '<'.$typ.'>'.$val.'</'.$typ.">\n"; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @var array |
81 | 81 | */ |
82 | - public $system_methods = array(); |
|
82 | + public $system_methods = array(); |
|
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Configuration object |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | |
221 | 221 | if ($data === '') |
222 | 222 | { |
223 | - $CI =& get_instance(); |
|
223 | + $CI = & get_instance(); |
|
224 | 224 | if ($CI->input->method() === 'post') |
225 | 225 | { |
226 | 226 | $data = $CI->input->raw_input_stream; |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | |
344 | 344 | if ($system_call === TRUE) |
345 | 345 | { |
346 | - if ( ! is_callable(array($this,$method_parts[1]))) |
|
346 | + if ( ! is_callable(array($this, $method_parts[1]))) |
|
347 | 347 | { |
348 | 348 | return new XML_RPC_Response(0, $this->xmlrpcerr['unknown_method'], $this->xmlrpcstr['unknown_method']); |
349 | 349 | } |
@@ -366,21 +366,21 @@ discard block |
||
366 | 366 | { |
367 | 367 | $current_sig = $sig[$i]; |
368 | 368 | |
369 | - if (count($current_sig) === count($m->params)+1) |
|
369 | + if (count($current_sig) === count($m->params) + 1) |
|
370 | 370 | { |
371 | 371 | for ($n = 0, $mc = count($m->params); $n < $mc; $n++) |
372 | 372 | { |
373 | 373 | $p = $m->params[$n]; |
374 | 374 | $pt = ($p->kindOf() === 'scalar') ? $p->scalarval() : $p->kindOf(); |
375 | 375 | |
376 | - if ($pt !== $current_sig[$n+1]) |
|
376 | + if ($pt !== $current_sig[$n + 1]) |
|
377 | 377 | { |
378 | - $pno = $n+1; |
|
379 | - $wanted = $current_sig[$n+1]; |
|
378 | + $pno = $n + 1; |
|
379 | + $wanted = $current_sig[$n + 1]; |
|
380 | 380 | |
381 | 381 | return new XML_RPC_Response(0, |
382 | 382 | $this->xmlrpcerr['incorrect_params'], |
383 | - $this->xmlrpcstr['incorrect_params'] . |
|
383 | + $this->xmlrpcstr['incorrect_params']. |
|
384 | 384 | ': Wanted '.$wanted.', got '.$pt.' at param '.$pno.')'); |
385 | 385 | } |
386 | 386 | } |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | $inSig = $signature[$i]; |
467 | 467 | for ($j = 0, $jc = count($inSig); $j < $jc; $j++) |
468 | 468 | { |
469 | - $cursig[]= new XML_RPC_Values($inSig[$j], 'string'); |
|
469 | + $cursig[] = new XML_RPC_Values($inSig[$j], 'string'); |
|
470 | 470 | } |
471 | 471 | $sigs[] = new XML_RPC_Values($cursig, 'array'); |
472 | 472 | } |
@@ -194,9 +194,9 @@ discard block |
||
194 | 194 | "\x50\x4b\x01\x02\x00\x00\x0a\x00\x00\x00\x00\x00" |
195 | 195 | .pack('v', $file_mtime) |
196 | 196 | .pack('v', $file_mdate) |
197 | - .pack('V',0) // crc32 |
|
198 | - .pack('V',0) // compressed filesize |
|
199 | - .pack('V',0) // uncompressed filesize |
|
197 | + .pack('V', 0) // crc32 |
|
198 | + .pack('V', 0) // compressed filesize |
|
199 | + .pack('V', 0) // uncompressed filesize |
|
200 | 200 | .pack('v', strlen($dir)) // length of pathname |
201 | 201 | .pack('v', 0) // extra field length |
202 | 202 | .pack('v', 0) // file comment length |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | |
457 | 457 | get_instance()->load->helper('download'); |
458 | 458 | $get_zip = $this->get_zip(); |
459 | - $zip_content =& $get_zip; |
|
459 | + $zip_content = & $get_zip; |
|
460 | 460 | |
461 | 461 | force_download($filename, $zip_content); |
462 | 462 | } |
@@ -16,10 +16,10 @@ |
||
16 | 16 | |
17 | 17 | <ul class="nav navbar-nav navbar-right"> |
18 | 18 | <li> |
19 | - <?php if (! empty($_SESSION['logged_in']) ) : ?> |
|
20 | - <a href="<?= site_url( \Myth\Route::named('logout') ) ?>">Logout</a> |
|
19 | + <?php if ( ! empty($_SESSION['logged_in'])) : ?> |
|
20 | + <a href="<?= site_url(\Myth\Route::named('logout')) ?>">Logout</a> |
|
21 | 21 | <?php else : ?> |
22 | - <a href="<?= site_url( \Myth\Route::named('login') ) ?>">Login</a> |
|
22 | + <a href="<?= site_url(\Myth\Route::named('login')) ?>">Login</a> |
|
23 | 23 | <?php endif; ?> |
24 | 24 | </li> |
25 | 25 | </ul> |