Skip to content

Commit 8c3629e

Browse files
committed
removed unreachable/not necessary code
1 parent 56cd97f commit 8c3629e

File tree

5 files changed

+7
-30
lines changed

5 files changed

+7
-30
lines changed

lib/Database/ez_mysqli.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

lib/Database/ez_pdo.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

lib/Database/ez_pgsql.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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
}

lib/Database/ez_sqlite3.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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
}

lib/Database/ez_sqlsrv.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)