Completed
Push — master ( d49b73...f27323 )
by
unknown
04:02
created
src/Magister/Services/Translation/Translator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.