Skip to content

Commit

Permalink
Merge pull request #2 from enjoping/master
Browse files Browse the repository at this point in the history
Update upstream
  • Loading branch information
NielsdeBlaauw authored Mar 16, 2021
2 parents 286e601 + 71943c3 commit e4f32f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DXFighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use DXFighter\lib\Polyline;
use DXFighter\lib\Spline;
use DXFighter\lib\Text;
use PHPUnit\Framework\Exception;

/**
* Returns the class name, used for auto loading libraries
Expand Down Expand Up @@ -298,7 +297,7 @@ public function saveAs($fileName) {

private function read($path, $move = [0,0,0], $rotate = 0) {
if (!file_exists($path) || !filesize($path)) {
throw new Exception('The path to the file is either invalid or the file is empty');
throw new \Exception('The path to the file is either invalid or the file is empty');
}
$content = file_get_contents($path);
$lines = preg_split ('/$\R?^/m', $content);
Expand Down

0 comments on commit e4f32f0

Please sign in to comment.