@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $fanout = []; |
52 | 52 | |
53 | 53 | $parentNode = $node; |
54 | - iterate_over_node($node, function ($node) use (&$output, &$fanout, $parentNode) { |
|
54 | + iterate_over_node($node, function($node) use (&$output, &$fanout, $parentNode) { |
|
55 | 55 | switch (true) { |
56 | 56 | case $node instanceof Stmt\Return_: |
57 | 57 | $output++; |
@@ -61,14 +61,14 @@ discard block |
||
61 | 61 | if ('static' === $class || 'self' === $class) { |
62 | 62 | $class = getNameOfNode($parentNode); |
63 | 63 | } |
64 | - $fanout[] = $class . '::' . getNameOfNode($node->name) . '()'; |
|
64 | + $fanout[] = $class.'::'.getNameOfNode($node->name).'()'; |
|
65 | 65 | break; |
66 | 66 | case $node instanceof Node\Expr\MethodCall: |
67 | 67 | $class = getNameOfNode($node->var); |
68 | 68 | if ('this' === $class) { |
69 | 69 | $class = getNameOfNode($parentNode); |
70 | 70 | } |
71 | - $fanout[] = $class . '->' . getNameOfNode($node->name) . '()'; |
|
71 | + $fanout[] = $class.'->'.getNameOfNode($node->name).'()'; |
|
72 | 72 | break; |
73 | 73 | } |
74 | 74 | }); |
@@ -73,6 +73,6 @@ |
||
73 | 73 | )->withHelp($reportMetric[1])->getMetricsString(); |
74 | 74 | } |
75 | 75 | |
76 | - return implode("\n", $reportStrings) . "\n# EOF\n"; |
|
76 | + return implode("\n", $reportStrings)."\n# EOF\n"; |
|
77 | 77 | } |
78 | 78 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | return; |
43 | 43 | } |
44 | 44 | if (!file_exists(dirname($logFile)) || !is_writable(dirname($logFile))) { |
45 | - throw new \RuntimeException('You don\'t have permissions to write OpenMetrics report in ' . $logFile); |
|
45 | + throw new \RuntimeException('You don\'t have permissions to write OpenMetrics report in '.$logFile); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | if (!class_exists(GaugeCollection::class)) { |