Completed
Push — 16.1 ( 7ccc73...046888 )
by Nathan
64:46 queued 51:15
created
setup/index.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
 					. '<br />'.lang('to allow password authentification add the following line to your pg_hba.conf (above all others) AND restart postgres:')
223 223
 					. '<br /><i># TYPE DATABASE USER CIDR-ADDRESS METHOD</i>'
224 224
 					.($info['db_host'] ? "<br /><i><b>host $info[db_name] $info[db_user] $ip/32 password</b></i>" :
225
-					                     "<br /><i><b>local $info[db_name] $info[db_user] password</b></i>"));
225
+										 "<br /><i><b>local $info[db_name] $info[db_user] password</b></i>"));
226 226
 				//$setup_tpl->parse('V_db_stage_1','B_db_stage_1');
227 227
 				//break;
228 228
 			default:
Please login to merge, or discard this patch.
setup/applications.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -350,7 +350,7 @@
 block discarded – undo
350 350
 			{
351 351
 				echo lang('because it depends upon') . ':<br />' . "\n";
352 352
 				list($depapp,$depver) = parsedep($setup_info[$resolve]['depends'],False);
353
-                            $depapp_count = count($depapp);
353
+							$depapp_count = count($depapp);
354 354
 				for ($i=0; $i<$depapp_count; $i++)
355 355
 				{
356 356
 					echo '<br />' . $depapp[$i] . ': ';
Please login to merge, or discard this patch.
importexport/inc/class.importexport_iface_import_plugin.inc.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -88,33 +88,33 @@
 block discarded – undo
88 88
 	public function get_selectors_etpl();
89 89
 
90 90
 	/**
91
-	* Returns errors that were encountered during importing
92
-	* Maximum of one error message per record, but you can concatenate them if you need to
93
-	*
94
-	* @return Array (
95
-	*	record_# => error message
96
-	*	)
97
-	*/
91
+	 * Returns errors that were encountered during importing
92
+	 * Maximum of one error message per record, but you can concatenate them if you need to
93
+	 *
94
+	 * @return Array (
95
+	 *	record_# => error message
96
+	 *	)
97
+	 */
98 98
 	public function get_errors();
99 99
 
100 100
 	/**
101
-	* Returns warnings that were encountered during importing
102
-	* Maximum of one warning message per record, but you can concatenate them if you need to
103
-	*
104
-	* @return Array (
105
-	*	record_# => warning message
106
-	*	)
107
-	*/
101
+	 * Returns warnings that were encountered during importing
102
+	 * Maximum of one warning message per record, but you can concatenate them if you need to
103
+	 *
104
+	 * @return Array (
105
+	 *	record_# => warning message
106
+	 *	)
107
+	 */
108 108
 	public function get_warnings();
109 109
 
110 110
 	/**
111
-	* Returns a list of actions taken, and the number of records for that action.
112
-	* Actions are things like 'insert', 'update', 'delete', and may be different for each plugin.
113
-	*
114
-	* @return Array (
115
-	*	action => record count
116
-	* )
117
-	*/
111
+	 * Returns a list of actions taken, and the number of records for that action.
112
+	 * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin.
113
+	 *
114
+	 * @return Array (
115
+	 *	action => record count
116
+	 * )
117
+	 */
118 118
 	public function get_results();
119 119
 
120 120
 } // end of iface_export_plugin
Please login to merge, or discard this patch.
importexport/inc/class.importexport_basic_import_csv.inc.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 		$record_class = isset(static::$record_class) ? static::$record_class : "{$app}_egw_record";
164 164
 
165 165
 		// Needed for categories to work right
166
-        $GLOBALS['egw_info']['flags']['currentapp'] = $app;
166
+		$GLOBALS['egw_info']['flags']['currentapp'] = $app;
167 167
 
168 168
 		$this->init($_definition);
169 169
 
@@ -215,15 +215,15 @@  discard block
 block discarded – undo
215 215
 	}
216 216
 
217 217
 	/**
218
-	*Import a single record
219
-	*
220
-	* You don't need to worry about mappings or translations, they've been done already.
221
-	* You do need to handle the conditions and the actions taken.
222
-	*
223
-	* Updates the count of actions taken
224
-	*
225
-	* @return boolean success
226
-	*/
218
+	 *Import a single record
219
+	 *
220
+	 * You don't need to worry about mappings or translations, they've been done already.
221
+	 * You do need to handle the conditions and the actions taken.
222
+	 *
223
+	 * Updates the count of actions taken
224
+	 *
225
+	 * @return boolean success
226
+	 */
227 227
 	protected function import_record(importexport_iface_egw_record &$record, &$import_csv)
228 228
 	{
229 229
 		if ( $this->definition->plugin_options['conditions'] ) {
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 	 * @param stream $stream
404 404
 	 * @param importexport_definition $definition
405 405
 	 * @return String HTML for preview
406
-         */
406
+	 */
407 407
 	public function preview( $stream, importexport_definition $definition )
408 408
 	{
409 409
 		$this->import($stream, $definition);
@@ -639,37 +639,37 @@  discard block
 block discarded – undo
639 639
 	}
640 640
 
641 641
 	/**
642
-	* Returns warnings that were encountered during importing
643
-	* Maximum of one warning message per record, but you can append if you need to
644
-	*
645
-	* @return Array (
646
-	*       record_# => warning message
647
-	*       )
648
-	*/
642
+	 * Returns warnings that were encountered during importing
643
+	 * Maximum of one warning message per record, but you can append if you need to
644
+	 *
645
+	 * @return Array (
646
+	 *       record_# => warning message
647
+	 *       )
648
+	 */
649 649
 	public function get_warnings() {
650 650
 		return $this->warnings;
651 651
 	}
652 652
 
653 653
 	/**
654
-	* Returns errors that were encountered during importing
655
-	* Maximum of one error message per record, but you can append if you need to
656
-	*
657
-	* @return Array (
658
-	*       record_# => error message
659
-	*       )
660
-	*/
654
+	 * Returns errors that were encountered during importing
655
+	 * Maximum of one error message per record, but you can append if you need to
656
+	 *
657
+	 * @return Array (
658
+	 *       record_# => error message
659
+	 *       )
660
+	 */
661 661
 	public function get_errors() {
662 662
 		return $this->errors;
663 663
 	}
664 664
 
665 665
 	/**
666
-	* Returns a list of actions taken, and the number of records for that action.
667
-	* Actions are things like 'insert', 'update', 'delete', and may be different for each plugin.
668
-	*
669
-	* @return Array (
670
-	*       action => record count
671
-	* )
672
-	*/
666
+	 * Returns a list of actions taken, and the number of records for that action.
667
+	 * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin.
668
+	 *
669
+	 * @return Array (
670
+	 *       action => record count
671
+	 * )
672
+	 */
673 673
 	public function get_results() {
674 674
 			return $this->results;
675 675
 	}
Please login to merge, or discard this patch.
importexport/inc/class.importexport_helper_functions.inc.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -32,25 +32,25 @@  discard block
 block discarded – undo
32 32
 	 * Relative date ranges for filtering
33 33
 	 */
34 34
 	public static $relative_dates = array(      // Start: year,month,day,week, End: year,month,day,week
35
-                'Today'       => array(0,0,0,0,  0,0,1,0),
36
-                'Yesterday'   => array(0,0,-1,0, 0,0,0,0),
37
-                'This week'   => array(0,0,0,0,  0,0,0,1),
38
-                'Last week'   => array(0,0,0,-1, 0,0,0,0),
39
-                'This month'  => array(0,0,0,0,  0,1,0,0),
40
-                'Last month'  => array(0,-1,0,0, 0,0,0,0),
41
-                'Last 3 months' => array(0,-3,0,0, 0,0,0,0),
42
-                'This quarter'=> array(0,0,0,0,  0,0,0,0),      // Just a marker, needs special handling
43
-                'Last quarter'=> array(0,-4,0,0, 0,-4,0,0),     // Just a marker
44
-                'This year'   => array(0,0,0,0,  1,0,0,0),
45
-                'Last year'   => array(-1,0,0,0, 0,0,0,0),
46
-                '2 years ago' => array(-2,0,0,0, -1,0,0,0),
47
-                '3 years ago' => array(-3,0,0,0, -2,0,0,0),
48
-        );
35
+				'Today'       => array(0,0,0,0,  0,0,1,0),
36
+				'Yesterday'   => array(0,0,-1,0, 0,0,0,0),
37
+				'This week'   => array(0,0,0,0,  0,0,0,1),
38
+				'Last week'   => array(0,0,0,-1, 0,0,0,0),
39
+				'This month'  => array(0,0,0,0,  0,1,0,0),
40
+				'Last month'  => array(0,-1,0,0, 0,0,0,0),
41
+				'Last 3 months' => array(0,-3,0,0, 0,0,0,0),
42
+				'This quarter'=> array(0,0,0,0,  0,0,0,0),      // Just a marker, needs special handling
43
+				'Last quarter'=> array(0,-4,0,0, 0,-4,0,0),     // Just a marker
44
+				'This year'   => array(0,0,0,0,  1,0,0,0),
45
+				'Last year'   => array(-1,0,0,0, 0,0,0,0),
46
+				'2 years ago' => array(-2,0,0,0, -1,0,0,0),
47
+				'3 years ago' => array(-3,0,0,0, -2,0,0,0),
48
+		);
49 49
 
50 50
 	/**
51
-	* Files known to cause problems, and will be skipped in a plugin scan
52
-	* If you put appname => true, the whole app will be skipped.
53
-	*/
51
+	 * Files known to cause problems, and will be skipped in a plugin scan
52
+	 * If you put appname => true, the whole app will be skipped.
53
+	 */
54 54
 	protected static $blacklist_files = array(
55 55
 		'api' => true,
56 56
 		'etemplate' => true,
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
 	);
65 65
 
66 66
 	/**
67
-	* Class used to provide extra conversion functions
68
-	*
69
-	* Passed in as a param to conversion()
70
-	*/
67
+	 * Class used to provide extra conversion functions
68
+	 *
69
+	 * Passed in as a param to conversion()
70
+	 */
71 71
 	protected static $cclass = null;
72 72
 
73 73
 	/**
Please login to merge, or discard this patch.
importexport/inc/class.importexport_schedule_ui.inc.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
 	}
197 197
 
198 198
 	/**
199
-	* Get options for select boxes
200
-	*/
199
+	 * Get options for select boxes
200
+	 */
201 201
 	public static function get_select_options(Array $data)
202 202
 	{
203 203
 		$options = array(
@@ -261,8 +261,8 @@  discard block
 block discarded – undo
261 261
 	}
262 262
 
263 263
 	/**
264
-	* Generate a async key
265
-	*/
264
+	 * Generate a async key
265
+	 */
266 266
 	public static function generate_id($data)
267 267
 	{
268 268
 
@@ -278,11 +278,11 @@  discard block
 block discarded – undo
278 278
 	}
279 279
 
280 280
 	/**
281
-	* Check that the target is valid for the type (readable or writable)
282
-	* and that they're not trying to write directly to the filesystem
283
-	*
284
-	* $data should contain target & type
285
-	*/
281
+	 * Check that the target is valid for the type (readable or writable)
282
+	 * and that they're not trying to write directly to the filesystem
283
+	 *
284
+	 * $data should contain target & type
285
+	 */
286 286
 	public static function check_target(Array $data) {
287 287
 		$scheme = parse_url($data['target'], PHP_URL_SCHEME);
288 288
 		if($scheme == '' || $scheme == 'file')
@@ -329,11 +329,11 @@  discard block
 block discarded – undo
329 329
 	}
330 330
 
331 331
 	/**
332
-	* Writable that checks the folder too, in case the file does not exist yet
333
-	* http://ca3.php.net/manual/en/function.is-writable.php#73596
334
-	*
335
-	* @param path Path to check
336
-	*/
332
+	 * Writable that checks the folder too, in case the file does not exist yet
333
+	 * http://ca3.php.net/manual/en/function.is-writable.php#73596
334
+	 *
335
+	 * @param path Path to check
336
+	 */
337 337
 	private static function is__writable($path)
338 338
 	{
339 339
 		if ($path{strlen($path)-1}=='/')
@@ -365,8 +365,8 @@  discard block
 block discarded – undo
365 365
 	}
366 366
 
367 367
 	/**
368
-	* Execute a scheduled import or export
369
-	*/
368
+	 * Execute a scheduled import or export
369
+	 */
370 370
 	public static function exec($data)
371 371
 	{
372 372
 		ob_start();
Please login to merge, or discard this patch.
importexport/inc/class.importexport_definitions_bo.inc.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -137,10 +137,10 @@
 block discarded – undo
137 137
 	}
138 138
 
139 139
 	/**
140
-	* Save a definition
141
-	*
142
-	* @param definition $definition
143
-	*/
140
+	 * Save a definition
141
+	 *
142
+	 * @param definition $definition
143
+	 */
144 144
 	public function save(Array $data) {
145 145
 		$definition = new importexport_definition();
146 146
 		$definition->set_record($data);
Please login to merge, or discard this patch.
importexport/inc/class.importexport_wizard_basic_export_csv.inc.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 	const TEMPLATE_MARKER = '-eTemplate-';
24 24
 
25 25
 	/**
26
-	* List of steps.  Key is the function, value is the translated title.
27
-	*/
26
+	 * List of steps.  Key is the function, value is the translated title.
27
+	 */
28 28
 	public $steps;
29 29
 
30 30
 	/**
31
-	* List of eTemplates to use for each step.  You can override this with your own etemplates steps.
32
-	*/
31
+	 * List of eTemplates to use for each step.  You can override this with your own etemplates steps.
32
+	 */
33 33
 	protected $step_templates = array(
34 34
 		'wizard_step30' => 'importexport.wizard_basic_export_csv.choose_fields',
35 35
 		'wizard_step40' => 'importexport.wizard_basic_export_csv.choosesepncharset',
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
 		
39 39
 
40 40
 	/**
41
-	* Destination fields for the export
42
-	* Key is the field name, value is the human version
43
-	*/
41
+	 * Destination fields for the export
42
+	 * Key is the field name, value is the human version
43
+	 */
44 44
 	protected $export_fields = array();
45 45
 	
46 46
 	/**
47
-	* List of conditions your plugin supports
48
-	*/
47
+	 * List of conditions your plugin supports
48
+	 */
49 49
 	protected $conditions = array();
50 50
 
51 51
 	/**
52
-	* List of actions your plugin supports
53
-	*/
52
+	 * List of actions your plugin supports
53
+	 */
54 54
 	protected $actions = array();
55 55
 
56 56
 	/**
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
 	}
70 70
 
71 71
 	/**
72
-	* Choose fields to export
73
-	*/
72
+	 * Choose fields to export
73
+	 */
74 74
 	function wizard_step30(&$content, &$sel_options, &$readonlys, &$preserv)
75 75
 	{
76 76
 		if($this->debug) error_log(get_class($this) . '::wizard_step30->$content '.print_r($content,true));
@@ -206,16 +206,16 @@  discard block
 block discarded – undo
206 206
 			);
207 207
 			$sel_options['charset'] = Api\Translation::get_installed_charsets()+
208 208
 			array(
209
-                                'user'  => lang('User preference'),
210
-                        );
209
+								'user'  => lang('User preference'),
210
+						);
211 211
 
212
-                        // Add in extra allowed charsets
213
-                        $config = Api\Config::read('importexport');
214
-                        $extra_charsets = array_intersect(explode(',',$config['import_charsets']), mb_list_encodings());
215
-                        if($extra_charsets)
216
-                        {
217
-                                $sel_options['charset'] += array(lang('Extra encodings') => array_combine($extra_charsets,$extra_charsets));
218
-                        }
212
+						// Add in extra allowed charsets
213
+						$config = Api\Config::read('importexport');
214
+						$extra_charsets = array_intersect(explode(',',$config['import_charsets']), mb_list_encodings());
215
+						if($extra_charsets)
216
+						{
217
+								$sel_options['charset'] += array(lang('Extra encodings') => array_combine($extra_charsets,$extra_charsets));
218
+						}
219 219
 			$sel_options['convert'] = array(
220 220
 				0	=> lang('Database values'),
221 221
 				1	=> lang('Human friendly values')
Please login to merge, or discard this patch.
importexport/inc/class.importexport_wizard_basic_import_csv.inc.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 	const TEMPLATE_MARKER = '-eTemplate-';
24 24
 
25 25
 	/**
26
-	* List of steps.  Key is the function, value is the translated title.
27
-	*/
26
+	 * List of steps.  Key is the function, value is the translated title.
27
+	 */
28 28
 	public $steps;
29 29
 
30 30
 	/**
31
-	* List of eTemplates to use for each step.  You can override this with your own etemplates steps.
32
-	*/
31
+	 * List of eTemplates to use for each step.  You can override this with your own etemplates steps.
32
+	 */
33 33
 	protected $step_templates = array(
34 34
 		'wizard_step30' => 'importexport.wizard_basic_import_csv.sample_file',
35 35
 		'wizard_step40' => 'importexport.wizard_basic_import_csv.choosesepncharset',
@@ -39,19 +39,19 @@  discard block
 block discarded – undo
39 39
 		
40 40
 
41 41
 	/**
42
-	* Destination fields for the mapping
43
-	* Key is the field name, value is the human version
44
-	*/
42
+	 * Destination fields for the mapping
43
+	 * Key is the field name, value is the human version
44
+	 */
45 45
 	protected $mapping_fields = array();
46 46
 	
47 47
 	/**
48
-	* List of conditions your plugin supports
49
-	*/
48
+	 * List of conditions your plugin supports
49
+	 */
50 50
 	protected $conditions = array();
51 51
 
52 52
 	/**
53
-	* List of actions your plugin supports
54
-	*/
53
+	 * List of actions your plugin supports
54
+	 */
55 55
 	protected $actions = array();
56 56
 
57 57
 	/**
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
 	}
69 69
 
70 70
 	/**
71
-	* Take a sample CSV file.  It will be processed in later steps
72
-	*/
71
+	 * Take a sample CSV file.  It will be processed in later steps
72
+	 */
73 73
 	function wizard_step30(&$content, &$sel_options, &$readonlys, &$preserv)
74 74
 	{
75 75
 		if($this->debug) error_log(get_class($this) . '::wizard_step30->$content '.print_r($content,true));
@@ -263,11 +263,11 @@  discard block
 block discarded – undo
263 263
 	}
264 264
 	
265 265
 	/**
266
-	* Process the sample file, get the fields out of it, then allow them to be mapped onto
267
-	* the fields the destination understands.  Also, set any translations to be done to the field.
268
-	*
269
-	* You can use the eTemplate
270
-	*/
266
+	 * Process the sample file, get the fields out of it, then allow them to be mapped onto
267
+	 * the fields the destination understands.  Also, set any translations to be done to the field.
268
+	 *
269
+	 * You can use the eTemplate
270
+	 */
271 271
 	function wizard_step50(&$content, &$sel_options, &$readonlys, &$preserv)
272 272
 	{
273 273
 		if($this->debug) error_log(get_class($this) . '::wizard_step50->$content '.print_r($content,true));
@@ -348,8 +348,8 @@  discard block
 block discarded – undo
348 348
 	}
349 349
 	
350 350
 	/**
351
-	* Edit conditions
352
-	*/
351
+	 * Edit conditions
352
+	 */
353 353
 	function wizard_step55(&$content, &$sel_options, &$readonlys, &$preserv)
354 354
 	{
355 355
 		if($this->debug) error_log(get_class($this) . '::wizard_step55->$content '.print_r($content,true));
Please login to merge, or discard this patch.