From a70a9fcda37eef924bd332197bbeedf13e56d93f Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Mon, 27 May 2019 21:46:39 +0200 Subject: [PATCH] Code style --- src/Exceptions/IncompatibleReaderException.php | 6 ++---- src/Exceptions/LibpairtwoException.php | 4 +--- src/Sws.php | 6 +++--- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/Exceptions/IncompatibleReaderException.php b/src/Exceptions/IncompatibleReaderException.php index a44401c..8785357 100644 --- a/src/Exceptions/IncompatibleReaderException.php +++ b/src/Exceptions/IncompatibleReaderException.php @@ -3,8 +3,6 @@ namespace JeroenED\Libpairtwo\Exceptions; - -class IncompatibleReaderException Extends LibpairtwoException +class IncompatibleReaderException extends LibpairtwoException { - -} \ No newline at end of file +} diff --git a/src/Exceptions/LibpairtwoException.php b/src/Exceptions/LibpairtwoException.php index ac8d606..e909fcc 100644 --- a/src/Exceptions/LibpairtwoException.php +++ b/src/Exceptions/LibpairtwoException.php @@ -3,8 +3,6 @@ namespace JeroenED\LibPairtwo\Exceptions; - class LibpairtwoException extends \Exception { - -} \ No newline at end of file +} diff --git a/src/Sws.php b/src/Sws.php index 18e6386..62f1944 100644 --- a/src/Sws.php +++ b/src/Sws.php @@ -26,7 +26,7 @@ namespace JeroenED\Libpairtwo; - +use JeroenED\LibPairtwo\Exceptions\LibpairtwoException; /** * This class reads a SWS file @@ -41,13 +41,13 @@ class Sws * Reads out $swsfile and returns a Pairtwo6 class object * * @param string $swsfile + * @throws LibpairtwoException * @deprecated */ public static function ReadSws(string $swsfile) { - trigger_error ( "This function is deprecated. Please convert your code to use the new pattern. More info to be found on Github (https://github.com/JeroenED/libpairtwo/wiki/Converting-your-code-to-the-generalized-format).", E_USER_DEPRECATED); + trigger_error("This function is deprecated. Please convert your code to use the new pattern. More info to be found on Github (https://github.com/JeroenED/libpairtwo/wiki/Converting-your-code-to-the-generalized-format).", E_USER_DEPRECATED); $reader = IOFactory::createReader("Pairtwo-6"); return $reader->read($swsfile); } - }