@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * Set service manager instance |
| 101 | 101 | * |
| 102 | 102 | * @param ServiceManager $serviceManager |
| 103 | - * @return User |
|
| 103 | + * @return Country |
|
| 104 | 104 | */ |
| 105 | 105 | public function setServiceManager(ServiceManager $serviceManager) |
| 106 | 106 | { |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public function getPath() |
| 29 | 29 | { |
| 30 | - if(empty($this->path)){ |
|
| 31 | - $this->path = str_replace('\\', '/', getcwd()) . '/language/countries'; |
|
| 30 | + if (empty($this->path)) { |
|
| 31 | + $this->path = str_replace('\\', '/', getcwd()).'/language/countries'; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | return $this->path; |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | public function getCorePath() |
| 38 | 38 | { |
| 39 | - if(empty($this->corePath)){ |
|
| 40 | - $this->corePath = __DIR__ . '/../../../language/countries'; |
|
| 39 | + if (empty($this->corePath)) { |
|
| 40 | + $this->corePath = __DIR__.'/../../../language/countries'; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | return $this->corePath; |
@@ -50,10 +50,10 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | $fileName = $this->getPath().'/'.$translatedTo.'.php'; |
| 53 | - if (! file_exists($fileName)) { |
|
| 53 | + if (!file_exists($fileName)) { |
|
| 54 | 54 | $fileName = $this->getCorePath().'/'.$translatedTo.'.php'; |
| 55 | 55 | |
| 56 | - if (! file_exists($fileName)) { |
|
| 56 | + if (!file_exists($fileName)) { |
|
| 57 | 57 | throw new \InvalidArgumentException("Language $translatedTo not found."); |
| 58 | 58 | } |
| 59 | 59 | } |
@@ -67,9 +67,9 @@ discard block |
||
| 67 | 67 | $translatedTo = $this->getServiceManager()->get('translator')->getLocale(); |
| 68 | 68 | } |
| 69 | 69 | $fileName = $this->getPath().'/'.$translatedTo.'.php'; |
| 70 | - if (! file_exists($fileName)) { |
|
| 70 | + if (!file_exists($fileName)) { |
|
| 71 | 71 | $fileName = $this->getCorePath().'/'.$translatedTo.'.php'; |
| 72 | - if (! file_exists($fileName)) { |
|
| 72 | + if (!file_exists($fileName)) { |
|
| 73 | 73 | throw new \InvalidArgumentException("Language $translatedTo not found."); |
| 74 | 74 | } |
| 75 | 75 | } |