File tree Expand file tree Collapse file tree 5 files changed +7
-30
lines changed
Expand file tree Collapse file tree 5 files changed +7
-30
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,8 @@ class ez_mysqli extends ezsqlModel implements DatabaseInterface
3131 */
3232 private $ database ;
3333
34- public function __construct (ConfigInterface $ settings = null ) {
35- if ( ! \class_exists ('ezsqlModel ' ) ) {
36- if ( ! \interface_exists ('Psr\Container\ContainerInterface ' ) )
37- throw new Exception (\CONFIGURATION_REQUIRES );
38- }
39-
34+ public function __construct (ConfigInterface $ settings = null )
35+ {
4036 if (empty ($ settings )) {
4137 throw new Exception (\MISSING_CONFIGURATION );
4238 }
Original file line number Diff line number Diff line change @@ -34,12 +34,8 @@ class ez_pdo extends ezsqlModel implements DatabaseInterface
3434
3535 private $ database ;
3636
37- public function __construct (ConfigInterface $ settings = null ) {
38- if ( ! \class_exists ('ezsqlModel ' ) ) {
39- if ( ! \interface_exists ('Psr\Container\ContainerInterface ' ) )
40- throw new Exception (\CONFIGURATION_REQUIRES );
41- }
42-
37+ public function __construct (ConfigInterface $ settings = null )
38+ {
4339 if (empty ($ settings )) {
4440 throw new Exception (\MISSING_CONFIGURATION );
4541 }
Original file line number Diff line number Diff line change @@ -32,12 +32,7 @@ class ez_pgsql extends ezsqlModel implements DatabaseInterface
3232 private $ database ;
3333
3434 public function __construct (ConfigInterface $ settings = null )
35- {
36- if ( ! \class_exists ('ezsqlModel ' ) ) {
37- if ( ! \interface_exists ('Psr\Container\ContainerInterface ' ) )
38- throw new Exception (\CONFIGURATION_REQUIRES );
39- }
40-
35+ {
4136 if (empty ($ settings )) {
4237 throw new Exception (\MISSING_CONFIGURATION );
4338 }
Original file line number Diff line number Diff line change @@ -33,12 +33,7 @@ class ez_sqlite3 extends ezsqlModel implements DatabaseInterface
3333 * same time as initializing the ez_sqlite3 class
3434 */
3535 public function __construct (ConfigInterface $ settings = null )
36- {
37- if ( ! \class_exists ('ezsqlModel ' ) ) {
38- if ( ! \interface_exists ('Psr\Container\ContainerInterface ' ) )
39- throw new Exception (\CONFIGURATION_REQUIRES );
40- }
41-
36+ {
4237 if (empty ($ settings )) {
4338 throw new Exception (\MISSING_CONFIGURATION );
4439 }
Original file line number Diff line number Diff line change @@ -41,12 +41,7 @@ class ez_sqlsrv extends ezsqlModel implements DatabaseInterface
4141 private $ database ;
4242
4343 public function __construct (ConfigInterface $ settings = null )
44- {
45- if ( ! \class_exists ('ezsqlModel ' ) ) {
46- if ( ! \interface_exists ('Psr\Container\ContainerInterface ' ) )
47- throw new Exception (\CONFIGURATION_REQUIRES );
48- }
49-
44+ {
5045 if (empty ($ settings )) {
5146 throw new Exception (\MISSING_CONFIGURATION );
5247 }
You can’t perform that action at this time.
0 commit comments