Test Setup Failed
Push — master ( 12c298...4a14e0 )
by Ralf
22:03
created
setup/inc/class.setup.inc.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -151,10 +151,10 @@  discard block
 block discarded – undo
151 151
 	}
152 152
 
153 153
 	/**
154
-	* Set the domain used for cookies
155
-	*
156
-	* @return string domain
157
-	*/
154
+	 * Set the domain used for cookies
155
+	 *
156
+	 * @return string domain
157
+	 */
158 158
 	static function cookiedomain()
159 159
 	{
160 160
 		// Use HTTP_X_FORWARDED_HOST if set, which is the case behind a none-transparent proxy
@@ -175,12 +175,12 @@  discard block
 block discarded – undo
175 175
 	}
176 176
 
177 177
 	/**
178
-	* Set a cookie
179
-	*
180
-	* @param string $cookiename name of cookie to be set
181
-	* @param string $cookievalue value to be used, if unset cookie is cleared (optional)
182
-	* @param int $cookietime when cookie should expire, 0 for session only (optional)
183
-	*/
178
+	 * Set a cookie
179
+	 *
180
+	 * @param string $cookiename name of cookie to be set
181
+	 * @param string $cookievalue value to be used, if unset cookie is cleared (optional)
182
+	 * @param int $cookietime when cookie should expire, 0 for session only (optional)
183
+	 */
184 184
 	function set_cookie($cookiename,$cookievalue='',$cookietime=0)
185 185
 	{
186 186
 		if(!isset($this->cookie_domain))
@@ -344,19 +344,19 @@  discard block
 block discarded – undo
344 344
 		return true;
345 345
 	}
346 346
 
347
-    /**
348
-    * check if username and password is valid
349
-    *
350
-    * this function compares the supplied and stored username and password
351
-	* as any of the passwords can be clear text or md5 we convert them to md5
352
-	* internal and compare always the md5 hashs
353
-    *
354
-    * @param string $user the user supplied username
355
-    * @param string $pw the user supplied password
356
-    * @param string $conf_user the configured username
357
-    * @param string $hash hash to check password agains (no {prefix} for plain and md5!)
358
-    * @returns bool true on success
359
-    */
347
+	/**
348
+	 * check if username and password is valid
349
+	 *
350
+	 * this function compares the supplied and stored username and password
351
+	 * as any of the passwords can be clear text or md5 we convert them to md5
352
+	 * internal and compare always the md5 hashs
353
+	 *
354
+	 * @param string $user the user supplied username
355
+	 * @param string $pw the user supplied password
356
+	 * @param string $conf_user the configured username
357
+	 * @param string $hash hash to check password agains (no {prefix} for plain and md5!)
358
+	 * @returns bool true on success
359
+	 */
360 360
 	static function check_auth($user, $pw, $conf_user, $hash)
361 361
 	{
362 362
 		if ($user !== $conf_user)
@@ -728,10 +728,10 @@  discard block
 block discarded – undo
728 728
 	}
729 729
 
730 730
 	/**
731
-	  * call the hooks for a single application
732
-	  *
733
-	  * @param $location hook location - required
734
-	  * @param $appname application name - optional
731
+	 * call the hooks for a single application
732
+	 *
733
+	 * @param $location hook location - required
734
+	 * @param $appname application name - optional
735 735
 	 */
736 736
 	static function hook($location, $appname='')
737 737
 	{
Please login to merge, or discard this patch.
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_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.