@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
1 | +<?php require __DIR__.'/_header.php'; ?> |
|
2 | 2 | |
3 | 3 | <?php |
4 | 4 | $map = [ |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | <tbody> |
58 | 58 | <?php foreach ($classes as $class) { |
59 | 59 | if (sizeof($class['violations']) > 0) { |
60 | - $currentId = 'bloc-' . uniqid(); |
|
60 | + $currentId = 'bloc-'.uniqid(); |
|
61 | 61 | ?> |
62 | 62 | |
63 | 63 | <tr> |
@@ -107,4 +107,4 @@ discard block |
||
107 | 107 | } |
108 | 108 | } |
109 | 109 | </script> |
110 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
111 | 110 | \ No newline at end of file |
111 | +<?php require __DIR__.'/_footer.php'; ?> |
|
112 | 112 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
1 | +<?php require __DIR__.'/_header.php'; ?> |
|
2 | 2 | <div class="row"> |
3 | 3 | <div class="column"> |
4 | 4 | <div class="bloc bloc-number"> |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | <tbody> |
62 | 62 | <?php |
63 | 63 | $classesS = $classes; |
64 | - usort($classesS, function ($a, $b) { |
|
64 | + usort($classesS, function($a, $b) { |
|
65 | 65 | return strcmp($b['pageRank'], $a['pageRank']); |
66 | 66 | }); |
67 | 67 | $classesS = array_slice($classesS, 0, 10); |
@@ -90,4 +90,4 @@ discard block |
||
90 | 90 | }; |
91 | 91 | </script> |
92 | 92 | |
93 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
94 | 93 | \ No newline at end of file |
94 | +<?php require __DIR__.'/_footer.php'; ?> |
|
95 | 95 | \ No newline at end of file |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | |
4 | 4 | <!-- Sidebar --> |
5 | -<?php if(!isset($fullwidth) || $fullwidth === false) {?> |
|
5 | +<?php if (!isset($fullwidth) || $fullwidth === false) {?> |
|
6 | 6 | <div id="sidebar"> |
7 | 7 | <div class="content"> |
8 | 8 | <div class="logo"> |
@@ -94,10 +94,10 @@ discard block |
||
94 | 94 | <path d="M0 0h24v24H0z" fill="none"/> |
95 | 95 | <path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"/> |
96 | 96 | </svg> |
97 | - Violations (<?php echo $sum->violations->total;?>) |
|
97 | + Violations (<?php echo $sum->violations->total; ?>) |
|
98 | 98 | </a> |
99 | 99 | </li> |
100 | - <?php if($config->has('junit')) { ?> |
|
100 | + <?php if ($config->has('junit')) { ?> |
|
101 | 101 | <li> |
102 | 102 | <a href="junit.html"> |
103 | 103 | <svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | </a> |
109 | 109 | </li> |
110 | 110 | <?php } ?> |
111 | - <?php if($config->has('git')) { ?> |
|
111 | + <?php if ($config->has('git')) { ?> |
|
112 | 112 | <li> |
113 | 113 | <a href="git.html"> |
114 | 114 | <img src="images/logo-git.png" alt=""> |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
1 | +<?php require __DIR__.'/_header.php'; ?> |
|
2 | 2 | |
3 | 3 | <div class="row"> |
4 | 4 | <div class="column"> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | </div> |
40 | 40 | |
41 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
41 | +<?php require __DIR__.'/_footer.php'; ?> |
|
42 | 42 | |
43 | 43 | |
44 | 44 | <script type="text/javascript"> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -require __DIR__ . '/_header.php'; ?> |
|
2 | +require __DIR__.'/_header.php'; ?> |
|
3 | 3 | |
4 | 4 | <?php |
5 | 5 | |
@@ -88,4 +88,4 @@ discard block |
||
88 | 88 | </div> |
89 | 89 | |
90 | 90 | |
91 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
92 | 91 | \ No newline at end of file |
92 | +<?php require __DIR__.'/_footer.php'; ?> |
|
93 | 93 | \ No newline at end of file |
@@ -44,30 +44,30 @@ discard block |
||
44 | 44 | $nbInterfaces = 0; |
45 | 45 | foreach ($metrics->all() as $key => $item) { |
46 | 46 | if ($item instanceof ClassMetric) { |
47 | - $classes[] = $item->all();; |
|
47 | + $classes[] = $item->all(); ; |
|
48 | 48 | } |
49 | 49 | if ($item instanceof InterfaceMetric) { |
50 | 50 | $nbInterfaces++; |
51 | 51 | } |
52 | 52 | if ($item instanceof FunctionMetric) { |
53 | - $functions[$key] = $item->all();; |
|
53 | + $functions[$key] = $item->all(); ; |
|
54 | 54 | } |
55 | 55 | if ($item instanceof FileMetric) { |
56 | - $files[$key] = $item->all();; |
|
56 | + $files[$key] = $item->all(); ; |
|
57 | 57 | } |
58 | 58 | if ($item instanceof ProjectMetric) { |
59 | - $project[$key] = $item->all();; |
|
59 | + $project[$key] = $item->all(); ; |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | |
63 | 63 | // sums |
64 | - $sum = (object)[ |
|
64 | + $sum = (object) [ |
|
65 | 65 | 'loc' => 0, |
66 | 66 | 'cloc' => 0, |
67 | 67 | 'lloc' => 0, |
68 | 68 | 'nbMethods' => 0, |
69 | 69 | ]; |
70 | - $avg = (object)[ |
|
70 | + $avg = (object) [ |
|
71 | 71 | 'ccn' => [], |
72 | 72 | 'bugs' => [], |
73 | 73 | 'kanDefect' => [], |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $violations[$name]++; |
129 | 129 | } |
130 | 130 | } |
131 | - $sum->violations = (object)$violations; |
|
131 | + $sum->violations = (object) $violations; |
|
132 | 132 | |
133 | 133 | |
134 | 134 | $this->avg = $avg; |
@@ -60,18 +60,18 @@ discard block |
||
60 | 60 | // extends |
61 | 61 | if (isset($node->extends)) { |
62 | 62 | if (is_array($node->extends)) { |
63 | - foreach ((array)$node->extends as $interface) { |
|
64 | - array_push($dependencies, (string)$interface); |
|
63 | + foreach ((array) $node->extends as $interface) { |
|
64 | + array_push($dependencies, (string) $interface); |
|
65 | 65 | } |
66 | 66 | } else { |
67 | - array_push($dependencies, (string)$node->extends); |
|
67 | + array_push($dependencies, (string) $node->extends); |
|
68 | 68 | } |
69 | 69 | } |
70 | 70 | |
71 | 71 | // implements |
72 | 72 | if (isset($node->implements)) { |
73 | 73 | foreach ($node->implements as $interface) { |
74 | - array_push($dependencies, (string)$interface); |
|
74 | + array_push($dependencies, (string) $interface); |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | // return |
83 | 83 | if (isset($stmt->returnType)) { |
84 | 84 | if ($stmt->returnType instanceof Node\Name\FullyQualified) { |
85 | - array_push($dependencies, (string)$stmt->returnType); |
|
85 | + array_push($dependencies, (string) $stmt->returnType); |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
@@ -90,13 +90,13 @@ discard block |
||
90 | 90 | foreach ($stmt->params as $param) { |
91 | 91 | if ($param->type) { |
92 | 92 | if ($param->type instanceof Node\Name\FullyQualified) { |
93 | - array_push($dependencies, (string)$param->type); |
|
93 | + array_push($dependencies, (string) $param->type); |
|
94 | 94 | } |
95 | 95 | } |
96 | 96 | } |
97 | 97 | |
98 | 98 | // instanciations, static calls |
99 | - \iterate_over_node($stmt, function ($node) use (&$dependencies) { |
|
99 | + \iterate_over_node($stmt, function($node) use (&$dependencies) { |
|
100 | 100 | switch (true) { |
101 | 101 | case $node instanceof Node\Expr\New_: |
102 | 102 | // new MyClass |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | foreach ($matches[1] as $check) { |
116 | 116 | foreach ($this->uses as $use) { |
117 | 117 | if ($use->alias === $check) { |
118 | - array_push($dependencies, (string)($use->name)); |
|
118 | + array_push($dependencies, (string) ($use->name)); |
|
119 | 119 | } |
120 | 120 | } |
121 | 121 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | $operands = []; |
57 | 57 | $operators = []; |
58 | 58 | |
59 | - iterate_over_node($node, function ($node) use (&$operators, &$operands) { |
|
59 | + iterate_over_node($node, function($node) use (&$operators, &$operands) { |
|
60 | 60 | |
61 | 61 | if ( |
62 | 62 | $node instanceof Node\Expr\BinaryOp |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $output = 0; |
53 | 53 | $fanout = []; |
54 | 54 | |
55 | - iterate_over_node($node, function ($node) use (&$output, &$fanout) { |
|
55 | + iterate_over_node($node, function($node) use (&$output, &$fanout) { |
|
56 | 56 | switch (true) { |
57 | 57 | case $node instanceof Stmt\Return_: |
58 | 58 | $output++; |