@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | const FORBIDDEN = 'FORBIDDEN'; |
11 | 11 | |
12 | 12 | protected $options = array( |
13 | - 'file' => null, // File containing the authorized domains |
|
13 | + 'file' => null, // File containing the authorized domains |
|
14 | 14 | ); |
15 | 15 | |
16 | 16 | protected $messageTemplates = array( |
@@ -20,9 +20,9 @@ discard block |
||
20 | 20 | public function __construct($options = null) |
21 | 21 | { |
22 | 22 | if (is_string($options)) { |
23 | - $this->options = array('file' => str_replace('\\', '/', getcwd()) . '/' . ltrim($options, '/')); |
|
23 | + $this->options = array('file' => str_replace('\\', '/', getcwd()).'/'.ltrim($options, '/')); |
|
24 | 24 | } elseif (is_array($options)) { |
25 | - $this->options = array('file' => str_replace('\\', '/', getcwd()) . '/' . ltrim(reset($options), '/')); |
|
25 | + $this->options = array('file' => str_replace('\\', '/', getcwd()).'/'.ltrim(reset($options), '/')); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | parent::__construct($this->options); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function getPath() |
40 | 40 | { |
41 | 41 | if (empty($this->path)) { |
42 | - $this->path = str_replace('\\', '/', getcwd()) . '/language/countries'; |
|
42 | + $this->path = str_replace('\\', '/', getcwd()).'/language/countries'; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | return $this->path; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | public function getCorePath() |
49 | 49 | { |
50 | 50 | if (empty($this->corePath)) { |
51 | - $this->corePath = __DIR__ . '/../../../language/countries'; |
|
51 | + $this->corePath = __DIR__.'/../../../language/countries'; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | return $this->corePath; |
@@ -61,10 +61,10 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | $fileName = $this->getPath().'/'.$translatedTo.'.php'; |
64 | - if (! file_exists($fileName)) { |
|
64 | + if (!file_exists($fileName)) { |
|
65 | 65 | $fileName = $this->getCorePath().'/'.$translatedTo.'.php'; |
66 | 66 | |
67 | - if (! file_exists($fileName)) { |
|
67 | + if (!file_exists($fileName)) { |
|
68 | 68 | throw new \InvalidArgumentException("Language $translatedTo not found."); |
69 | 69 | } |
70 | 70 | } |
@@ -78,9 +78,9 @@ discard block |
||
78 | 78 | $translatedTo = $this->serviceLocator->get('translator')->getLocale(); |
79 | 79 | } |
80 | 80 | $fileName = $this->getPath().'/'.$translatedTo.'.php'; |
81 | - if (! file_exists($fileName)) { |
|
81 | + if (!file_exists($fileName)) { |
|
82 | 82 | $fileName = $this->getCorePath().'/'.$translatedTo.'.php'; |
83 | - if (! file_exists($fileName)) { |
|
83 | + if (!file_exists($fileName)) { |
|
84 | 84 | throw new \InvalidArgumentException("Language $translatedTo not found."); |
85 | 85 | } |
86 | 86 | } |