| Total Complexity | 5 | 
| Total Lines | 36 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 9 | trait BuildParamLimitFixQueries | ||
| 10 | { | ||
| 11 | /** | ||
| 12 | * The maximum number of parameters per query. | ||
| 13 | * | ||
| 14 | * The values are lower than the actual limits | ||
| 15 | * to have a margin for polymorphic relationships | ||
| 16 | * and other query parameters. | ||
| 17 | * | ||
| 18 | * @var array | ||
| 19 | */ | ||
| 20 | protected $parameterLimits = [ | ||
| 21 | MySqlConnection::class => 65000, | ||
| 22 | SQLiteConnection::class => 900, | ||
| 23 | SqlServerConnection::class => 2000, | ||
| 24 | ]; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * Eager load the relationships for the models. | ||
| 28 | * | ||
| 29 | * @param array $models | ||
| 30 | * @return array | ||
| 31 | */ | ||
| 32 | 1 | public function eagerLoadRelations(array $models) | |
| 47 |