Completed
Push — 16.1 ( 7ccc73...046888 )
by Nathan
64:46 queued 51:15
created
admin/inc/hook_config_validate.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 /*
16 16
   Set global flag to indicate for which config settings we have equally named validation methods
17 17
 */
18
-$GLOBALS['egw_info']['server']['found_validation_hook'] = array('vfs_image_dir','fw_mobile_app_list');
18
+$GLOBALS['egw_info']['server']['found_validation_hook'] = array('vfs_image_dir', 'fw_mobile_app_list');
19 19
 
20 20
 /**
21 21
  * Check VFS dir exists and delete image map to recreate it, if vfs-image-dir changes
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	{
30 30
 		if (!Vfs::file_exists($vfs_image_dir) || !Vfs::is_dir($vfs_image_dir))
31 31
 		{
32
-			$GLOBALS['config_error'] = lang('VFS directory "%1" NOT found!',$vfs_image_dir);
32
+			$GLOBALS['config_error'] = lang('VFS directory "%1" NOT found!', $vfs_image_dir);
33 33
 			return;
34 34
 		}
35 35
 	}
Please login to merge, or discard this patch.
admin/inc/class.admin_db_backup.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
  		if (($f = $this->db_backup->fopen_backup()))
29 29
  		{
30 30
 			$this->db_backup->backup($f);
31
-			if(is_resource($f))
31
+			if (is_resource($f))
32 32
 				fclose($f);
33 33
 			/* Remove old backups. */
34 34
 			$this->db_backup->housekeeping();
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	function index()
42 42
 	{
43 43
 		$tpl_root = EGW_SERVER_ROOT.'/setup/templates/default';
44
-		$self = $GLOBALS['egw']->link('/index.php',array('menuaction'=>'admin.admin_db_backup.index'));
44
+		$self = $GLOBALS['egw']->link('/index.php', array('menuaction'=>'admin.admin_db_backup.index'));
45 45
 		Api\Translation::add_app('setup');
46 46
 		Api\Header\ContentSecurityPolicy::add('script-src', 'unsafe-inline');
47 47
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,9 @@
 block discarded – undo
29 29
  		{
30 30
 			$this->db_backup->backup($f);
31 31
 			if(is_resource($f))
32
-				fclose($f);
32
+			{
33
+							fclose($f);
34
+			}
33 35
 			/* Remove old backups. */
34 36
 			$this->db_backup->housekeeping();
35 37
 		}
Please login to merge, or discard this patch.
admin/inc/class.admin_egw_user_record.inc.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
 	 *
36 36
 	 * @param string $_identifier
37 37
 	 */
38
-	public function __construct( $_identifier='' ) {
39
-		if(is_array($_identifier)) {
38
+	public function __construct($_identifier = '') {
39
+		if (is_array($_identifier)) {
40 40
 			$this->identifier = $_identifier['account_id'];
41 41
 		} else {
42 42
 			$this->identifier = $_identifier;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 * @todo add some checks
91 91
 	 * @return void
92 92
 	 */
93
-	public function set_record(array $_record){
93
+	public function set_record(array $_record) {
94 94
 		$this->user = $_record;
95 95
 		$this->account_groups = $GLOBALS['egw']->accounts->memberships($this->identifier, true);
96 96
 	}
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
 	 *
120 120
 	 * @return string identifier
121 121
 	 */
122
-	public function save ( $_dst_identifier ) {
123
-		unset($_dst_identifier);	// not used, but require by function signature
122
+	public function save($_dst_identifier) {
123
+		unset($_dst_identifier); // not used, but require by function signature
124 124
 	}
125 125
 
126 126
 	/**
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
 	 * @param string $_dst_identifier
130 130
 	 * @return string dst_identifier
131 131
 	 */
132
-	public function copy ( $_dst_identifier ) {
133
-		unset($_dst_identifier);	// not used, but require by function signature
132
+	public function copy($_dst_identifier) {
133
+		unset($_dst_identifier); // not used, but require by function signature
134 134
 	}
135 135
 
136 136
 	/**
@@ -140,15 +140,15 @@  discard block
 block discarded – undo
140 140
 	 * @param string $_dst_identifier
141 141
 	 * @return string dst_identifier
142 142
 	 */
143
-	public function move ( $_dst_identifier ) {
144
-		unset($_dst_identifier);	// not used, but require by function signature
143
+	public function move($_dst_identifier) {
144
+		unset($_dst_identifier); // not used, but require by function signature
145 145
 	}
146 146
 
147 147
 	/**
148 148
 	 * delets current record from backend
149 149
 	 *
150 150
 	 */
151
-	public function delete () {
151
+	public function delete() {
152 152
 
153 153
 	}
154 154
 
Please login to merge, or discard this patch.
Braces   +31 added lines, -15 removed lines patch added patch discarded remove patch
@@ -35,10 +35,14 @@  discard block
 block discarded – undo
35 35
 	 *
36 36
 	 * @param string $_identifier
37 37
 	 */
38
-	public function __construct( $_identifier='' ) {
39
-		if(is_array($_identifier)) {
38
+	public function __construct( $_identifier='' )
39
+	{
40
+		if(is_array($_identifier))
41
+		{
40 42
 			$this->identifier = $_identifier['account_id'];
41
-		} else {
43
+		}
44
+		else
45
+		{
42 46
 			$this->identifier = $_identifier;
43 47
 		}
44 48
 		$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
@@ -49,7 +53,8 @@  discard block
 block discarded – undo
49 53
 	 *
50 54
 	 * @param string $_attribute_name
51 55
 	 */
52
-	public function __get($_attribute_name) {
56
+	public function __get($_attribute_name)
57
+	{
53 58
 		return $this->user[$_attribute_name];
54 59
 	}
55 60
 
@@ -59,7 +64,8 @@  discard block
 block discarded – undo
59 64
 	 * @param string $_attribute_name
60 65
 	 * @param data $data
61 66
 	 */
62
-	public function __set($_attribute_name, $data) {
67
+	public function __set($_attribute_name, $data)
68
+	{
63 69
 		$this->user[$_attribute_name] = $data;
64 70
 	}
65 71
 
@@ -71,7 +77,8 @@  discard block
 block discarded – undo
71 77
 	 *
72 78
 	 * @return array complete record as associative array
73 79
 	 */
74
-	public function get_record_array() {
80
+	public function get_record_array()
81
+	{
75 82
 		return $this->user;
76 83
 	}
77 84
 
@@ -80,7 +87,8 @@  discard block
 block discarded – undo
80 87
 	 *
81 88
 	 *@return string title
82 89
 	 */
83
-	public function get_title() {
90
+	public function get_title()
91
+	{
84 92
 		return Api\Accounts::username($this->identifier);
85 93
 	}
86 94
 
@@ -90,7 +98,8 @@  discard block
 block discarded – undo
90 98
 	 * @todo add some checks
91 99
 	 * @return void
92 100
 	 */
93
-	public function set_record(array $_record){
101
+	public function set_record(array $_record)
102
+	{
94 103
 		$this->user = $_record;
95 104
 		$this->account_groups = $GLOBALS['egw']->accounts->memberships($this->identifier, true);
96 105
 	}
@@ -100,7 +109,8 @@  discard block
 block discarded – undo
100 109
 	 *
101 110
 	 * @return string identifier of current record
102 111
 	 */
103
-	public function get_identifier() {
112
+	public function get_identifier()
113
+	{
104 114
 		return $this->identifier;
105 115
 	}
106 116
 
@@ -110,7 +120,8 @@  discard block
 block discarded – undo
110 120
 	 *
111 121
 	 * @return string Full URL of an icon, or appname/icon_name
112 122
 	 */
113
-	public function get_icon() {
123
+	public function get_icon()
124
+	{
114 125
 		return 'user';
115 126
 	}
116 127
 
@@ -119,7 +130,8 @@  discard block
 block discarded – undo
119 130
 	 *
120 131
 	 * @return string identifier
121 132
 	 */
122
-	public function save ( $_dst_identifier ) {
133
+	public function save ( $_dst_identifier )
134
+	{
123 135
 		unset($_dst_identifier);	// not used, but require by function signature
124 136
 	}
125 137
 
@@ -129,7 +141,8 @@  discard block
 block discarded – undo
129 141
 	 * @param string $_dst_identifier
130 142
 	 * @return string dst_identifier
131 143
 	 */
132
-	public function copy ( $_dst_identifier ) {
144
+	public function copy ( $_dst_identifier )
145
+	{
133 146
 		unset($_dst_identifier);	// not used, but require by function signature
134 147
 	}
135 148
 
@@ -140,7 +153,8 @@  discard block
 block discarded – undo
140 153
 	 * @param string $_dst_identifier
141 154
 	 * @return string dst_identifier
142 155
 	 */
143
-	public function move ( $_dst_identifier ) {
156
+	public function move ( $_dst_identifier )
157
+	{
144 158
 		unset($_dst_identifier);	// not used, but require by function signature
145 159
 	}
146 160
 
@@ -148,7 +162,8 @@  discard block
 block discarded – undo
148 162
 	 * delets current record from backend
149 163
 	 *
150 164
 	 */
151
-	public function delete () {
165
+	public function delete ()
166
+	{
152 167
 
153 168
 	}
154 169
 
@@ -156,7 +171,8 @@  discard block
 block discarded – undo
156 171
 	 * destructor
157 172
 	 *
158 173
 	 */
159
-	public function __destruct() {
174
+	public function __destruct()
175
+	{
160 176
 		unset ($this->user);
161 177
 	}
162 178
 }
Please login to merge, or discard this patch.
admin/inc/class.admin_wizard_export_users_csv.inc.php 3 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -18,20 +18,20 @@
 block discarded – undo
18 18
 		parent::__construct();
19 19
 
20 20
 		// Field mapping
21
-                $this->export_fields = array(
21
+				$this->export_fields = array(
22 22
 			'account_id'		=> lang('Account ID'),
23
-                        'account_lid'		=> lang('LoginID'),
24
-                        'account_firstname'	=> lang('First Name'),
25
-                        'account_lastname'	=> lang('Last Name'),
26
-                        'account_email'		=> lang('email'),
27
-                        'account_pwd'		=> lang('Password'),
28
-                        'account_status'	=> lang('Status'),
29
-                        'account_primary_group'	=> lang('Primary Group'),
30
-                        'account_groups'	=> lang('Groups'),
31
-                        'account_expires'	=> lang('Expires'),
32
-                        'account_lastlogin'	=> lang('Last login'),
33
-                        'account_lastpwd_change'=> lang('Last password change'),
34
-                );
23
+						'account_lid'		=> lang('LoginID'),
24
+						'account_firstname'	=> lang('First Name'),
25
+						'account_lastname'	=> lang('Last Name'),
26
+						'account_email'		=> lang('email'),
27
+						'account_pwd'		=> lang('Password'),
28
+						'account_status'	=> lang('Status'),
29
+						'account_primary_group'	=> lang('Primary Group'),
30
+						'account_groups'	=> lang('Groups'),
31
+						'account_expires'	=> lang('Expires'),
32
+						'account_lastlogin'	=> lang('Last login'),
33
+						'account_lastpwd_change'=> lang('Last password change'),
34
+				);
35 35
 
36 36
 		// Custom fields - not really used in admin...
37 37
 		unset($this->export_fields['customfields']);
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
 
15 15
 class admin_wizard_export_users_csv extends importexport_wizard_basic_export_csv
16 16
 {
17
-	public function __construct() {
17
+	public function __construct()
18
+	{
18 19
 		parent::__construct();
19 20
 
20 21
 		// Field mapping
@@ -36,7 +37,8 @@  discard block
 block discarded – undo
36 37
 		// Custom fields - not really used in admin...
37 38
 		unset($this->export_fields['customfields']);
38 39
 		$custom = Api\Storage\Customfields::get('admin', true);
39
-		foreach($custom as $name => $data) {
40
+		foreach($custom as $name => $data)
41
+		{
40 42
 			$this->export_fields['#'.$name] = $data['label'];
41 43
 		}
42 44
 	}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 		// Custom fields - not really used in admin...
28 28
 		unset($this->export_fields['customfields']);
29 29
 		$custom = Api\Storage\Customfields::get('admin', true);
30
-		foreach($custom as $name => $data) {
30
+		foreach ($custom as $name => $data) {
31 31
 			$this->export_fields['#'.$name] = $data['label'];
32 32
 		}
33 33
 	}
Please login to merge, or discard this patch.
admin/inc/class.admin_egw_group_record.inc.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 	 *
35 35
 	 * @param string $_identifier
36 36
 	 */
37
-	public function __construct( $_identifier='' ) {
38
-		if(is_array($_identifier)) {
37
+	public function __construct($_identifier = '') {
38
+		if (is_array($_identifier)) {
39 39
 			$this->identifier = $_identifier['account_id'];
40 40
 		} else {
41 41
 			$this->identifier = $_identifier;
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
 	 * @todo add some checks
90 90
 	 * @return void
91 91
 	 */
92
-	public function set_record(array $_record){
92
+	public function set_record(array $_record) {
93 93
 		$this->group = $_record;
94
-		$this->group['account_members'] = $GLOBALS['egw']->accounts->members($this->group['account_id'],true);
94
+		$this->group['account_members'] = $GLOBALS['egw']->accounts->members($this->group['account_id'], true);
95 95
 	}
96 96
 
97 97
 	/**
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
 	 *
119 119
 	 * @return string identifier
120 120
 	 */
121
-	public function save ( $_dst_identifier ) {
122
-		unset($_dst_identifier);	// not used, but require by function signature
121
+	public function save($_dst_identifier) {
122
+		unset($_dst_identifier); // not used, but require by function signature
123 123
 	}
124 124
 
125 125
 	/**
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
 	 * @param string $_dst_identifier
129 129
 	 * @return string dst_identifier
130 130
 	 */
131
-	public function copy ( $_dst_identifier ) {
132
-		unset($_dst_identifier);	// not used, but require by function signature
131
+	public function copy($_dst_identifier) {
132
+		unset($_dst_identifier); // not used, but require by function signature
133 133
 	}
134 134
 
135 135
 	/**
@@ -139,15 +139,15 @@  discard block
 block discarded – undo
139 139
 	 * @param string $_dst_identifier
140 140
 	 * @return string dst_identifier
141 141
 	 */
142
-	public function move ( $_dst_identifier ) {
143
-		unset($_dst_identifier);	// not used, but require by function signature
142
+	public function move($_dst_identifier) {
143
+		unset($_dst_identifier); // not used, but require by function signature
144 144
 	}
145 145
 
146 146
 	/**
147 147
 	 * delets current record from backend
148 148
 	 *
149 149
 	 */
150
-	public function delete () {
150
+	public function delete() {
151 151
 
152 152
 	}
153 153
 
Please login to merge, or discard this patch.
Braces   +31 added lines, -15 removed lines patch added patch discarded remove patch
@@ -34,10 +34,14 @@  discard block
 block discarded – undo
34 34
 	 *
35 35
 	 * @param string $_identifier
36 36
 	 */
37
-	public function __construct( $_identifier='' ) {
38
-		if(is_array($_identifier)) {
37
+	public function __construct( $_identifier='' )
38
+	{
39
+		if(is_array($_identifier))
40
+		{
39 41
 			$this->identifier = $_identifier['account_id'];
40
-		} else {
42
+		}
43
+		else
44
+		{
41 45
 			$this->identifier = $_identifier;
42 46
 		}
43 47
 		$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
@@ -48,7 +52,8 @@  discard block
 block discarded – undo
48 52
 	 *
49 53
 	 * @param string $_attribute_name
50 54
 	 */
51
-	public function __get($_attribute_name) {
55
+	public function __get($_attribute_name)
56
+	{
52 57
 		return $this->group[$_attribute_name];
53 58
 	}
54 59
 
@@ -58,7 +63,8 @@  discard block
 block discarded – undo
58 63
 	 * @param string $_attribute_name
59 64
 	 * @param data $data
60 65
 	 */
61
-	public function __set($_attribute_name, $data) {
66
+	public function __set($_attribute_name, $data)
67
+	{
62 68
 		$this->group[$_attribute_name] = $data;
63 69
 	}
64 70
 
@@ -70,7 +76,8 @@  discard block
 block discarded – undo
70 76
 	 *
71 77
 	 * @return array complete record as associative array
72 78
 	 */
73
-	public function get_record_array() {
79
+	public function get_record_array()
80
+	{
74 81
 		return $this->group;
75 82
 	}
76 83
 
@@ -79,7 +86,8 @@  discard block
 block discarded – undo
79 86
 	 *
80 87
 	 *@return string title
81 88
 	 */
82
-	public function get_title() {
89
+	public function get_title()
90
+	{
83 91
 		return Api\Accounts::username($this->identifier);
84 92
 	}
85 93
 
@@ -89,7 +97,8 @@  discard block
 block discarded – undo
89 97
 	 * @todo add some checks
90 98
 	 * @return void
91 99
 	 */
92
-	public function set_record(array $_record){
100
+	public function set_record(array $_record)
101
+	{
93 102
 		$this->group = $_record;
94 103
 		$this->group['account_members'] = $GLOBALS['egw']->accounts->members($this->group['account_id'],true);
95 104
 	}
@@ -99,7 +108,8 @@  discard block
 block discarded – undo
99 108
 	 *
100 109
 	 * @return string identifier of current record
101 110
 	 */
102
-	public function get_identifier() {
111
+	public function get_identifier()
112
+	{
103 113
 		return $this->identifier;
104 114
 	}
105 115
 
@@ -109,7 +119,8 @@  discard block
 block discarded – undo
109 119
 	 *
110 120
 	 * @return string Full URL of an icon, or appname/icon_name
111 121
 	 */
112
-	public function get_icon() {
122
+	public function get_icon()
123
+	{
113 124
 		return 'group';
114 125
 	}
115 126
 
@@ -118,7 +129,8 @@  discard block
 block discarded – undo
118 129
 	 *
119 130
 	 * @return string identifier
120 131
 	 */
121
-	public function save ( $_dst_identifier ) {
132
+	public function save ( $_dst_identifier )
133
+	{
122 134
 		unset($_dst_identifier);	// not used, but require by function signature
123 135
 	}
124 136
 
@@ -128,7 +140,8 @@  discard block
 block discarded – undo
128 140
 	 * @param string $_dst_identifier
129 141
 	 * @return string dst_identifier
130 142
 	 */
131
-	public function copy ( $_dst_identifier ) {
143
+	public function copy ( $_dst_identifier )
144
+	{
132 145
 		unset($_dst_identifier);	// not used, but require by function signature
133 146
 	}
134 147
 
@@ -139,7 +152,8 @@  discard block
 block discarded – undo
139 152
 	 * @param string $_dst_identifier
140 153
 	 * @return string dst_identifier
141 154
 	 */
142
-	public function move ( $_dst_identifier ) {
155
+	public function move ( $_dst_identifier )
156
+	{
143 157
 		unset($_dst_identifier);	// not used, but require by function signature
144 158
 	}
145 159
 
@@ -147,7 +161,8 @@  discard block
 block discarded – undo
147 161
 	 * delets current record from backend
148 162
 	 *
149 163
 	 */
150
-	public function delete () {
164
+	public function delete ()
165
+	{
151 166
 
152 167
 	}
153 168
 
@@ -155,7 +170,8 @@  discard block
 block discarded – undo
155 170
 	 * destructor
156 171
 	 *
157 172
 	 */
158
-	public function __destruct() {
173
+	public function __destruct()
174
+	{
159 175
 		unset ($this->group);
160 176
 	}
161 177
 }
Please login to merge, or discard this patch.
admin/inc/class.admin_export_users_csv.inc.php 4 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
 	 *
22 22
 	 * @param egw_record $_definition
23 23
 	 */
24
-	public function export( $_stream, importexport_definition $_definition) {
24
+	public function export($_stream, importexport_definition $_definition) {
25 25
 		$options = $_definition->plugin_options;
26 26
 
27 27
 		$query = array(
28 28
 			'type'	=>	'accounts',
29 29
 		);
30
-		if($options['selection']['group_id']) {
30
+		if ($options['selection']['group_id']) {
31 31
 			$query['type'] = (int)$options['selection']['group_id'];
32 32
 		}
33 33
 		$selection = $GLOBALS['egw']->accounts->search($query);
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
 		// $_record is an array, that's what search() returns
44 44
 		foreach ($selection as $_record) {
45 45
 			$record = new admin_egw_user_record($_record);
46
-			if($options['convert']) {
46
+			if ($options['convert']) {
47 47
 				$never_expires = ($record->account_expires == -1);
48 48
 				importexport_export_csv::convert($record, admin_egw_user_record::$types, 'admin', $lookups);
49
-				if($never_expires) $record->account_expires = 'never';  // Has to be 'never' for admin_cmd_edit_user to parse it
49
+				if ($never_expires) $record->account_expires = 'never'; // Has to be 'never' for admin_cmd_edit_user to parse it
50 50
 			} else {
51 51
 				// Implode arrays, so they don't say 'Array'
52
-				foreach($record->get_record_array() as $key => $value) {
53
-					if(is_array($value)) $record->$key = implode(',', $value);
52
+				foreach ($record->get_record_array() as $key => $value) {
53
+					if (is_array($value)) $record->$key = implode(',', $value);
54 54
 				}
55 55
  			}
56 56
 			$export_object->export_record($record);
Please login to merge, or discard this patch.
Braces   +34 added lines, -14 removed lines patch added patch discarded remove patch
@@ -21,13 +21,15 @@  discard block
 block discarded – undo
21 21
 	 *
22 22
 	 * @param egw_record $_definition
23 23
 	 */
24
-	public function export( $_stream, importexport_definition $_definition) {
24
+	public function export( $_stream, importexport_definition $_definition)
25
+	{
25 26
 		$options = $_definition->plugin_options;
26 27
 
27 28
 		$query = array(
28 29
 			'type'	=>	'accounts',
29 30
 		);
30
-		if($options['selection']['group_id']) {
31
+		if($options['selection']['group_id'])
32
+		{
31 33
 			$query['type'] = (int)$options['selection']['group_id'];
32 34
 		}
33 35
 		$selection = $GLOBALS['egw']->accounts->search($query);
@@ -41,16 +43,28 @@  discard block
 block discarded – undo
41 43
 		);
42 44
 
43 45
 		// $_record is an array, that's what search() returns
44
-		foreach ($selection as $_record) {
46
+		foreach ($selection as $_record)
47
+		{
45 48
 			$record = new admin_egw_user_record($_record);
46
-			if($options['convert']) {
49
+			if($options['convert'])
50
+			{
47 51
 				$never_expires = ($record->account_expires == -1);
48 52
 				importexport_export_csv::convert($record, admin_egw_user_record::$types, 'admin', $lookups);
49
-				if($never_expires) $record->account_expires = 'never';  // Has to be 'never' for admin_cmd_edit_user to parse it
50
-			} else {
53
+				if($never_expires)
54
+				{
55
+					$record->account_expires = 'never';
56
+				}
57
+				// Has to be 'never' for admin_cmd_edit_user to parse it
58
+			}
59
+			else
60
+			{
51 61
 				// Implode arrays, so they don't say 'Array'
52
-				foreach($record->get_record_array() as $key => $value) {
53
-					if(is_array($value)) $record->$key = implode(',', $value);
62
+				foreach($record->get_record_array() as $key => $value)
63
+				{
64
+					if(is_array($value))
65
+					{
66
+						$record->$key = implode(',', $value);
67
+					}
54 68
 				}
55 69
  			}
56 70
 			$export_object->export_record($record);
@@ -63,7 +77,8 @@  discard block
 block discarded – undo
63 77
 	 *
64 78
 	 * @return string name
65 79
 	 */
66
-	public static function get_name() {
80
+	public static function get_name()
81
+	{
67 82
 		return lang('User CSV export');
68 83
 	}
69 84
 
@@ -72,7 +87,8 @@  discard block
 block discarded – undo
72 87
 	 *
73 88
 	 * @return string descriprion
74 89
 	 */
75
-	public static function get_description() {
90
+	public static function get_description()
91
+	{
76 92
 		return lang("Exports users into a CSV File. ");
77 93
 	}
78 94
 
@@ -81,11 +97,13 @@  discard block
 block discarded – undo
81 97
 	 *
82 98
 	 * @return string suffix
83 99
 	 */
84
-	public static function get_filesuffix() {
100
+	public static function get_filesuffix()
101
+	{
85 102
 		return 'csv';
86 103
 	}
87 104
 
88
-	public static function get_mimetype() {
105
+	public static function get_mimetype()
106
+	{
89 107
                 return 'text/csv';
90 108
         }
91 109
 
@@ -95,7 +113,8 @@  discard block
 block discarded – undo
95 113
 	 *
96 114
 	 * @return string html
97 115
 	 */
98
-	public function get_options_etpl() {
116
+	public function get_options_etpl()
117
+	{
99 118
 		return false;
100 119
 	}
101 120
 
@@ -103,7 +122,8 @@  discard block
 block discarded – undo
103 122
 	 * returns slectors of this plugin via xajax
104 123
 	 *
105 124
 	 */
106
-	public function get_selectors_etpl() {
125
+	public function get_selectors_etpl()
126
+	{
107 127
 		return array(
108 128
 			'name'	=> 'admin.export_users_csv_selectors',
109 129
 			'preserv' => array('no_error_for_all'),
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	/**
20 20
 	 * Exports records as defined in $_definition
21 21
 	 *
22
-	 * @param egw_record $_definition
22
+	 * @param importexport_definition $_definition
23 23
 	 */
24 24
 	public function export( $_stream, importexport_definition $_definition) {
25 25
 		$options = $_definition->plugin_options;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 * return html for options.
89 89
 	 * this way the plugin has all opportunities for options tab
90 90
 	 *
91
-	 * @return string html
91
+	 * @return boolean html
92 92
 	 */
93 93
 	public function get_options_etpl() {
94 94
 		return false;
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,8 @@
 block discarded – undo
81 81
 	}
82 82
 
83 83
 	public static function get_mimetype() {
84
-                return 'text/csv';
85
-        }
84
+				return 'text/csv';
85
+		}
86 86
 
87 87
 	/**
88 88
 	 * return html for options.
Please login to merge, or discard this patch.
admin/inc/class.admin_wizard_import_users_csv.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 	function wizard_step50(&$content, &$sel_options, &$readonlys, &$preserv)
60 60
 	{
61 61
 		$result = parent::wizard_step50($content, $sel_options, $readonlys, $preserv);
62
-		$content['msg'] .= "\n*" ;
62
+		$content['msg'] .= "\n*";
63 63
 		
64 64
 		return $result;
65 65
 	}
Please login to merge, or discard this patch.
admin/phpinfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 );
16 16
 include('../header.inc.php');
17 17
 
18
-if ($GLOBALS['egw']->acl->check('info_access',1,'admin'))
18
+if ($GLOBALS['egw']->acl->check('info_access', 1, 'admin'))
19 19
 {
20 20
 	$GLOBALS['egw']->redirect_link('/index.php');
21 21
 }
Please login to merge, or discard this patch.
logout.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,34 +28,34 @@
 block discarded – undo
28 28
 
29 29
 $verified = $GLOBALS['egw']->session->verify();
30 30
 
31
-if(!($redirectTarget = Api\Cache::getSession('login', 'referer')))
31
+if (!($redirectTarget = Api\Cache::getSession('login', 'referer')))
32 32
 {
33 33
 	$redirectTarget = $GLOBALS['egw_info']['server']['webserver_url'].'/login.php?cd=1&domain='.$GLOBALS['egw_info']['user']['domain'];
34 34
 }
35
-elseif(strpos($redirectTarget, '[?&]cd=') !== false)
35
+elseif (strpos($redirectTarget, '[?&]cd=') !== false)
36 36
 {
37 37
 	$redirectTarget = preg_replace('/([?&])cd=[^&]+/', '$1cd=1', $redirectTarget);
38 38
 }
39 39
 
40
-if($verified)
40
+if ($verified)
41 41
 {
42 42
 	Api\Hooks::process('logout');
43
-	$GLOBALS['egw']->session->destroy($GLOBALS['sessionid'],$GLOBALS['kp3']);
43
+	$GLOBALS['egw']->session->destroy($GLOBALS['sessionid'], $GLOBALS['kp3']);
44 44
 }
45 45
 
46
-Api\Session::egw_setcookie('eGW_remember','',0,'/');
46
+Api\Session::egw_setcookie('eGW_remember', '', 0, '/');
47 47
 Api\Session::egw_setcookie('sessionid');
48 48
 Api\Session::egw_setcookie('kp3');
49 49
 Api\Session::egw_setcookie('domain');
50 50
 
51
-if($GLOBALS['egw_info']['server']['auth_type'] == 'cas')
51
+if ($GLOBALS['egw_info']['server']['auth_type'] == 'cas')
52 52
 {
53 53
 	require_once('CAS/CAS.php');
54 54
 
55 55
 	phpCAS::client(CAS_VERSION_2_0,
56 56
 								$GLOBALS['egw_info']['server']['cas_server_host_name'],
57
-								(int) $GLOBALS['egw_info']['server']['cas_server_port'],
58
-								$GLOBALS['egw_info']['server']['cas_server_uri'] );
57
+								(int)$GLOBALS['egw_info']['server']['cas_server_port'],
58
+								$GLOBALS['egw_info']['server']['cas_server_uri']);
59 59
 	phpCAS::logout(array('url'=>$GLOBALS['egw_info']['server']['webserver_url'].'/login.php?cd=1&domain='.$GLOBALS['egw_info']['user']['domain']));
60 60
 }
61 61
 
Please login to merge, or discard this patch.