Skip to content

Commit 5c56dea

Browse files
committed
fixup! refactor: Run rector on project
1 parent bb4089f commit 5c56dea

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/Service/FavoritesService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,9 @@ public function exportFavorites(?string $userId, $fileHandler, $categoryList, $b
643643

644644
$lat = $row['lat'];
645645
$lng = $row['lng'];
646-
$category = str_replace('&', '&', $row['category']);
647-
$comment = str_replace('&', '&', $row['comment']);
648-
$extensions = str_replace('&', '&', $row['extensions']);
646+
$category = str_replace('&', '&', (string)$row['category']);
647+
$comment = str_replace('&', '&', (string)$row['comment']);
648+
$extensions = str_replace('&', '&', (string)$row['extensions']);
649649

650650
$gpxExtension = '';
651651
$gpxText .= ' <wpt lat="' . $lat . '" lon="' . $lng . '">' . "\n";

lib/Service/TracksService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,8 +942,8 @@ public function generateTrackMetadata($file): ?string {
942942
$east,
943943
$west,
944944
(strlen($trackNameList) < 200) ? $trackNameList : '[]',
945-
str_replace('"', "'", $linkurl),
946-
str_replace('"', "'", $linktext),
945+
str_replace('"', "'", (string)$linkurl),
946+
str_replace('"', "'", (string)$linktext),
947947
$moving_pace
948948
);
949949
}

0 commit comments

Comments
 (0)