| @@ -105,11 +105,9 @@ | ||
| 105 | 105 | * |
| 106 | 106 | * @return static The instance. |
| 107 | 107 | */ |
| 108 | 108 | public static function get_instance() { |
| 109 | - if ( is_null( self::$instance ) ) { | |
| 110 | - self::$instance = new self(); | |
| 111 | - } | |
| 109 | + self::$instance ??= new self(); | |
| 112 | 110 | |
| 113 | 111 | return self::$instance; |
| 114 | 112 | } |
| 115 | 113 | |
| @@ -131,8 +129,9 @@ | ||
| 131 | 129 | */ |
| 132 | 130 | private function render() { |
| 133 | 131 | $presenter = new Breadcrumbs_Presenter(); |
| 134 | 132 | $context = $this->context_memoizer->for_current_page(); |
| 133 | + | |
| 135 | 134 | /** This filter is documented in src/integrations/front-end-integration.php */ |
| 136 | 135 | $presentation = apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context ); |
| 137 | 136 | $presenter->presentation = $presentation; |
| 138 | 137 | $presenter->replace_vars = $this->replace_vars; |