Code style

This commit is contained in:
Jeroen De Meerleer 2019-05-27 21:46:39 +02:00
parent b91dd1ea9a
commit a70a9fcda3
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 6 additions and 10 deletions

View File

@ -3,8 +3,6 @@
namespace JeroenED\Libpairtwo\Exceptions;
class IncompatibleReaderException Extends LibpairtwoException
class IncompatibleReaderException extends LibpairtwoException
{
}
}

View File

@ -3,8 +3,6 @@
namespace JeroenED\LibPairtwo\Exceptions;
class LibpairtwoException extends \Exception
{
}
}

View File

@ -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);
}
}