| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 5 |
| Lines | 6 |
| Ratio | 100 % |
| 1 | <?php |
||
| 11 | View Code Duplication | protected function getStore() { |
|
| 12 | $store = Injector::inst()->get('HybridSessionStore'); |
||
| 13 | $store->setKey(uniqid()); |
||
| 14 | $store->open(getTempFolder().'/'.__CLASS__, 'SESSIONCOOKIE'); |
||
| 15 | return $store; |
||
| 16 | } |
||
| 17 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.