| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 4 | 
| Code Lines | 2 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 25 | protected function getSessionData($key)  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 26 |     { | 
            ||
| 27 | return isset($_SESSION[$key]) ? $_SESSION[$key] : null;  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 65 | 
Instead of super-globals, we recommend to explicitly inject the dependencies of your class. This makes your code less dependent on global state and it becomes generally more testable: