Added psalm configuration and refined source.
This commit is contained in:
1 parent
4013046e4f
commit
70de78b276
13 files changed
+82
-4
No files matched your search
@@ -21,6 +21,7 @@ class Hybrid_Events implements Hook_Event_Config_Interface {
|
||||
return $events;
|
||||
}
|
||||
|
||||
/** @var string $prefix */
|
||||
$prefix = hybrid_get_prefix();
|
||||
|
||||
$events["{$prefix}_before_header"][10] = [
|
||||
@@ -34,9 +35,11 @@ class Hybrid_Events implements Hook_Event_Config_Interface {
|
||||
'category' => 'theme',
|
||||
];
|
||||
|
||||
/** @var array $sidebars */
|
||||
$sidebars = get_theme_support( 'hybrid-core-sidebars' );
|
||||
|
||||
if ( ! empty( $sidebars[0] ) ) {
|
||||
/** @var string $sidebar */
|
||||
foreach ( $sidebars[0] as $sidebar ) {
|
||||
|
||||
$events["{$prefix}_before_{$sidebar}"][10] = [
|
||||
|
||||
Reference in new issue
Block a user