| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 30 | public function resolve(Translator $translator)  | 
            ||
| 31 | 	{ | 
            ||
| 32 | $locale = $this->storage->getProfile()->getLanguage(FALSE);  | 
            ||
| 33 | 		if (is_null($locale) && !$this->lock) { | 
            ||
| 34 | $this->lock = TRUE;  | 
            ||
| 35 | 			if (NULL !== ($newLocale = $translator->getLocale())) { | 
            ||
| 36 | $this->storage->getProfile()->changeLanguage($newLocale, FALSE);  | 
            ||
| 37 | }  | 
            ||
| 38 | $this->lock = FALSE;  | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 41 | return $locale;  | 
            ||
| 42 | }  | 
            ||
| 43 | }  | 
            ||
| 44 |