mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 07:47:42 +01:00
Code style
This commit is contained in:
parent
b91dd1ea9a
commit
a70a9fcda3
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
namespace JeroenED\Libpairtwo\Exceptions;
|
namespace JeroenED\Libpairtwo\Exceptions;
|
||||||
|
|
||||||
|
class IncompatibleReaderException extends LibpairtwoException
|
||||||
class IncompatibleReaderException Extends LibpairtwoException
|
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
namespace JeroenED\LibPairtwo\Exceptions;
|
namespace JeroenED\LibPairtwo\Exceptions;
|
||||||
|
|
||||||
|
|
||||||
class LibpairtwoException extends \Exception
|
class LibpairtwoException extends \Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
namespace JeroenED\Libpairtwo;
|
namespace JeroenED\Libpairtwo;
|
||||||
|
|
||||||
|
use JeroenED\LibPairtwo\Exceptions\LibpairtwoException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class reads a SWS file
|
* This class reads a SWS file
|
||||||
@ -41,13 +41,13 @@ class Sws
|
|||||||
* Reads out $swsfile and returns a Pairtwo6 class object
|
* Reads out $swsfile and returns a Pairtwo6 class object
|
||||||
*
|
*
|
||||||
* @param string $swsfile
|
* @param string $swsfile
|
||||||
|
* @throws LibpairtwoException
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public static function ReadSws(string $swsfile)
|
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");
|
$reader = IOFactory::createReader("Pairtwo-6");
|
||||||
return $reader->read($swsfile);
|
return $reader->read($swsfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user