Typo fixes on comments with reverting substr related changes

Signed-off-by: Kiran Parajuli <kiranparajuli589@gmail.com>
This commit is contained in:
Kiran Parajuli
2023-01-05 09:21:34 +05:45
committed by Phil Davis
parent 88de0070a7
commit 35d4cb53ae
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ class GraphHelper {
*/
public static function getFullUrl(string $baseUrl, string $path): string {
$fullUrl = $baseUrl;
if (!str_ends_with($fullUrl, '/')) {
if (\substr($fullUrl, -1) !== '/') {
$fullUrl .= '/';
}
$fullUrl .= 'graph/v1.0/' . $path;