1 | <?php |
||
6 | class Xhgui_Util |
||
7 | { |
||
8 | /** |
||
9 | * Creates a simplified URL given a standard URL. |
||
10 | * Does the following transformations: |
||
11 | * |
||
12 | * - Remove numeric values after =. |
||
13 | * |
||
14 | * @param string $url |
||
15 | * @return string |
||
16 | */ |
||
17 | public static function simpleUrl($url) |
||
25 | |||
26 | /** |
||
27 | * Serialize data for storage |
||
28 | * |
||
29 | * @param $data |
||
30 | * @param bool $profiles |
||
31 | * |
||
32 | * @return false|string |
||
33 | */ |
||
34 | public static function getDataForStorage($data, $profiles = true) |
||
59 | |||
60 | /** |
||
61 | * Get id for a record. |
||
62 | * |
||
63 | * By default this method will try to re-use request id from http server. |
||
64 | * This is needed for some storage engines that don't have string/hashlike id generation. |
||
65 | * |
||
66 | * @param array $data |
||
67 | * @param bool $useRequestId |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | public static function getId(array $data = array(), $useRequestId = true) |
||
110 | |||
111 | |||
112 | /** |
||
113 | * @param array $data |
||
114 | * @return mixed|string |
||
115 | */ |
||
116 | public static function getMethod() { |
||
125 | } |
||
126 |
The break statement is not necessary if it is preceded for example by a return statement:
If you would like to keep this construct to be consistent with other case statements, you can safely mark this issue as a false-positive.