Skip to content

Commit d3c5bed

Browse files
committed
chore: fix phpstan
1 parent 9caf306 commit d3c5bed

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

classes/Visualizer/Source/Xlsx.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ public function fetch() {
4949
return false;
5050
}
5151

52-
// Ensure the OpenSpout autoloader is available.
53-
$vendor_file = VISUALIZER_ABSPATH . 'vendor/autoload.php';
54-
if ( is_readable( $vendor_file ) ) {
55-
include_once $vendor_file;
56-
}
57-
5852
if ( ! class_exists( 'OpenSpout\Reader\Common\Creator\ReaderEntityFactory' ) ) {
5953
$this->_error = esc_html__( 'The OpenSpout library is required to import XLSX files but could not be found. Please contact support.', 'visualizer' );
6054
return false;

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ parameters:
1414
- %currentWorkingDirectory%/vendor/codeinwp/themeisle-sdk
1515
excludePaths:
1616
- classes/Visualizer/Gutenberg/build (?)
17+
- classes/Visualizer/GutenChartBuilder/build (?)
18+
- classes/Visualizer/GutenD3Renderer/build (?)
1719
includes:
1820
- %currentWorkingDirectory%/vendor/szepeviktor/phpstan-wordpress/extension.neon
1921
- %currentWorkingDirectory%/phpstan-baseline.neon

0 commit comments

Comments
 (0)