Fixed typos

This commit is contained in:
Jan Böhmer 2023-04-15 23:14:53 +02:00
parent 63df16a369
commit d04d743520
144 changed files with 263 additions and 265 deletions

View file

@ -63,7 +63,7 @@ final class FormatExtension extends AbstractExtension
new TwigFilter('format_si', [$this, 'siFormat']),
/** Format the given amount using the given MeasurementUnit */
new TwigFilter('format_amount', [$this, 'amountFormat']),
/** Format the given number of bytes as human readable number */
/** Format the given number of bytes as human-readable number */
new TwigFilter('format_bytes', [$this, 'formatBytes']),
];
}

View file

@ -112,7 +112,7 @@ final class InheritanceSecurityPolicy implements SecurityPolicyInterface
if ($obj instanceof $class) {
$allowed = in_array($method, $methods, true);
//CHANGED: Only break if we the method is allowed, otherwise try it on the other methods
//CHANGED: Only break if the method is allowed, otherwise try it on the other methods
if ($allowed) {
break;
}
@ -133,7 +133,7 @@ final class InheritanceSecurityPolicy implements SecurityPolicyInterface
if ($obj instanceof $class) {
$allowed = in_array($property, is_array($properties) ? $properties : [$properties], true);
//CHANGED: Only break if we the method is allowed, otherwise try it on the other methods
//CHANGED: Only break if the method is allowed, otherwise try it on the other methods
if ($allowed) {
break;
}

View file

@ -75,7 +75,7 @@ final class UserExtension extends AbstractExtension
}
/**
* This function/filter generates an path.
* This function/filter generates a path.
*/
public function removeLocaleFromPath(string $path): string
{