@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | protected static function actionToBreadcrumbClass($action) |
18 | 18 | { |
19 | 19 | $arr = explode('/', Inflector::camel2id($action->controller->getUniqueId())); |
20 | - $arr[\count($arr) - 1] = Inflector::camelize(ucfirst($arr[\count($arr) - 1])); |
|
21 | - return static::$crumbsNamespace . '\\' . implode('\\', $arr) . 'Crumbs'; |
|
20 | + $arr[ \count($arr) - 1 ] = Inflector::camelize(ucfirst($arr[ \count($arr) - 1 ])); |
|
21 | + return static::$crumbsNamespace.'\\'.implode('\\', $arr).'Crumbs'; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | protected static function actionToBreadcrumbMethod($action) |
25 | 25 | { |
26 | - return 'crumb' . Inflector::camelize($action->id); |
|
26 | + return 'crumb'.Inflector::camelize($action->id); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -38,13 +38,13 @@ discard block |
||
38 | 38 | |
39 | 39 | if (class_exists($class) && method_exists($class, $method)) { |
40 | 40 | $reflectionMethod = new \ReflectionMethod($class, $method); |
41 | - $data = []; |
|
41 | + $data = [ ]; |
|
42 | 42 | foreach ($reflectionMethod->getParameters() as $p) { |
43 | - $data[] = $params[$p->getName()] ?? null; |
|
43 | + $data[ ] = $params[ $p->getName() ] ?? null; |
|
44 | 44 | } |
45 | - return array_filter(\call_user_func_array([$class, $method], $data)); |
|
45 | + return array_filter(\call_user_func_array([ $class, $method ], $data)); |
|
46 | 46 | } |
47 | 47 | |
48 | - return []; |
|
48 | + return [ ]; |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 | \ No newline at end of file |