@@ -24,12 +24,10 @@ discard block |
||
| 24 | 24 | if (is_string($crudable)) |
| 25 | 25 | { |
| 26 | 26 | return new CrudTable(new $crudable); |
| 27 | - } |
|
| 28 | - else if ($crudable instanceof CrudTable) |
|
| 27 | + } else if ($crudable instanceof CrudTable) |
|
| 29 | 28 | { |
| 30 | 29 | return $crudable; |
| 31 | - } |
|
| 32 | - else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
| 30 | + } else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
| 33 | 31 | { |
| 34 | 32 | return new CrudTable($crudable); |
| 35 | 33 | } |
@@ -47,12 +45,10 @@ discard block |
||
| 47 | 45 | if (is_string($crudable)) |
| 48 | 46 | { |
| 49 | 47 | return new CrudEntry(new $crudable); |
| 50 | - } |
|
| 51 | - else if ($crudable instanceof CrudEntry) |
|
| 48 | + } else if ($crudable instanceof CrudEntry) |
|
| 52 | 49 | { |
| 53 | 50 | return $crudable; |
| 54 | - } |
|
| 55 | - else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
| 51 | + } else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
| 56 | 52 | { |
| 57 | 53 | return new CrudEntry($crudable); |
| 58 | 54 | } |