Skip to content

Commit e564154

Browse files
committed
fix: correct indentation in Profile.php and update device type in test-dimension-replacement.php for clarity
1 parent 49a757f commit e564154

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

inc/v2/PageProfiler/Profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function store( string $id, int $device_type, array $above_fold_images, $
198198
$global_data['m'] = $missing_dimensions;
199199
}
200200
if ( ! empty( $crop_status ) ) {
201-
$global_data['c'] = $crop_status;
201+
$global_data['c'] = $crop_status;
202202
}
203203
if ( ! empty( $global_data ) ) {
204204
// those measurements are not device specific, so we store them in on a global profile scope.

tests/test-dimension-replacement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private function setup_mock_profile_data() {
4646

4747
// Store this data in the profile system
4848
$profile = Optml_Manager::instance()->page_profiler;
49-
$profile->store( 'test-profile', '1', [], [], [], $mock_dimensions );
49+
$profile->store( 'test-profile', Profile::DEVICE_TYPE_DESKTOP, [], [], [], $mock_dimensions );
5050

5151
// Set the current profile context
5252
Profile::set_current_profile_id( 'test-profile' );

0 commit comments

Comments
 (0)