1 | <?php |
||
5 | class BreadCrumbs |
||
|
|||
6 | { |
||
7 | /** |
||
8 | * Create breadcrumbs from a path |
||
9 | * Example: if $path is "foo/bar/baz", $return is [ |
||
10 | * 'foo' => 'foo', |
||
11 | * 'foo/bar' => 'bar', |
||
12 | * 'foo/bar/baz' => 'baz', |
||
13 | * ]. |
||
14 | * |
||
15 | * @param string $path |
||
16 | * |
||
17 | * @return array |
||
18 | */ |
||
19 | public static function create(string $path): array |
||
34 | } |
||
35 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.