Completed
Push — develop ( 393505...ca4c4f )
by Greg
03:13
created
src/Locale/LocaleSmn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
31 31
 
32 32
     public function percentFormat()
33 33
     {
34
-        return '%s' . self:: NBSP . self::PERCENT;
34
+        return '%s'.self:: NBSP.self::PERCENT;
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
src/Locale/LocaleUrIn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         return array(
19 19
             self::DECIMAL  => self::ARAB_DECIMAL,
20 20
             self::GROUP    => self::ARAB_GROUP,
21
-            self::NEGATIVE => self::LTR_MARK . self::HYPHEN . self::LTR_MARK,
21
+            self::NEGATIVE => self::LTR_MARK.self::HYPHEN.self::LTR_MARK,
22 22
         );
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/Translation.php 2 patches
Switch Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -28,30 +28,30 @@  discard block
 block discarded – undo
28 28
         $this->translations = array();
29 29
 
30 30
         switch (strtolower(pathinfo($filename, PATHINFO_EXTENSION))) {
31
-            case 'csv':
32
-                $fp = fopen($filename, 'r');
33
-                if ($fp) {
34
-                    while (($data = fgetcsv($fp, 0, ';')) !== false) {
35
-                        $this->translations[$data[0]] = $data[1];
36
-                    }
37
-                    fclose($fp);
31
+        case 'csv':
32
+            $fp = fopen($filename, 'r');
33
+            if ($fp) {
34
+                while (($data = fgetcsv($fp, 0, ';')) !== false) {
35
+                    $this->translations[$data[0]] = $data[1];
38 36
                 }
39
-                break;
37
+                fclose($fp);
38
+            }
39
+            break;
40 40
 
41
-            case 'mo':
42
-                $fp = fopen($filename, 'rb');
43
-                if ($fp) {
44
-                    $this->readMoFile($fp);
45
-                    fclose($fp);
46
-                }
47
-                break;
41
+        case 'mo':
42
+            $fp = fopen($filename, 'rb');
43
+            if ($fp) {
44
+                $this->readMoFile($fp);
45
+                fclose($fp);
46
+            }
47
+            break;
48 48
 
49
-            case 'php':
50
-                $translations = include $filename;
51
-                if (is_array($translations)) {
52
-                    $this->translations = $translations;
53
-                }
54
-                break;
49
+        case 'php':
50
+            $translations = include $filename;
51
+            if (is_array($translations)) {
52
+                $this->translations = $translations;
53
+            }
54
+            break;
55 55
         }
56 56
     }
57 57
 
@@ -97,15 +97,15 @@  discard block
 block discarded – undo
97 97
         $magic = $this->readMoWords($fp, 0, 1, self::PACK_LITTLE_ENDIAN);
98 98
 
99 99
         switch (dechex($magic[1])) {
100
-            case self::MO_MAGIC_LITTLE_ENDIAN:
101
-                $pack = self::PACK_LITTLE_ENDIAN;
102
-                break;
103
-            case self::MO_MAGIC_BIG_ENDIAN:
104
-                $pack = self::PACK_BIG_ENDIAN;
105
-                break;
106
-            default:
107
-                // Not a valid .MO file.
108
-                throw new \InvalidArgumentException('Invalid .MO file');
100
+        case self::MO_MAGIC_LITTLE_ENDIAN:
101
+            $pack = self::PACK_LITTLE_ENDIAN;
102
+            break;
103
+        case self::MO_MAGIC_BIG_ENDIAN:
104
+            $pack = self::PACK_BIG_ENDIAN;
105
+            break;
106
+        default:
107
+            // Not a valid .MO file.
108
+            throw new \InvalidArgumentException('Invalid .MO file');
109 109
         }
110 110
 
111 111
         // Read the lookup tables
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     {
80 80
         fseek($fp, $offset);
81 81
 
82
-        return unpack($pack . $count, fread($fp, $count * 4));
82
+        return unpack($pack.$count, fread($fp, $count * 4));
83 83
     }
84 84
 
85 85
     /**
Please login to merge, or discard this patch.
src/Locale/LocaleCe.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
 
29 29
     protected function percentFormat()
30 30
     {
31
-        return '%s' . self::NBSP . self::PERCENT;
31
+        return '%s'.self::NBSP.self::PERCENT;
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Locale/LocaleDeLi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
 
27 27
     protected function percentFormat()
28 28
     {
29
-        return '%s' . self::PERCENT;
29
+        return '%s'.self::PERCENT;
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Locale/LocaleKs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
         return array(
32 32
             self::GROUP    => self::ARAB_GROUP,
33 33
             self::DECIMAL  => self::ARAB_DECIMAL,
34
-            self::NEGATIVE => self::LTR_MARK . self::HYPHEN . self::LTR_MARK,
34
+            self::NEGATIVE => self::LTR_MARK.self::HYPHEN.self::LTR_MARK,
35 35
         );
36 36
     }
37 37
 
38 38
     protected function percentFormat()
39 39
     {
40
-        return '%s' . self::ARAB_PERCENT;
40
+        return '%s'.self::ARAB_PERCENT;
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/Locale/LocaleBsCyrl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     protected function percentFormat()
20 20
     {
21
-        return '%s' . self::PERCENT;
21
+        return '%s'.self::PERCENT;
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Locale/LocaleBr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
 
37 37
     protected function percentFormat()
38 38
     {
39
-        return '%s' . self::NBSP . self::PERCENT;
39
+        return '%s'.self::NBSP.self::PERCENT;
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/Locale/LocaleBe.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
 
37 37
     protected function percentFormat()
38 38
     {
39
-        return '%s' . self::NBSP . self::PERCENT;
39
+        return '%s'.self::NBSP.self::PERCENT;
40 40
     }
41 41
 }
Please login to merge, or discard this patch.