@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public function from($model) |
| 40 | 40 | { |
| 41 | - if (!isset($this->getDictionary()[$model])) { |
|
| 41 | + if ( ! isset($this->getDictionary()[$model])) { |
|
| 42 | 42 | throw new \InvalidArgumentException(sprintf('Could not find translations for the model: "%s" in the dictionary.', $model)); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $model = $this->getModel($model); |
| 74 | 74 | |
| 75 | - if (!$this->hasTranslation($foreign, $model)) { |
|
| 75 | + if ( ! $this->hasTranslation($foreign, $model)) { |
|
| 76 | 76 | throw new TranslationNotFoundException('The foreign word that had to be translated could not be found in the dictionary!'); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function getModel($model = null) |
| 102 | 102 | { |
| 103 | - if (!is_null($this->model)) { |
|
| 103 | + if ( ! is_null($this->model)) { |
|
| 104 | 104 | return $this->model; |
| 105 | 105 | } |
| 106 | 106 | |