Code Duplication    Length = 8-8 lines in 2 locations

core/domain/entities/routing/handlers/shared/AssetRequests.php 1 location

@@ 118-125 (lines=8) @@
115
     * @return bool
116
     * @since $VID:$
117
     */
118
    private function canLoadBlocks()
119
    {
120
        return apply_filters('FHEE__EE_System__canLoadBlocks', true)
121
               && function_exists('register_block_type')
122
               // don't load blocks if in the Divi page builder editor context
123
               // @see https://github.com/eventespresso/event-espresso-core/issues/814
124
               && ! $this->request->getRequestParam('et_fb', false);
125
    }
126
}
127

core/services/routing/RouteHandler.php 1 location

@@ 99-106 (lines=8) @@
96
     * @return bool
97
     * @since $VID:$
98
     */
99
    private function canLoadBlocks()
100
    {
101
        return apply_filters('FHEE__EE_System__canLoadBlocks', true)
102
               && function_exists('register_block_type')
103
               // don't load blocks if in the Divi page builder editor context
104
               // @see https://github.com/eventespresso/event-espresso-core/issues/814
105
               && ! $this->request->getRequestParam('et_fb', false);
106
    }
107
108
109
    /**