Typo fixes on comments with reverting substr related changes

Signed-off-by: Kiran Parajuli <kiranparajuli589@gmail.com>
This commit is contained in:
Kiran Parajuli
2022-12-28 14:30:03 +05:45
committed by Phil Davis
parent 88de0070a7
commit 35d4cb53ae
2 changed files with 4 additions and 4 deletions

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;

View File

@@ -29,12 +29,12 @@ $classLoader->addPsr4("TestHelpers\\", __DIR__ . "/../../../TestHelpers", true);
$classLoader->register();
// while running for the local api tests, the tests code form ownCloud/core is not used
// while running for the local API tests, the tests code from ownCloud/core is not used
// so we need the constants to be defined for the tests to use them, but for the case where,
// the tests are running for core api tests, the constants are already defined in the core bootstrap.php
// the tests are running for oC/core API tests, the constants are already defined in the bootstrap.php there
// so we do not declare them again to avoid the "already defined" error
// Sleep for 10 milliseconds
// Sleep for 10 milliseconds
if (!\defined('STANDARD_SLEEP_TIME_MILLISEC')) {
\define('STANDARD_SLEEP_TIME_MILLISEC', 10);
}