@@ -103,6 +103,9 @@ discard block |
||
| 103 | 103 | empty($value); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @param string $key |
|
| 108 | + */ |
|
| 106 | 109 | public function hasEmpty($key) |
| 107 | 110 | { |
| 108 | 111 | return $this->has($key) && $this->isEmpty($key); |
@@ -193,6 +196,9 @@ discard block |
||
| 193 | 196 | return preg_replace_callback('/_([a-z])/', $func, $str); |
| 194 | 197 | } |
| 195 | 198 | |
| 199 | + /** |
|
| 200 | + * @param string $classname |
|
| 201 | + */ |
|
| 196 | 202 | public static function classnameToUppercase($classname) |
| 197 | 203 | { |
| 198 | 204 | return str_replace(' ', '_', ucwords(str_replace('_', ' ', $classname))); |