$model * @param int $post_id * @param string $subtree_id * @return array */ protected function analyze( array $model, int $post_id, string $subtree_id ): array { $result = Design_Mutator::edit( $model, static function ( array &$settings, array $element ): array { $type = (string) ( $element['elType'] ?? '' ); if ( 'container' !== $type && 'column' !== $type ) { return array(); } $changes = array(); foreach ( array( 'padding', 'padding_tablet', 'padding_mobile' ) as $key ) { $changes = array_merge( $changes, Design_Mutator::clear( $settings, $key ) ); } return $changes; } ); if ( is_wp_error( $result ) ) { return $result; } return Design_Mutator::report( $result, __( 'Cleared container padding overrides so the site kit values apply again.', 'acrossai-abilities-manager' ), __( 'No container or column in scope carried a padding override, so nothing was changed.', 'acrossai-abilities-manager' ) ); } }