src/HumbugLoader.php 1 location
|
@@ 32-40 (lines=9) @@
|
29 |
|
* HumbugLoader constructor. |
30 |
|
* @param string $filePath the file path to json output of humbug |
31 |
|
*/ |
32 |
|
public function __construct($filePath) |
33 |
|
{ |
34 |
|
$this->json = json_decode(file_get_contents($filePath)); |
35 |
|
if (json_last_error() !== JSON_ERROR_NONE) { |
36 |
|
throw new InvalidArgumentException( |
37 |
|
"Can't Parse Humbug json - " . json_last_error_msg() |
38 |
|
); |
39 |
|
} |
40 |
|
} |
41 |
|
|
42 |
|
/** |
43 |
|
* {@inheritdoc} |
src/PhpCsLoader.php 1 location
|
@@ 49-57 (lines=9) @@
|
46 |
|
* PhpCsLoader constructor. |
47 |
|
* @param string $filePath the file path to the json output from phpcs |
48 |
|
*/ |
49 |
|
public function __construct($filePath) |
50 |
|
{ |
51 |
|
$this->json = json_decode(file_get_contents($filePath)); |
52 |
|
if (json_last_error() !== JSON_ERROR_NONE) { |
53 |
|
throw new InvalidArgumentException( |
54 |
|
"Can't Parse phpcs json - " . json_last_error_msg() |
55 |
|
); |
56 |
|
} |
57 |
|
} |
58 |
|
|
59 |
|
/** |
60 |
|
* {@inheritdoc} |