@@ -62,14 +62,14 @@ discard block |
||
| 62 | 62 | 'a1_ele_len' => '44', |
| 63 | 63 | 'bit_str_beg' => '03', |
| 64 | 64 | 'bit_str_len' => '42', |
| 65 | - 'bit_str_val' => '00' . $keypair[1], |
|
| 65 | + 'bit_str_val' => '00'.$keypair[1], |
|
| 66 | 66 | ); |
| 67 | 67 | |
| 68 | 68 | $dec = trim(implode($ecpemstruct)); |
| 69 | 69 | |
| 70 | 70 | $this->pemDataLenCheck($dec); |
| 71 | 71 | |
| 72 | - return '-----BEGIN EC PRIVATE KEY-----' . "\r\n" . chunk_split(base64_encode($this->binConv($dec)), 64) . '-----END EC PRIVATE KEY-----'; |
|
| 72 | + return '-----BEGIN EC PRIVATE KEY-----'."\r\n".chunk_split(base64_encode($this->binConv($dec)), 64).'-----END EC PRIVATE KEY-----'; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $this->pemOidCheck($ecpemstruct['obj_id_val']); |
| 95 | 95 | |
| 96 | 96 | $private_key = $ecpemstruct['oct_sec_val']; |
| 97 | - $public_key = '04' . $ecpemstruct['bit_str_val']; |
|
| 97 | + $public_key = '04'.$ecpemstruct['bit_str_val']; |
|
| 98 | 98 | |
| 99 | 99 | $this->pemKeyLenCheck(array($private_key, $public_key)); |
| 100 | 100 | |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | $oid_string = ''; |
| 220 | 220 | |
| 221 | 221 | foreach ($oid as $key => $value) { |
| 222 | - $oid_string .= $value . "."; |
|
| 222 | + $oid_string .= $value."."; |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | $oid_string = substr($oid_string, 0, -1); |