mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
Fixed typos
This commit is contained in:
parent
63df16a369
commit
d04d743520
144 changed files with 263 additions and 265 deletions
|
@ -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']),
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue