| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | 15 | public static function getTraitsList($globPattern = '{Document,Entity}') |
|
| 15 | { |
||
| 16 | 15 | $files = glob(__DIR__.'/Traits/'.$globPattern.'/*.php', GLOB_BRACE); |
|
| 17 | |||
| 18 | return array_map(function ($path) { |
||
| 19 | 15 | $class = basename($path, '.php'); |
|
| 20 | 15 | $namespace = basename(dirname($path)); |
|
| 21 | |||
| 22 | 15 | return 'EmanueleMinotto\HwiOauthBridge\Traits\\'.$namespace.'\\'.$class; |
|
| 23 | 15 | }, $files); |
|
| 24 | } |
||
| 25 | |||
| 55 |