Completed
Push — master ( b3c331...6aff27 )
by Greg
03:11
created
src/Locale/AbstractLocale.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -48,17 +48,17 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function code()
50 50
     {
51
-        $code = $this->language()->code() . '_' . $this->territory()->code();
51
+        $code = $this->language()->code().'_'.$this->territory()->code();
52 52
 
53 53
         if ($this->script() != $this->language()->defaultScript()) {
54
-            $code .= '@' . strtolower($this->script()->unicodeName());
54
+            $code .= '@'.strtolower($this->script()->unicodeName());
55 55
         }
56 56
 
57 57
         if ($this->variant() !== null) {
58 58
             if ($this->variant()->code() === 'posix') {
59 59
                 $code = 'POSIX';
60 60
             } else {
61
-                $code .= '@' . $this->variant()->code();
61
+                $code .= '@'.$this->variant()->code();
62 62
             }
63 63
         }
64 64
 
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
     public function htmlAttributes()
143 143
     {
144 144
         if ($this->direction() === 'rtl' || $this->direction() !== $this->script()->direction()) {
145
-            return 'lang="' . $this->languageTag() . '" dir="' . $this->direction() . '"';
145
+            return 'lang="'.$this->languageTag().'" dir="'.$this->direction().'"';
146 146
         } else {
147
-            return 'lang="' . $this->languageTag() . '"';
147
+            return 'lang="'.$this->languageTag().'"';
148 148
         }
149 149
     }
150 150
 
@@ -158,13 +158,13 @@  discard block
 block discarded – undo
158 158
     {
159 159
         $language_tag = $this->language()->code();
160 160
         if ($this->script() != $this->language()->defaultScript()) {
161
-            $language_tag .= '-' . $this->script()->code();
161
+            $language_tag .= '-'.$this->script()->code();
162 162
         }
163 163
         if ($this->territory() != $this->language()->defaultTerritory()) {
164
-            $language_tag .= '-' . $this->territory()->code();
164
+            $language_tag .= '-'.$this->territory()->code();
165 165
         }
166 166
         if ($this->variant()) {
167
-            $language_tag .= '-' . $this->variant()->code();
167
+            $language_tag .= '-'.$this->variant()->code();
168 168
         }
169 169
 
170 170
         return $language_tag;
@@ -199,20 +199,20 @@  discard block
 block discarded – undo
199 199
         $integers = $parts[0];
200 200
         if (strlen($integers) >= $this->digitsFirstGroup() + $this->minimumGroupingDigits()) {
201 201
             $todo     = substr($integers, 0, -$this->digitsFirstGroup());
202
-            $integers = self::GROUP . substr($integers, -$this->digitsFirstGroup());
202
+            $integers = self::GROUP.substr($integers, -$this->digitsFirstGroup());
203 203
             while (strlen($todo) >= $this->digitsGroup() + $this->minimumGroupingDigits()) {
204
-                $integers = self::GROUP . substr($todo, -$this->digitsGroup()) . $integers;
204
+                $integers = self::GROUP.substr($todo, -$this->digitsGroup()).$integers;
205 205
                 $todo     = substr($todo, 0, -$this->digitsGroup());
206 206
             }
207
-            $integers = $todo . $integers;
207
+            $integers = $todo.$integers;
208 208
         }
209 209
         if (count($parts) > 1) {
210
-            $decimals = self::DECIMAL . $parts[1];
210
+            $decimals = self::DECIMAL.$parts[1];
211 211
         } else {
212 212
             $decimals = '';
213 213
         }
214 214
 
215
-        return $this->digits($negative . $integers . $decimals);
215
+        return $this->digits($negative.$integers.$decimals);
216 216
     }
217 217
 
218 218
     /**
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      */
255 255
     protected function percentFormat()
256 256
     {
257
-        return self::PLACEHOLDER . self::PERCENT;
257
+        return self::PLACEHOLDER.self::PERCENT;
258 258
     }
259 259
 
260 260
     /**
Please login to merge, or discard this patch.