@@ -1018,6 +1018,9 @@ discard block |
||
| 1018 | 1018 | $this->defaultCommand = $commandName; |
| 1019 | 1019 | } |
| 1020 | 1020 | |
| 1021 | + /** |
|
| 1022 | + * @param string $string |
|
| 1023 | + */ |
|
| 1021 | 1024 | private function stringWidth($string) |
| 1022 | 1025 | { |
| 1023 | 1026 | if (false === $encoding = mb_detect_encoding($string, null, true)) { |
@@ -1027,6 +1030,9 @@ discard block |
||
| 1027 | 1030 | return mb_strwidth($string, $encoding); |
| 1028 | 1031 | } |
| 1029 | 1032 | |
| 1033 | + /** |
|
| 1034 | + * @param integer $width |
|
| 1035 | + */ |
|
| 1030 | 1036 | private function splitStringByWidth($string, $width) |
| 1031 | 1037 | { |
| 1032 | 1038 | // str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly. |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace App\Controller\Component; |
| 4 | 4 | |
| 5 | 5 | use Cake\Controller\Component; |
| 6 | -use Cake\Routing\Router; |
|
| 7 | 6 | /** |
| 8 | 7 | * Order and search component handling generation of ordering and |
| 9 | 8 | * searching conditions in loading data tables |