Skip to content

Commit

Permalink
Automated Project Update Bot fixes from run 11-137198.
Browse files Browse the repository at this point in the history
  • Loading branch information
Project-Update-bot authored and WengerK committed Aug 9, 2024
1 parent c90c261 commit 002de2a
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 39 deletions.
6 changes: 3 additions & 3 deletions bamboo_twig_config/src/TwigExtension/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class Config extends TwigExtensionBase {
*/
public function getFunctions() {
return [
new TwigFunction('bamboo_settings_get', [$this, 'getSettings']),
new TwigFunction('bamboo_config_get', [$this, 'getConfig']),
new TwigFunction('bamboo_state_get', [$this, 'getState']),
new TwigFunction('bamboo_settings_get', $this->getSettings(...)),
new TwigFunction('bamboo_config_get', $this->getConfig(...)),
new TwigFunction('bamboo_state_get', $this->getState(...)),
];
}

Expand Down
2 changes: 1 addition & 1 deletion bamboo_twig_extensions/src/TwigExtension/TwigArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TwigArray extends AbstractExtension {
*/
public function getFilters() {
return [
new TwigFilter('bamboo_extensions_shuffle', [$this, 'shuffle']),
new TwigFilter('bamboo_extensions_shuffle', $this->shuffle(...)),
];
}

Expand Down
2 changes: 1 addition & 1 deletion bamboo_twig_extensions/src/TwigExtension/TwigDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TwigDate extends AbstractExtension {
*/
public function getFilters() {
return [
new TwigFilter('bamboo_extensions_time_diff', [$this, 'diff'], ['needs_environment' => TRUE]),
new TwigFilter('bamboo_extensions_time_diff', $this->diff(...), ['needs_environment' => TRUE]),
];
}

Expand Down
2 changes: 1 addition & 1 deletion bamboo_twig_extensions/src/TwigExtension/TwigText.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TwigText extends AbstractExtension {
*/
public function getFilters() {
return [
new TwigFilter('bamboo_extensions_truncate', [$this, 'truncate'], ['needs_environment' => TRUE]),
new TwigFilter('bamboo_extensions_truncate', $this->truncate(...), ['needs_environment' => TRUE]),
];
}

Expand Down
8 changes: 2 additions & 6 deletions bamboo_twig_file/src/TwigExtension/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class File extends TwigExtensionBase {
*/
public function getFilters() {
return [
new TwigFilter('bamboo_file_extension_guesser', [
$this, 'extensionGuesser',
]),
new TwigFilter('bamboo_file_extension_guesser', $this->extensionGuesser(...)),
];
}

Expand All @@ -27,9 +25,7 @@ public function getFilters() {
*/
public function getFunctions() {
return [
new TwigFunction('bamboo_file_url_absolute', [
$this, 'urlAbsolute',
]),
new TwigFunction('bamboo_file_url_absolute', $this->urlAbsolute(...)),
];
}

Expand Down
6 changes: 3 additions & 3 deletions bamboo_twig_i18n/src/TwigExtension/I18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class I18n extends TwigExtensionBase {
*/
public function getFilters() {
return [
new TwigFilter('bamboo_i18n_format_date', [$this, 'formatDate'], ['needs_environment' => TRUE]),
new TwigFilter('bamboo_i18n_get_translation', [$this, 'getTranslation']),
new TwigFilter('bamboo_i18n_format_date', $this->formatDate(...), ['needs_environment' => TRUE]),
new TwigFilter('bamboo_i18n_get_translation', $this->getTranslation(...)),
];
}

Expand All @@ -29,7 +29,7 @@ public function getFilters() {
*/
public function getFunctions() {
return [
new TwigFunction('bamboo_i18n_current_lang', [$this, 'getCurrentLanguage']),
new TwigFunction('bamboo_i18n_current_lang', $this->getCurrentLanguage(...)),
];
}

Expand Down
12 changes: 5 additions & 7 deletions bamboo_twig_loader/src/TwigExtension/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ class Loader extends TwigExtensionBase {
*/
public function getFunctions() {
return [
new TwigFunction('bamboo_load_entity', [$this, 'loadEntity']),
new TwigFunction('bamboo_load_entity_revision', [
$this, 'loadEntityRevision',
]),
new TwigFunction('bamboo_load_field', [$this, 'loadField']),
new TwigFunction('bamboo_load_currentuser', [$this, 'loadCurrentUser']),
new TwigFunction('bamboo_load_image', [$this, 'loadImage']),
new TwigFunction('bamboo_load_entity', $this->loadEntity(...)),
new TwigFunction('bamboo_load_entity_revision', $this->loadEntityRevision(...)),
new TwigFunction('bamboo_load_field', $this->loadField(...)),
new TwigFunction('bamboo_load_currentuser', $this->loadCurrentUser(...)),
new TwigFunction('bamboo_load_image', $this->loadImage(...)),
];
}

Expand Down
20 changes: 9 additions & 11 deletions bamboo_twig_loader/src/TwigExtension/Render.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,15 @@ class Render extends TwigExtensionBase {
*/
public function getFunctions() {
return [
new TwigFunction('bamboo_render_block', [$this, 'renderBlock'], ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_form', [$this, 'renderForm'], ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_entity', [$this, 'renderEntity'], ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_entity_revision', [
$this, 'renderEntityRevision',
], ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_region', [$this, 'renderRegion'], ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_field', [$this, 'renderField'], ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_image', [$this, 'renderImage'], ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_image_style', [$this, 'renderImageStyle'], ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_menu', [$this, 'renderMenu'], ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_block', $this->renderBlock(...), ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_form', $this->renderForm(...), ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_entity', $this->renderEntity(...), ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_entity_revision', $this->renderEntityRevision(...), ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_region', $this->renderRegion(...), ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_field', $this->renderField(...), ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_image', $this->renderImage(...), ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_image_style', $this->renderImageStyle(...), ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_menu', $this->renderMenu(...), ['is_safe' => ['html']]),
new TwigFunction('bamboo_render_views', 'views_embed_view'),
];
}
Expand Down
2 changes: 1 addition & 1 deletion bamboo_twig_path/src/TwigExtension/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Path extends TwigExtensionBase {
*/
public function getFunctions() {
return [
new TwigFunction('bamboo_path_system', [$this, 'getSystemPath']),
new TwigFunction('bamboo_path_system', $this->getSystemPath(...)),
];
}

Expand Down
8 changes: 4 additions & 4 deletions bamboo_twig_security/src/TwigExtension/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class Security extends TwigExtensionBase {
*/
public function getFunctions() {
return [
new TwigFunction('bamboo_has_permission', [$this, 'hasPermission']),
new TwigFunction('bamboo_has_permissions', [$this, 'hasPermissions']),
new TwigFunction('bamboo_has_role', [$this, 'hasRole']),
new TwigFunction('bamboo_has_roles', [$this, 'hasRoles']),
new TwigFunction('bamboo_has_permission', $this->hasPermission(...)),
new TwigFunction('bamboo_has_permissions', $this->hasPermissions(...)),
new TwigFunction('bamboo_has_role', $this->hasRole(...)),
new TwigFunction('bamboo_has_roles', $this->hasRoles(...)),
];
}

Expand Down
2 changes: 1 addition & 1 deletion bamboo_twig_token/src/TwigExtension/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Token extends TwigExtensionBase {
*/
public function getFunctions() {
return [
new TwigFunction('bamboo_token', [$this, 'substituteToken']),
new TwigFunction('bamboo_token', $this->substituteToken(...)),
];
}

Expand Down

0 comments on commit 002de2a

Please sign in to comment.