| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait QuoteNameTrait |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Quotes a name variable backticks for mysql names. |
||
| 24 | * |
||
| 25 | * If a name already contains backtick characters this method will |
||
| 26 | * not perform any transformations. |
||
| 27 | * |
||
| 28 | * @param string $name Name to be quoted. |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 88 | protected function quoteName(string $name): string |
|
| 40 |