Completed
Push — 16.1 ( 7ccc73...046888 )
by Nathan
64:46 queued 51:15
created
timesheet/inc/class.timesheet_merge.inc.php 2 patches
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -70,23 +70,23 @@  discard block
 block discarded – undo
70 70
 	 * @param string &$content=null content to create some replacements only if they are use
71 71
 	 * @return array|boolean
72 72
 	 */
73
-	protected function get_replacements($id,&$content=null)
73
+	protected function get_replacements($id, &$content = null)
74 74
 	{
75 75
 		if (!($replacements = $this->timesheet_replacements($id, '', $content)))
76 76
 		{
77 77
 			return false;
78 78
 		}
79
-		if (!(strpos($content,'$$ts_project/') === false))
79
+		if (!(strpos($content, '$$ts_project/') === false))
80 80
 		{
81 81
 			// Check to see if it's actually a project, then load
82
-			if($replacements['$$pm_id$$'])
82
+			if ($replacements['$$pm_id$$'])
83 83
 			{
84
-				if(!$this->pm)
84
+				if (!$this->pm)
85 85
 				{
86 86
 					$this->pm = new projectmanager_merge();
87 87
 				}
88 88
 				$this->pm->projectmanager_bo = new projectmanager_bo($replacements['$$pm_id$$']);
89
-				$replacements += $this->pm->projectmanager_replacements($replacements['$$pm_id$$'],'ts_project');
89
+				$replacements += $this->pm->projectmanager_replacements($replacements['$$pm_id$$'], 'ts_project');
90 90
 			}
91 91
 		}
92 92
 		return $replacements;
@@ -99,14 +99,14 @@  discard block
 block discarded – undo
99 99
 	 * @param string $prefix='' prefix like eg. 'erole'
100 100
 	 * @return array|boolean
101 101
 	 */
102
-	public function timesheet_replacements($id,$prefix='', &$content = null)
102
+	public function timesheet_replacements($id, $prefix = '', &$content = null)
103 103
 	{
104 104
 		$record = new timesheet_egw_record($id);
105 105
 		$info = array();
106 106
 
107 107
 		// Get project manager ID
108
-		$links = Link\Storage::get_links('timesheet',$id,'projectmanager');
109
-		if($links)
108
+		$links = Link\Storage::get_links('timesheet', $id, 'projectmanager');
109
+		if ($links)
110 110
 		{
111 111
 			$record->pm_id = current($links);
112 112
 		}
@@ -114,15 +114,15 @@  discard block
 block discarded – undo
114 114
 		// Convert to human friendly values
115 115
 		$types = timesheet_egw_record::$types;
116 116
 		$_selects = array('status' => $this->bo->status_labels);
117
-		foreach($_selects['status'] as &$status)
117
+		foreach ($_selects['status'] as &$status)
118 118
 		{
119 119
 			$status = str_replace(' ', '', $status);
120 120
 		}
121
-		foreach($_selects as $name => $value)
121
+		foreach ($_selects as $name => $value)
122 122
 		{
123 123
 			$selects['ts_'.$name] = $value;
124 124
 		}
125
-		if($content && strpos($content, '#') !== 0)
125
+		if ($content && strpos($content, '#') !== 0)
126 126
 		{
127 127
 			$this->cf_link_to_expand($record->get_record_array(), $content, $info);
128 128
 		}
@@ -131,25 +131,25 @@  discard block
 block discarded – undo
131 131
 
132 132
 		$array = $record->get_record_array();
133 133
 		$array['ts_total'] = $array['ts_quantity'] * $array['ts_unitprice'];
134
-		foreach(array('ts_duration','ts_quantity','ts_unitprice','ts_total') as $key)
134
+		foreach (array('ts_duration', 'ts_quantity', 'ts_unitprice', 'ts_total') as $key)
135 135
 		{
136
-			$array[$key] = self::number_format($array[$key],2,$this->mimetype);
136
+			$array[$key] = self::number_format($array[$key], 2, $this->mimetype);
137 137
 		}
138 138
 
139 139
 		// Set any missing custom fields, or the marker will stay
140
-		foreach(array_keys($this->bo->customfields) as $name)
140
+		foreach (array_keys($this->bo->customfields) as $name)
141 141
 		{
142
-			if(!$array['#'.$name]) $array['#'.$name] = '';
142
+			if (!$array['#'.$name]) $array['#'.$name] = '';
143 143
 		}
144 144
 
145 145
 		// Links
146 146
 		$array += $this->get_all_links('timesheet', $id, $prefix, $content);
147 147
 
148 148
 		// Add markers
149
-		foreach($array as $key => &$value)
149
+		foreach ($array as $key => &$value)
150 150
 		{
151
-			if(!$value) $value = '';
152
-			$info['$$'.($prefix ? $prefix.'/':'').$key.'$$'] = $value;
151
+			if (!$value) $value = '';
152
+			$info['$$'.($prefix ? $prefix.'/' : '').$key.'$$'] = $value;
153 153
 		}
154 154
 		return $info;
155 155
 	}
@@ -169,11 +169,11 @@  discard block
 block discarded – undo
169 169
 
170 170
 		$n = 0;
171 171
 		$fields = array('ts_id' => lang('Timesheet ID')) + $this->bo->field2label + array('ts_total' => lang('total'));
172
-		foreach($fields as $name => $label)
172
+		foreach ($fields as $name => $label)
173 173
 		{
174
-			if (in_array($name,array('pl_id','customfields'))) continue;	// dont show them
174
+			if (in_array($name, array('pl_id', 'customfields'))) continue; // dont show them
175 175
 
176
-			if (in_array($name,array('ts_title', 'ts_description')) && $n&1)		// main values, which should be in the first column
176
+			if (in_array($name, array('ts_title', 'ts_description')) && $n&1)		// main values, which should be in the first column
177 177
 			{
178 178
 				echo "</tr>\n";
179 179
 				$n++;
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 		}
186 186
 
187 187
 		echo '<tr><td colspan="4"><h3>'.lang('Custom fields').":</h3></td></tr>";
188
-		foreach($this->bo->customfields as $name => $field)
188
+		foreach ($this->bo->customfields as $name => $field)
189 189
 		{
190 190
 			echo '<tr><td>{{#'.$name.'}}</td><td colspan="3">'.$field['label']."</td></tr>\n";
191 191
 		}
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 		echo '<tr><td colspan="4"><h3>'.lang('Project fields').':</h3></td></tr>';
194 194
 		$pm_merge = new projectmanager_merge();
195 195
 		$i = 0;
196
-		foreach($pm_merge->projectmanager_fields as $name => $label)
196
+		foreach ($pm_merge->projectmanager_fields as $name => $label)
197 197
 		{
198 198
 			if (!($i&1)) echo '<tr>';
199 199
 			echo '<td>{{ts_project/'.$name.'}}</td><td>'.$label.'</td>';
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 		}
203 203
 
204 204
 		echo '<tr><td colspan="4"><h3>'.lang('General fields:')."</h3></td></tr>";
205
-		foreach(array(
205
+		foreach (array(
206 206
 			'link' => lang('HTML link to the current record'),
207 207
 			'links' => lang('Titles of any entries linked to the current record, excluding attached files'),
208 208
  			'attachments' => lang('List of files linked to the current record'),
Please login to merge, or discard this patch.
Braces   +33 added lines, -8 removed lines patch added patch discarded remove patch
@@ -139,7 +139,10 @@  discard block
 block discarded – undo
139 139
 		// Set any missing custom fields, or the marker will stay
140 140
 		foreach(array_keys($this->bo->customfields) as $name)
141 141
 		{
142
-			if(!$array['#'.$name]) $array['#'.$name] = '';
142
+			if(!$array['#'.$name])
143
+			{
144
+				$array['#'.$name] = '';
145
+			}
143 146
 		}
144 147
 
145 148
 		// Links
@@ -148,7 +151,10 @@  discard block
 block discarded – undo
148 151
 		// Add markers
149 152
 		foreach($array as $key => &$value)
150 153
 		{
151
-			if(!$value) $value = '';
154
+			if(!$value)
155
+			{
156
+				$value = '';
157
+			}
152 158
 			$info['$$'.($prefix ? $prefix.'/':'').$key.'$$'] = $value;
153 159
 		}
154 160
 		return $info;
@@ -171,16 +177,29 @@  discard block
 block discarded – undo
171 177
 		$fields = array('ts_id' => lang('Timesheet ID')) + $this->bo->field2label + array('ts_total' => lang('total'));
172 178
 		foreach($fields as $name => $label)
173 179
 		{
174
-			if (in_array($name,array('pl_id','customfields'))) continue;	// dont show them
180
+			if (in_array($name,array('pl_id','customfields')))
181
+			{
182
+				continue;
183
+			}
184
+			// dont show them
175 185
 
176
-			if (in_array($name,array('ts_title', 'ts_description')) && $n&1)		// main values, which should be in the first column
186
+			if (in_array($name,array('ts_title', 'ts_description')) && $n&1)
187
+			{
188
+				// main values, which should be in the first column
177 189
 			{
178 190
 				echo "</tr>\n";
191
+			}
179 192
 				$n++;
180 193
 			}
181
-			if (!($n&1)) echo '<tr>';
194
+			if (!($n&1))
195
+			{
196
+				echo '<tr>';
197
+			}
182 198
 			echo '<td>{{'.$name.'}}</td><td>'.lang($label).'</td>';
183
-			if ($n&1) echo "</tr>\n";
199
+			if ($n&1)
200
+			{
201
+				echo "</tr>\n";
202
+			}
184 203
 			$n++;
185 204
 		}
186 205
 
@@ -195,9 +214,15 @@  discard block
 block discarded – undo
195 214
 		$i = 0;
196 215
 		foreach($pm_merge->projectmanager_fields as $name => $label)
197 216
 		{
198
-			if (!($i&1)) echo '<tr>';
217
+			if (!($i&1))
218
+			{
219
+				echo '<tr>';
220
+			}
199 221
 			echo '<td>{{ts_project/'.$name.'}}</td><td>'.$label.'</td>';
200
-			if ($i&1) echo "</tr>\n";
222
+			if ($i&1)
223
+			{
224
+				echo "</tr>\n";
225
+			}
201 226
 			$i++;
202 227
 		}
203 228
 
Please login to merge, or discard this patch.
timesheet/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 {
29 29
 	Framework::render('<p style="text-align: center; color:red; font-weight: bold;">'.
30 30
 		lang('Your database is NOT up to date (%1 vs. %2), please run %3setup%4 to update your database.',
31
-		$ts_version,$GLOBALS['egw_info']['apps'][TIMESHEET_APP]['version'],
32
-		'<a href="../setup/">','</a>')."</p>\n", null, true);
31
+		$ts_version, $GLOBALS['egw_info']['apps'][TIMESHEET_APP]['version'],
32
+		'<a href="../setup/">', '</a>')."</p>\n", null, true);
33 33
 	exit();
34 34
 }
35 35
 
36
-Framework::redirect_link('/index.php',array('menuaction'=>TIMESHEET_APP.'.timesheet_ui.index'));
36
+Framework::redirect_link('/index.php', array('menuaction'=>TIMESHEET_APP.'.timesheet_ui.index'));
Please login to merge, or discard this patch.
notifications/download.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	)
21 21
 );
22 22
 
23
-ini_set('zlib.output_compression',0);
23
+ini_set('zlib.output_compression', 0);
24 24
 include('../header.inc.php');
25 25
 
26 26
 ob_start();
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 check_load_extension('zip', true);
29 29
 
30 30
 $document = EGW_SERVER_ROOT.'/notifications/java/full-eGwNotifier.jar';
31
-$archive = tempnam($GLOBALS['egw_info']['server']['temp_dir'], basename($document,'.jar').'-').'.jar';
32
-$ret=copy($document, $archive);
31
+$archive = tempnam($GLOBALS['egw_info']['server']['temp_dir'], basename($document, '.jar').'-').'.jar';
32
+$ret = copy($document, $archive);
33 33
 error_log("copy('$document', '$archive' returned ".array2string($ret));
34 34
 $document = 'zip://'.$archive.'#'.($config_file = 'lib/conf/egwnotifier.const.xml');
35 35
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 function replace_callback($matches)
40 40
 {
41 41
 	$replacement = $matches[3];
42
-	switch($matches[1])
42
+	switch ($matches[1])
43 43
 	{
44 44
 		case 'egw_dc_url':
45 45
 			$replacement = $GLOBALS['egw_info']['server']['webserver_url'];
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		case 'egw_debuging_level':
61 61
 			break;
62 62
 		default:
63
-			$replacement = lang($r=$replacement);
63
+			$replacement = lang($r = $replacement);
64 64
 			/* uncomment this to have missing translations add to en langfile
65 65
 			// if no translation found, check if en langfile is writable and add phrase, if not already there
66 66
 			if ($r === $replacement)
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
 	if (is_string($htmlscflags))
91 91
 	{
92
-		$htmlscflags = 16;	// #define ENT_XML1		16
92
+		$htmlscflags = 16; // #define ENT_XML1		16
93 93
 	}
94 94
 
95 95
 	return '<'.$matches[1].'>'.htmlspecialchars($replacement, $htmlscflags, Api\Translation::charset()).'</'.$matches[1].'>';
@@ -118,6 +118,6 @@  discard block
 block discarded – undo
118 118
 ob_end_clean();
119 119
 
120 120
 Api\Header\Content::type('egroupware-notifier-'.$GLOBALS['egw_info']['user']['account_lid'].'.jar', 'application/x-java-archive', filesize($archive));
121
-readfile($archive,'rb');
121
+readfile($archive, 'rb');
122 122
 
123 123
 @unlink($archive);
Please login to merge, or discard this patch.
notifications/setup/setup.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 if (!defined('NOTIFICATION_APP'))
13 13
 {
14
-	define('NOTIFICATION_APP','notifications');
14
+	define('NOTIFICATION_APP', 'notifications');
15 15
 }
16 16
 
17 17
 $setup_info[NOTIFICATION_APP]['name']      = NOTIFICATION_APP;
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 	'name'  => 'eGroupware coreteam',
26 26
 	'email' => '[email protected]'
27 27
 );
28
-$setup_info[NOTIFICATION_APP]['license']  = 'GPL';
28
+$setup_info[NOTIFICATION_APP]['license'] = 'GPL';
29 29
 $setup_info[NOTIFICATION_APP]['description'] =
30 30
 'Instant notification of users via various channels.';
31 31
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,5 +38,5 @@
 block discarded – undo
38 38
 /* Dependencies for this app to work */
39 39
 $setup_info[NOTIFICATION_APP]['depends'][] = array(
40 40
 	 'appname' => 'api',
41
-	 'versions' => Array('16.1')
41
+	 'versions' => array('16.1')
42 42
 );
Please login to merge, or discard this patch.
notifications/setup/tables_current.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@
 block discarded – undo
12 12
 $phpgw_baseline = array(
13 13
 	'egw_notificationpopup' => array(
14 14
 		'fd' => array(
15
-			'notify_id' => array('type' => 'auto','nullable' => False,'comment' => 'primary key'),
16
-			'account_id' => array('type' => 'int','meta' => 'user','precision' => '20','nullable' => False,'comment' => 'user to notify'),
17
-			'notify_message' => array('type' => 'varchar','precision' => '16384','comment' => 'notification message'),
18
-			'notify_created' => array('type' => 'timestamp','meta' => 'timestamp','default' => 'current_timestamp','comment' => 'creation time of notification'),
19
-			'notify_type' => array('type' => 'ascii','precision' => '32','comment' => 'notification type')
15
+			'notify_id' => array('type' => 'auto', 'nullable' => False, 'comment' => 'primary key'),
16
+			'account_id' => array('type' => 'int', 'meta' => 'user', 'precision' => '20', 'nullable' => False, 'comment' => 'user to notify'),
17
+			'notify_message' => array('type' => 'varchar', 'precision' => '16384', 'comment' => 'notification message'),
18
+			'notify_created' => array('type' => 'timestamp', 'meta' => 'timestamp', 'default' => 'current_timestamp', 'comment' => 'creation time of notification'),
19
+			'notify_type' => array('type' => 'ascii', 'precision' => '32', 'comment' => 'notification type')
20 20
 		),
21 21
 		'pk' => array('notify_id'),
22 22
 		'fk' => array(),
23
-		'ix' => array('account_id','notify_created'),
23
+		'ix' => array('account_id', 'notify_created'),
24 24
 		'uc' => array()
25 25
 	)
26 26
 );
Please login to merge, or discard this patch.
notifications/setup/tables_update.inc.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 function notifications_upgrade0_5()
14 14
 {
15
-	$GLOBALS['egw_setup']->oProc->AlterColumn('egw_notificationpopup','account_id',array(
15
+	$GLOBALS['egw_setup']->oProc->AlterColumn('egw_notificationpopup', 'account_id', array(
16 16
 		'type' => 'int',
17 17
 		'precision' => '20',
18 18
 		'nullable' => False
@@ -41,16 +41,16 @@  discard block
 block discarded – undo
41 41
 
42 42
 function notifications_upgrade1_8()
43 43
 {
44
-	$GLOBALS['egw_setup']->oProc->DropColumn('egw_notificationpopup',array(
44
+	$GLOBALS['egw_setup']->oProc->DropColumn('egw_notificationpopup', array(
45 45
 		'fd' => array(
46
-			'account_id' => array('type' => 'int','precision' => '20','nullable' => False),
46
+			'account_id' => array('type' => 'int', 'precision' => '20', 'nullable' => False),
47 47
 			'message' => array('type' => 'longtext')
48 48
 		),
49 49
 		'pk' => array(),
50 50
 		'fk' => array(),
51 51
 		'ix' => array('account_id'),
52 52
 		'uc' => array()
53
-	),'session_id');
53
+	), 'session_id');
54 54
 
55 55
 	return $GLOBALS['setup_info']['notifications']['currentver'] = '1.9.001';
56 56
 }
@@ -71,18 +71,18 @@  discard block
 block discarded – undo
71 71
  */
72 72
 function notifications_upgrade1_9_002()
73 73
 {
74
-	$GLOBALS['egw_setup']->oProc->RefreshTable('egw_notificationpopup',array(
74
+	$GLOBALS['egw_setup']->oProc->RefreshTable('egw_notificationpopup', array(
75 75
 		'fd' => array(
76
-			'notify_id' => array('type' => 'auto','nullable' => False,'comment' => 'primary key'),
77
-			'account_id' => array('type' => 'int','precision' => '20','nullable' => False,'comment' => 'user to notify'),
78
-			'notify_message' => array('type' => 'text','comment' => 'notification message'),
79
-			'notify_created' => array('type' => 'timestamp','default' => 'current_timestamp','comment' => 'creation time of notification')
76
+			'notify_id' => array('type' => 'auto', 'nullable' => False, 'comment' => 'primary key'),
77
+			'account_id' => array('type' => 'int', 'precision' => '20', 'nullable' => False, 'comment' => 'user to notify'),
78
+			'notify_message' => array('type' => 'text', 'comment' => 'notification message'),
79
+			'notify_created' => array('type' => 'timestamp', 'default' => 'current_timestamp', 'comment' => 'creation time of notification')
80 80
 		),
81 81
 		'pk' => array('notify_id'),
82 82
 		'fk' => array(),
83
-		'ix' => array('account_id','notify_created'),
83
+		'ix' => array('account_id', 'notify_created'),
84 84
 		'uc' => array()
85
-	),array(
85
+	), array(
86 86
 		'notify_message' => 'message',
87 87
 	));
88 88
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
 function notifications_upgrade1_9_003()
94 94
 {
95
-	$GLOBALS['egw_setup']->oProc->AddColumn('egw_notificationpopup','notify_type',array(
95
+	$GLOBALS['egw_setup']->oProc->AddColumn('egw_notificationpopup', 'notify_type', array(
96 96
 		'type' => 'varchar',
97 97
 		'precision' => '32',
98 98
 		'comment' => 'notification type'
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
 
110 110
 function notifications_upgrade14_1()
111 111
 {
112
-	$GLOBALS['egw_setup']->oProc->AlterColumn('egw_notificationpopup','notify_message',array(
112
+	$GLOBALS['egw_setup']->oProc->AlterColumn('egw_notificationpopup', 'notify_message', array(
113 113
 		'type' => 'varchar',
114 114
 		'precision' => '16384',
115 115
 		'comment' => 'notification message'
116 116
 	));
117
-	$GLOBALS['egw_setup']->oProc->AlterColumn('egw_notificationpopup','notify_type',array(
117
+	$GLOBALS['egw_setup']->oProc->AlterColumn('egw_notificationpopup', 'notify_type', array(
118 118
 		'type' => 'ascii',
119 119
 		'precision' => '32',
120 120
 		'comment' => 'notification type'
Please login to merge, or discard this patch.
notifications/inc/class.notifications_push.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
 	public static function get()
41 41
 	{
42
-		$already_send =& Api\Cache::getSession(__CLASS__, 'already_send');
42
+		$already_send = & Api\Cache::getSession(__CLASS__, 'already_send');
43 43
 		$max_id = Api\Cache::getInstance(__CLASS__, 'max_id');
44 44
 
45 45
 		if (!isset($already_send))
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		{
58 58
 			$response = Json\Response::get();
59 59
 
60
-			foreach(self::$db->select(self::TABLE, '*', array(
60
+			foreach (self::$db->select(self::TABLE, '*', array(
61 61
 				'account_id' => array(0, $GLOBALS['egw_info']['user']['account_id']),
62 62
 				'notify_type' => self::TYPE,
63 63
 				'notify_id > '.(int)$already_send,
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	 */
122 122
 	public static function init_static()
123 123
 	{
124
-		self::$db =& $GLOBALS['egw']->db;
124
+		self::$db = & $GLOBALS['egw']->db;
125 125
 	}
126 126
 }
127 127
 notifications_push::init_static();
Please login to merge, or discard this patch.
notifications/inc/class.notifications_jdesk_ajax.inc.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -133,11 +133,11 @@  discard block
 block discarded – undo
133 133
 	{
134 134
 		if ($notify_id)
135 135
 		{
136
-			$this->db->delete(self::_notification_table,array(
136
+			$this->db->delete(self::_notification_table, array(
137 137
 				'notify_id' => $notify_id,
138 138
 				'account_id' => $this->recipient->account_id,
139 139
 				'notify_type' => self::_type
140
-			),__LINE__,__FILE__,self::_appname);
140
+			), __LINE__, __FILE__, self::_appname);
141 141
 		}
142 142
 	}
143 143
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	 */
149 149
 	private function get_egwpopup($browserNotify = false)
150 150
 	{
151
-		unset($browserNotify);	// not used
151
+		unset($browserNotify); // not used
152 152
 
153 153
 		$message = '';
154 154
 
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
 				'account_id' => $this->recipient->account_id,
157 157
 				'notify_type' => self::_type
158 158
 			),
159
-			__LINE__,__FILE__,false,'',self::_appname);
159
+			__LINE__, __FILE__, false, '', self::_appname);
160 160
 
161
-		if( $rs->NumRows() > 0 )
161
+		if ($rs->NumRows() > 0)
162 162
 		{
163 163
 			foreach ($rs as $notification)
164 164
 			{
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 				$this->response->data($jmessage);
171 171
 			}
172 172
 
173
-			switch( $this->preferences[self::_appname]['egwpopup_verbosity'] )
173
+			switch ($this->preferences[self::_appname]['egwpopup_verbosity'])
174 174
 			{
175 175
 				case 'low':
176 176
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
 /**
15 15
  * jdesk Json methods for notifications
16 16
  */
17
-class notifications_jdesk_ajax {
17
+class notifications_jdesk_ajax
18
+{
18 19
 
19 20
 	public $public_functions = array(
20 21
 		'get_notification'	=> true
@@ -92,7 +93,9 @@  discard block
 block discarded – undo
92 93
 	 * destructor
93 94
 	 *
94 95
 	 */
95
-	public function __destruct() {}
96
+	public function __destruct()
97
+	{
98
+}
96 99
 
97 100
 	/**
98 101
 	 * public AJAX trigger function to be called by the JavaScript client
Please login to merge, or discard this patch.
notifications/inc/hook_admin.inc.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 use EGroupware\Api\Egw;
13 13
 
14
-$file = Array(	'Site Configuration' => Egw::link('/index.php', array(
14
+$file = Array('Site Configuration' => Egw::link('/index.php', array(
15 15
 	'menuaction'	=> 'admin.admin_config.index',
16 16
 	'appname'		=> $appname,
17 17
 	'ajax'          => 'true',
18 18
 )));
19
-display_section($appname,$file);
19
+display_section($appname, $file);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 use EGroupware\Api\Egw;
13 13
 
14
-$file = Array(	'Site Configuration' => Egw::link('/index.php', array(
14
+$file = array(	'Site Configuration' => Egw::link('/index.php', array(
15 15
 	'menuaction'	=> 'admin.admin_config.index',
16 16
 	'appname'		=> $appname,
17 17
 	'ajax'          => 'true',
Please login to merge, or discard this patch.