@@ -654,10 +654,10 @@ discard block |
||
654 | 654 | * @param string $string |
655 | 655 | * @return bool |
656 | 656 | */ |
657 | - protected function is_ascii($string = '' ) { |
|
657 | + protected function is_ascii($string = '') { |
|
658 | 658 | $num = 0; |
659 | - while( isset( $string[$num] ) ) { |
|
660 | - if( ord( $string[$num] ) & 0x80 ) { |
|
659 | + while (isset($string[$num])) { |
|
660 | + if (ord($string[$num]) & 0x80) { |
|
661 | 661 | return false; |
662 | 662 | } |
663 | 663 | $num++; |
@@ -780,7 +780,7 @@ discard block |
||
780 | 780 | $contentLength = mb_strlen($this->getOutput(), '8bit'); |
781 | 781 | $connection = 'close'; |
782 | 782 | |
783 | - if ((bool)$asAssociative) { |
|
783 | + if ((bool) $asAssociative) { |
|
784 | 784 | return [ |
785 | 785 | 'Content-type' => $contentType, |
786 | 786 | 'Content-Disposition' => $contentDisposition, |
@@ -989,7 +989,7 @@ discard block |
||
989 | 989 | |
990 | 990 | $matches = []; |
991 | 991 | preg_match('/os (\d+)_(\d+)\s+/', $browser, $matches); |
992 | - $version = isset($matches[1]) ? ((int)$matches[1]) : 999; |
|
992 | + $version = isset($matches[1]) ? ((int) $matches[1]) : 999; |
|
993 | 993 | |
994 | 994 | return ($version < 8); |
995 | 995 | } |