Completed
Push — openstreetmap ( 06e980...b3792a )
by Greg
09:33
created
app/Http/Controllers/AdminMediaController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 					"  OR   descriptive_title LIKE CONCAT('%', :search_2, '%'))" .
153 153
 					" AND   multimedia_file_refn NOT LIKE 'http://%'" .
154 154
 					" AND   multimedia_file_refn NOT LIKE 'https://%'";
155
-				$ARGS1   = [
155
+				$ARGS1 = [
156 156
 					'media_path_1' => $media_path,
157 157
 					'media_folder' => $media_folder,
158 158
 					'media_path_2' => Database::escapeLike($media_path),
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 					" AND   multimedia_file_refn LIKE CONCAT(:media_path_3, '%')" .
170 170
 					" AND   multimedia_file_refn NOT LIKE 'http://%'" .
171 171
 					" AND   multimedia_file_refn NOT LIKE 'https://%'";
172
-				$ARGS2   = [
172
+				$ARGS2 = [
173 173
 					'media_folder' => $media_folder,
174 174
 					'media_path_3' => $media_path,
175 175
 				];
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 					$ARGS2['media_path_4'] = Database::escapeLike($media_path);
182 182
 				}
183 183
 
184
-				$order   = $request->get('order', []);
184
+				$order = $request->get('order', []);
185 185
 				$SELECT1 .= " ORDER BY ";
186 186
 				if ($order) {
187 187
 					foreach ($order as $key => $value) {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 				}
206 206
 
207 207
 				if ($length > 0) {
208
-					$SELECT1         .= " LIMIT :length OFFSET :start";
208
+					$SELECT1 .= " LIMIT :length OFFSET :start";
209 209
 					$ARGS1['length'] = $length;
210 210
 					$ARGS1['start']  = $start;
211 211
 				}
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 					" JOIN  `##media_file` USING (m_id, m_file)" .
239 239
 					" WHERE (multimedia_file_refn LIKE 'http://%' OR multimedia_file_refn LIKE 'https://%')" .
240 240
 					" AND   (multimedia_file_refn LIKE CONCAT('%', :search_1, '%') OR descriptive_title LIKE CONCAT('%', :search_2, '%'))";
241
-				$ARGS1   = [
241
+				$ARGS1 = [
242 242
 					'search_1' => Database::escapeLike($search),
243 243
 					'search_2' => Database::escapeLike($search),
244 244
 				];
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 				}
275 275
 
276 276
 				if ($length > 0) {
277
-					$SELECT1         .= " LIMIT :length OFFSET :start";
277
+					$SELECT1 .= " LIMIT :length OFFSET :start";
278 278
 					$ARGS1['length'] = $length;
279 279
 					$ARGS1['start']  = $start;
280 280
 				}
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
 
194 194
 		// Username already exists
195 195
 		if (User::findByUserName($username) !== null) {
196
-			throw new Exception(I18N::translate('Duplicate username. A user with that username already exists. Please choose another username.'.$username));
196
+			throw new Exception(I18N::translate('Duplicate username. A user with that username already exists. Please choose another username.' . $username));
197 197
 		}
198 198
 
199 199
 		// Email already exists
Please login to merge, or discard this patch.
app/Http/Controllers/AdminTreesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -975,8 +975,8 @@
 block discarded – undo
975 975
 		// For backwards compatibility with webtrees 1.x we store the two calendar formats in one variable
976 976
 		// e.g. "gregorian_and_jewish"
977 977
 		$tree->setPreference('CALENDAR_FORMAT', implode('_and_', array_unique([
978
-			$request->get('CALENDAR_FORMAT0',  'none'),
979
-			$request->get('CALENDAR_FORMAT1',  'none'),
978
+			$request->get('CALENDAR_FORMAT0', 'none'),
979
+			$request->get('CALENDAR_FORMAT1', 'none'),
980 980
 		])));
981 981
 		$tree->setPreference('CHART_BOX_TAGS', implode(',', $request->get('CHART_BOX_TAGS', [])));
982 982
 		$tree->setPreference('CONTACT_USER_ID', $request->get('CONTACT_USER_ID'));
Please login to merge, or discard this patch.
resources/views/admin/trees-import.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 							<select name="tree_name" class="form-control" id="import-server-file">
47 47
 								<option value=""></option>
48 48
 								<?php foreach ($gedcom_files as $gedcom_file): ?>
49
-									<option value="<?= e($gedcom_file) ?>" <?= $gedcom_file === $default_gedcom_file? 'selected' : '' ?>>
49
+									<option value="<?= e($gedcom_file) ?>" <?= $gedcom_file === $default_gedcom_file ? 'selected' : '' ?>>
50 50
 										<?= e($gedcom_file) ?>
51 51
 									</option>
52 52
 								<?php endforeach ?>
Please login to merge, or discard this patch.
app/Report/ReportParserGenerate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1604,7 +1604,7 @@
 block discarded – undo
1604 1604
 			$height = (int) $attrs['height'];
1605 1605
 		}
1606 1606
 
1607
-		$person      = Individual::getInstance($id, $this->tree);
1607
+		$person = Individual::getInstance($id, $this->tree);
1608 1608
 		$media_file = $person->findHighlightedMediaFile();
1609 1609
 
1610 1610
 		if ($media_file !== null && $media_file->fileExists()) {
Please login to merge, or discard this patch.
app/Module/OpenStreetMap/Schema/Migration3.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 			" DROP COLUMN sv_long," .
37 37
 			" DROP COLUMN sv_lati," .
38 38
 			" DROP COLUMN sv_bearing," .
39
-			" DROP COLUMN sv_elevation,".
39
+			" DROP COLUMN sv_elevation," .
40 40
 			" DROP COLUMN sv_zoom," .
41 41
 			" DROP INDEX ix1," .
42 42
 			" DROP INDEX ix2," .
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 			"DELETE FROM `##module_setting` WHERE module_name='openstreetmap' AND setting_name=''"
57 57
 			];
58 58
 
59
-		foreach($queries as $query) {
59
+		foreach ($queries as $query) {
60 60
 			try {
61 61
 				Database::exec($query);
62 62
 			} catch (PDOException $ex) {
Please login to merge, or discard this patch.