| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace Arcanedev\LaravelNestedSet\Traits; |
||
| 31 | 216 | public static function usesSoftDelete() |
|
| 32 | { |
||
| 33 | 216 | static $softDelete; |
|
| 34 | |||
| 35 | 216 | if (is_null($softDelete)) { |
|
| 36 | 6 | $instance = new static; |
|
| 37 | |||
| 38 | 6 | return $softDelete = method_exists($instance, 'bootSoftDeletes'); |
|
| 39 | } |
||
| 40 | |||
| 41 | 216 | return $softDelete; |
|
| 42 | } |
||
| 43 | |||
| 54 |