Completed
Push — master ( f9a0e9...abd695 )
by Yarek
02:42
created
src/Sign/Sign.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
     private function _hex2bin($hexstr)
7 7
     {
8 8
         $n = strlen($hexstr);
9
-        $sbin="";
10
-        $i=0;
11
-        while($i<$n)
9
+        $sbin = "";
10
+        $i = 0;
11
+        while ($i < $n)
12 12
         {
13
-            $a =substr($hexstr,$i,2);
14
-            $c = pack("H*",$a);
15
-            if ($i==0){$sbin=$c;}
16
-            else {$sbin.=$c;}
17
-            $i+=2;
13
+            $a = substr($hexstr, $i, 2);
14
+            $c = pack("H*", $a);
15
+            if ($i==0) {$sbin = $c; }
16
+            else {$sbin .= $c; }
17
+            $i += 2;
18 18
         }
19 19
         return $sbin;
20 20
     }
Please login to merge, or discard this patch.
src/Sign/Param.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 
15 15
     public function align($type) {
16 16
         switch ($type) {
17
-            case 'left': $this->_pad = STR_PAD_RIGHT;break;
18
-            case 'center': $this->_pad = STR_PAD_BOTH;break;
19
-            case 'right': $this->_pad = STR_PAD_LEFT;break;
17
+            case 'left': $this->_pad = STR_PAD_RIGHT; break;
18
+            case 'center': $this->_pad = STR_PAD_BOTH; break;
19
+            case 'right': $this->_pad = STR_PAD_LEFT; break;
20 20
         }
21 21
         $this->_align = $type;
22 22
     }
Please login to merge, or discard this patch.
src/Sign/ColourMap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,21 +10,21 @@
 block discarded – undo
10 10
             'yellow' => '18'
11 11
         ),
12 12
         'red' => array(
13
-            'black' => '08',//
14
-            'red' => '08',//
15
-            'green' => '08',//
13
+            'black' => '08', //
14
+            'red' => '08', //
15
+            'green' => '08', //
16 16
             'yellow' => '19',
17 17
         ),
18 18
         'green' => array(
19 19
             'black' => '02',
20 20
             'red' => '08', //
21
-            'green' => '08',//
21
+            'green' => '08', //
22 22
             'yellow' => '08'//
23 23
         ),
24 24
         'yellow' => array(
25
-            'black' => '08',//
25
+            'black' => '08', //
26 26
             'red' => '0B',
27
-            'green' => '08',//
27
+            'green' => '08', //
28 28
             'yellow' => '08'//
29 29
         )
30 30
     );
Please login to merge, or discard this patch.
src/Sign/LIne.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         }
75 75
         // add padding
76 76
         if ($length < $this->_length) {
77
-            for ($i=$length; $i < $this->_length; $i++) {
77
+            for ($i = $length; $i < $this->_length; $i++) {
78 78
                 $output .= $this->_char(' ', null, $this->_background);
79 79
             }
80 80
         }
Please login to merge, or discard this patch.