mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-08 21:06:22 +00:00
Drop all Scrutinizer annotations
Because they tend to clutter our code a lot and unfortunately, there are lots of false positives. Instead, it would probably be better to deal with false positives out of band, via the Scrutinizer web UI.
This commit is contained in:
@@ -6,10 +6,10 @@ use PhpOffice\PhpSpreadsheet\Reader\Exception as ReaderException;
|
||||
require __DIR__ . '/../Header.php';
|
||||
|
||||
$inputFileName = __DIR__ . '/sampleData/non-existing-file.xls';
|
||||
$helper->log('Loading file ' . /** @scrutinizer ignore-type */ pathinfo($inputFileName, PATHINFO_BASENAME) . ' using IOFactory to identify the format');
|
||||
$helper->log('Loading file ' . pathinfo($inputFileName, PATHINFO_BASENAME) . ' using IOFactory to identify the format');
|
||||
|
||||
try {
|
||||
$spreadsheet = IOFactory::load($inputFileName);
|
||||
} catch (ReaderException $e) {
|
||||
$helper->log('Error loading file "' . /** @scrutinizer ignore-type */ pathinfo($inputFileName, PATHINFO_BASENAME) . '": ' . $e->getMessage());
|
||||
$helper->log('Error loading file "' . pathinfo($inputFileName, PATHINFO_BASENAME) . '": ' . $e->getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user