Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix exceptions use statements #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Segment.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
namespace Odtphp;

use Odtphp\SegmentIterator;
use Odtphp\Exceptions\SegmentException;
use Odtphp\Exceptions\OdfException;

/**
* Class for handling templating segments with odt files
Expand Down Expand Up @@ -30,7 +32,7 @@ class Segment implements \IteratorAggregate, \Countable
protected $images = array();
protected $odf;
protected $file;

/**
* Constructor
*
Expand Down Expand Up @@ -229,7 +231,7 @@ public function __call($meth, $args)
throw new SegmentException("method $meth nor var $meth exist");
}
}

/**
* Returns the parsed XML
*
Expand Down