Passed
Pull Request — master (#3)
by Artem
02:51
created
src/Database/Territory/Territory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,19 +67,19 @@  discard block
 block discarded – undo
67 67
         if ($this->sortedLanguages === null) {
68 68
             $arr = $this->languages;
69 69
             ksort($arr);
70
-            $arr = array_map(function ($k, $v) {
70
+            $arr = array_map(function($k, $v) {
71 71
                 $v['language'] = $k;
72 72
 
73 73
                 return $v;
74 74
             }, array_keys($arr), array_values($arr));
75
-            usort($arr, function ($x, $y) {
75
+            usort($arr, function($x, $y) {
76 76
                 if ($x['percent'] === $y['percent']) {
77 77
                     return 0;
78 78
                 }
79 79
 
80 80
                 return $x['percent'] > $y['percent'] ? -1 : 1;
81 81
             });
82
-            $this->sortedLanguages = array_combine(array_map(function ($x) {
82
+            $this->sortedLanguages = array_combine(array_map(function($x) {
83 83
                 return $x['language'];
84 84
             }, $arr), $arr);
85 85
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     public function getOfficialLanguages()
94 94
     {
95 95
         if ($this->officialLanguages === null) {
96
-            $this->officialLanguages = array_keys(array_filter($this->getSortedLanguages(), function ($v) {
96
+            $this->officialLanguages = array_keys(array_filter($this->getSortedLanguages(), function($v) {
97 97
                 return $v['official'];
98 98
             }));
99 99
         }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     public function getUnofficialLanguages()
108 108
     {
109 109
         if ($this->unofficialLanguages === null) {
110
-            $this->officialLanguages = array_keys(array_filter($this->getSortedLanguages(), function ($v) {
110
+            $this->officialLanguages = array_keys(array_filter($this->getSortedLanguages(), function($v) {
111 111
                 return !$v['official'];
112 112
             }));
113 113
         }
Please login to merge, or discard this patch.