Skip to content

Commit

Permalink
Typo fixes on comments with reverting substr related changes
Browse files Browse the repository at this point in the history
Signed-off-by: Kiran Parajuli <[email protected]>
  • Loading branch information
kiranparajuli589 authored and phil-davis committed Dec 30, 2022
1 parent 870bdd9 commit 27ea21f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/TestHelpers/GraphHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function isUUIDv4(string $id): int {
*/
private 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;
Expand Down
6 changes: 3 additions & 3 deletions tests/acceptance/features/bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@

$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);
}
Expand Down

0 comments on commit 27ea21f

Please sign in to comment.