Skip to content

Commit 0a71563

Browse files
committed
Moved FontHelpers up one level so it's shareable across all checkers
1 parent cc3b354 commit 0a71563

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/ColorContrast/Checker.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
require_once "CalculatorHelpers/rgba2rgb.php";
88
require_once "CalculatorHelpers/hsla2rgb.php";
9-
require_once "FontHelpers/convert2pt.php";
9+
require_once __DIR__ . "/../FontHelpers/convert2pt.php";
1010

1111
/**
1212
* Color Contrast Checker class for Accessibility Checker
@@ -97,8 +97,8 @@ class Checker
9797
*/
9898
public function __construct($mode = "AA")
9999
{
100-
require "FontHelpers/default_font_sizes.php";
101-
require "FontHelpers/block_elements.php";
100+
require __DIR__ . "/../FontHelpers/default_font_sizes.php";
101+
require __DIR__ . "/../FontHelpers/block_elements.php";
102102
if (!in_array($mode, ['AA', 'AAA'])) {
103103
$mode = 'AA';
104104
}

0 commit comments

Comments
 (0)