Passed
Push — development ( e7eb97...e615e2 )
by Spuds
01:30 queued 23s
created
sources/ElkArte/Controller/Karma.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 		// Delete any older items from the log so we can get the go ahead or not
114 114
 		clearKarma($modSettings['karmaWaitTime']);
115 115
   if (!empty($modSettings['karmaTimeRestrictAdmins']) || !allowedTo('moderate_forum')) {
116
-      return lastActionOn($this->user->id, $id_target);
116
+	  return lastActionOn($this->user->id, $id_target);
117 117
   }
118 118
 
119 119
 		return 0;
Please login to merge, or discard this patch.
sources/ElkArte/AdminController/ManageNews.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -263,8 +263,8 @@
 block discarded – undo
263 263
 
264 264
 		theme()->addJavascriptVar([
265 265
 			'last_preview' => 0,
266
-		    'txt_preview' => JavaScriptEscape($txt['preview']),
267
-		    'txt_news_error_no_news' => JavaScriptEscape($txt['news_error_no_news'])]);
266
+			'txt_preview' => JavaScriptEscape($txt['preview']),
267
+			'txt_news_error_no_news' => JavaScriptEscape($txt['news_error_no_news'])]);
268 268
 
269 269
 		// Create the request list.
270 270
 		createList($listOptions);
Please login to merge, or discard this patch.
sources/ElkArte/Cache/CacheMethod/Memcache.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
 	 *   - 'miss_rate': The rate of cache lookups that did not find a matching item per minute.
133 133
 	 *
134 134
 	 *  If the statistics cannot be obtained, an empty array is returned.
135
-     */
135
+	 */
136 136
 	public function getStats(): array
137 137
 	{
138 138
 		$results = [];
Please login to merge, or discard this patch.
sources/ElkArte/Cache/CacheMethod/Apc.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	 *     - 'miss_rate_user' : The user-defined miss rate, expressed as a percentage (rounded to two decimal places).
41 41
 	 *
42 42
 	 *  If the statistics cannot be obtained, an empty array is returned.
43
-     */
43
+	 */
44 44
 	public function getStats(): array
45 45
 	{
46 46
 		$results = [];
Please login to merge, or discard this patch.
sources/ElkArte/AdminController/CoreFeatures.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@
 block discarded – undo
363 363
 	 *
364 364
 	 * @param array $core_features An associative array representing the core features to be updated with integration data.
365 365
 	 * @return array The updated core features array containing additional details about the integrations.
366
-     */
366
+	 */
367 367
 	public function _getAddonIntegrationsConfig(array $core_features): array
368 368
 	{
369 369
 		// Find appropriately named core feature files in the Addons (\Addons) and below directory
Please login to merge, or discard this patch.
sources/ElkArte/Controller/Groups.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
 					],
145 145
 					'data' => [
146 146
 						'function' => static function ($rowData) use ($base_type, $base_params) {
147
-          // Since the moderator group has no explicit members, no link is needed.
148
-          if ($rowData['id_group'] == 3)
147
+		  // Since the moderator group has no explicit members, no link is needed.
148
+		  if ($rowData['id_group'] == 3)
149 149
    							{
150 150
    								$group_name = $rowData['group_name'];
151 151
    							}
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
    								$url = getUrl($base_type, array_merge($base_params, ['group' => $rowData['id_group']]));
155 155
    								$group_name = sprintf('<a href="%1$s">%2$s</a>', $url, $rowData['group_name_color']);
156 156
    							}
157
-          // Add a help option for moderator and administrator.
158
-          if ($rowData['id_group'] == 1)
157
+		  // Add a help option for moderator and administrator.
158
+		  if ($rowData['id_group'] == 1)
159 159
    							{
160 160
    								$group_name .= ' (<a href="' . getUrl('action', ['action' => 'quickhelp', 'help' => 'membergroup_administrator']) . '" onclick="return reqOverlayDiv(this.href);" class="helpicon i-help"></a>)';
161 161
    							}
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
    							{
164 164
    								$group_name .= ' (<a href="' . getUrl('action', ['action' => 'quickhelp', 'help' => 'membergroup_moderator']) . '" onclick="return reqOverlayDiv(this.href);" class="helpicon i-help"></a>)';
165 165
    							}
166
-          return $group_name;
167
-      },
166
+		  return $group_name;
167
+	  },
168 168
 					],
169 169
 					'sort' => [
170 170
 						'default' => 'CASE WHEN mg.id_group < 4 THEN mg.id_group ELSE 4 END, mg.group_name',
@@ -177,15 +177,15 @@  discard block
 block discarded – undo
177 177
 					],
178 178
 					'data' => [
179 179
 						'function' => static function ($rowData) {
180
-          global $settings;
181
-          if (empty($rowData['icons'][0])) {
182
-              return '';
183
-          }
184
-          if (empty($rowData['icons'][1])) {
185
-              return '';
186
-          }
187
-          return str_repeat('<img src="' . $settings['images_url'] . '/group_icons/' . $rowData['icons'][1] . '" alt="*" />', $rowData['icons'][0]);
188
-      },
180
+		  global $settings;
181
+		  if (empty($rowData['icons'][0])) {
182
+			  return '';
183
+		  }
184
+		  if (empty($rowData['icons'][1])) {
185
+			  return '';
186
+		  }
187
+		  return str_repeat('<img src="' . $settings['images_url'] . '/group_icons/' . $rowData['icons'][1] . '" alt="*" />', $rowData['icons'][0]);
188
+	  },
189 189
 					],
190 190
 					'sort' => [
191 191
 						'default' => 'mg.icons',
@@ -198,9 +198,9 @@  discard block
 block discarded – undo
198 198
 					],
199 199
 					'data' => [
200 200
 						'function' => static function ($group) {
201
-          global $txt;
202
-          return empty($group['moderators']) ? '<em>' . $txt['membergroups_new_copy_none'] . '</em>' : implode(', ', $group['moderators']);
203
-      },
201
+		  global $txt;
202
+		  return empty($group['moderators']) ? '<em>' . $txt['membergroups_new_copy_none'] . '</em>' : implode(', ', $group['moderators']);
203
+	  },
204 204
 					],
205 205
 				],
206 206
 				'members' => [
@@ -209,10 +209,10 @@  discard block
 block discarded – undo
209 209
 					],
210 210
 					'data' => [
211 211
 						'function' => static function ($rowData) {
212
-          global $txt;
213
-          // No explicit members for the moderator group.
214
-          return $rowData['id_group'] == 3 ? $txt['membergroups_guests_na'] : comma_format($rowData['num_members']);
215
-      },
212
+		  global $txt;
213
+		  // No explicit members for the moderator group.
214
+		  return $rowData['id_group'] == 3 ? $txt['membergroups_guests_na'] : comma_format($rowData['num_members']);
215
+	  },
216 216
 						'class' => 'centertext',
217 217
 					],
218 218
 					'sort' => [
@@ -294,10 +294,10 @@  discard block
 block discarded – undo
294 294
 				'name' => $name
295 295
 			];
296 296
    if ($this->user->id != $id_member) {
297
-       continue;
297
+	   continue;
298 298
    }
299 299
    if ($context['group']['group_type'] == 1) {
300
-       continue;
300
+	   continue;
301 301
    }
302 302
    $context['group']['can_moderate'] = true;
303 303
 		}
Please login to merge, or discard this patch.
sources/ElkArte/Controller/Likes.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
 
205 205
 		// An error if not possible to like.
206 206
 		if (!$this->_doLikePost('+', 'likemsg') && empty($this->_likes_response)) {
207
-      Txt::load('Errors');
208
-      $this->_likes_response = ['result' => false, 'data' => $txt['like_unlike_error']];
207
+	  Txt::load('Errors');
208
+	  $this->_likes_response = ['result' => false, 'data' => $txt['like_unlike_error']];
209 209
   }
210 210
 
211 211
 		$this->likeResponse();
@@ -253,8 +253,8 @@  discard block
 block discarded – undo
253 253
 
254 254
 		// An error if not possible to like.
255 255
 		if (!$this->_doLikePost('-', 'rlikemsg') && empty($this->_likes_response)) {
256
-      Txt::load('Errors');
257
-      $this->_likes_response = ['result' => false, 'data' => $txt['like_unlike_error']];
256
+	  Txt::load('Errors');
257
+	  $this->_likes_response = ['result' => false, 'data' => $txt['like_unlike_error']];
258 258
   }
259 259
 
260 260
 		$this->likeResponse();
@@ -382,9 +382,9 @@  discard block
 block discarded – undo
382 382
 					],
383 383
 					'data' => [
384 384
 						'function' => static function ($row) {
385
-          global $txt;
386
-          return '<a href="' . $row['who'] . '" title="' . $txt['likes_show_who'] . '"><i class="icon i-users"></i></a>';
387
-      },
385
+		  global $txt;
386
+		  return '<a href="' . $row['who'] . '" title="' . $txt['likes_show_who'] . '"><i class="icon i-users"></i></a>';
387
+	  },
388 388
 						'class' => 'centertext',
389 389
 						'style' => 'width: 10%',
390 390
 					],
@@ -515,9 +515,9 @@  discard block
 block discarded – undo
515 515
 					],
516 516
 					'data' => [
517 517
 						'function' => static function ($row) {
518
-          global $txt;
519
-          return '<a href="' . $row['delete'] . '" onclick="return confirm(\'' . $txt['likes_confirm_delete'] . '\');" title="' . $txt['likes_delete'] . '"><i class="icon i-delete"></i></a>';
520
-      },
518
+		  global $txt;
519
+		  return '<a href="' . $row['delete'] . '" onclick="return confirm(\'' . $txt['likes_confirm_delete'] . '\');" title="' . $txt['likes_delete'] . '"><i class="icon i-delete"></i></a>';
520
+	  },
521 521
 						'class' => 'centertext',
522 522
 						'style' => 'width: 10%',
523 523
 					],
Please login to merge, or discard this patch.
sources/subs/PersonalMessage.subs.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -118,10 +118,10 @@  discard block
 block discarded – undo
118 118
  */
119 119
 function getNewPMs($id_member, $timestamp)
120 120
 {
121
-    $db = database();
121
+	$db = database();
122 122
 
123
-    if (empty($timestamp))
124
-    {
123
+	if (empty($timestamp))
124
+	{
125 125
 		$result = $db->fetchQuery('
126 126
 			SELECT 
127 127
 				COUNT(*) AS c
@@ -135,10 +135,10 @@  discard block
 block discarded – undo
135 135
 				'is_unread' => 0,
136 136
 			]
137 137
 		)->fetch_assoc();
138
-    }
139
-    else
140
-    {
141
-	    $result = $db->fetchQuery('
138
+	}
139
+	else
140
+	{
141
+		$result = $db->fetchQuery('
142 142
 			SELECT
143 143
 				COUNT(*) AS c
144 144
 			FROM {db_prefix}pm_recipients AS pr
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
 				'is_unread' => 0,
154 154
 				'last_seen' => (int) $timestamp,
155 155
 			]
156
-	    )->fetch_assoc();
157
-    }
156
+		)->fetch_assoc();
157
+	}
158 158
 
159 159
 	return (int) $result['c'];
160 160
 }
Please login to merge, or discard this patch.
sources/ElkArte/UrlGenerator/Semantic/Profile.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	/**
29 29
 	 * {@inheritDoc}
30 30
 	 */
31
-    public function generate($params)
31
+	public function generate($params)
32 32
 	{
33 33
 		// Safely build a slug from the display name; guard against null
34 34
 		$name = isset($params['name']) && $params['name'] !== null ? (string) $params['name'] : '';
Please login to merge, or discard this patch.