@@ -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 | if (!isset($project['unitTesting'])) { |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | $unit = $project['unitTesting']; |
| 11 | -$getMetricForClass = function ($classname, $metric) use ($classes) { |
|
| 11 | +$getMetricForClass = function($classname, $metric) use ($classes) { |
|
| 12 | 12 | foreach ($classes as $class) { |
| 13 | 13 | if ($classname !== $class['name']) { |
| 14 | 14 | continue; |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | <td><span class="path"><?php echo $class['name']; ?></span></td> |
| 83 | 83 | <?php foreach (['ccn', 'bugs'] as $attribute) {?> |
| 84 | 84 | <td> |
| 85 | - <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]);?>> |
|
| 85 | + <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]); ?>> |
|
| 86 | 86 | <?php echo isset($class[$attribute]) ? $class[$attribute] : ''; ?> |
| 87 | 87 | </span> |
| 88 | 88 | </td> |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | </div> |
| 147 | 147 | </div> |
| 148 | 148 | </div> |
| 149 | - <?php require __DIR__ . '/_footer.php'; ?> |
|
| 149 | + <?php require __DIR__.'/_footer.php'; ?> |
|
| 150 | 150 | |
| 151 | 151 | <script> |
| 152 | 152 | var clusterize = new Clusterize({ |
@@ -201,12 +201,12 @@ discard block |
||
| 201 | 201 | foreach ($unit['tests'] as $test) { |
| 202 | 202 | array_push($unitTimeJson->children, [ |
| 203 | 203 | 'name' => $test->classname, |
| 204 | - 'time' => (float)$test->time, |
|
| 204 | + 'time' => (float) $test->time, |
|
| 205 | 205 | ]); |
| 206 | 206 | } |
| 207 | 207 | ?> |
| 208 | 208 | |
| 209 | - var json = <?php echo json_encode($unitTimeJson);?>; |
|
| 209 | + var json = <?php echo json_encode($unitTimeJson); ?>; |
|
| 210 | 210 | root = json; |
| 211 | 211 | var nodes = treemap.nodes(json) |
| 212 | 212 | .filter(function (d) { |
@@ -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"> |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | <td><span class="path"><?php echo $class['name']; ?></span></td> |
| 27 | 27 | <?php foreach (['afferentCoupling', 'efferentCoupling', 'instability', 'pageRank'] as $attribute) {?> |
| 28 | 28 | <td> |
| 29 | - <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]);?>> |
|
| 29 | + <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]); ?>> |
|
| 30 | 30 | <?php echo isset($class[$attribute]) ? $class[$attribute] : ''; ?> |
| 31 | 31 | </span> |
| 32 | 32 | </td> |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | </div> |
| 43 | 43 | |
| 44 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
| 44 | +<?php require __DIR__.'/_footer.php'; ?> |
|
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | <script> |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
| 1 | +<?php require __DIR__.'/_header.php'; ?> |
|
| 2 | 2 | |
| 3 | 3 | <?php |
| 4 | 4 | $relations = []; |
| 5 | -$getPackageName = function ($name) { |
|
| 5 | +$getPackageName = function($name) { |
|
| 6 | 6 | return $name === '\\' ? 'global' : substr($name, 0, -1); |
| 7 | 7 | }; |
| 8 | 8 | foreach ($packages as $package) { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | </div> |
| 42 | 42 | </div> |
| 43 | 43 | |
| 44 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
| 44 | +<?php require __DIR__.'/_footer.php'; ?> |
|
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | <script> |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | </div> |
| 2 | 2 | |
| 3 | 3 | <!-- Sidebar --> |
| 4 | -<?php if(!isset($fullwidth) || $fullwidth === false) {?> |
|
| 4 | +<?php if (!isset($fullwidth) || $fullwidth === false) {?> |
|
| 5 | 5 | <div id="sidebar"> |
| 6 | 6 | <div class="content"> |
| 7 | 7 | <div class="logo"> |
| 8 | - <a href="https://github.com/phpmetrics/phpmetrics"><img src="<?php echo $this->assetPath;?>images/phpmetrics-maintenability.png" |
|
| 8 | + <a href="https://github.com/phpmetrics/phpmetrics"><img src="<?php echo $this->assetPath; ?>images/phpmetrics-maintenability.png" |
|
| 9 | 9 | alt="Logo PhpMetrics"></a> |
| 10 | 10 | <h1>PhpMetrics</h1> |
| 11 | 11 | </div> |
@@ -28,10 +28,10 @@ discard block |
||
| 28 | 28 | <path d="M0 0h24v24H0z" fill="none"> |
| 29 | 29 | <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"> |
| 30 | 30 | </svg> |
| 31 | - Violations (<?php echo $sum->violations->total;?>) |
|
| 31 | + Violations (<?php echo $sum->violations->total; ?>) |
|
| 32 | 32 | </a> |
| 33 | 33 | </li> |
| 34 | - <?php if($this->isHomePage()) {?> |
|
| 34 | + <?php if ($this->isHomePage()) {?> |
|
| 35 | 35 | <li> |
| 36 | 36 | <a href="composer.html"> |
| 37 | 37 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></svg> |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | </a> |
| 40 | 40 | </li> |
| 41 | 41 | <?php } ?> |
| 42 | - <?php if($this->isHomePage() && $config->has('junit')) { ?> |
|
| 42 | + <?php if ($this->isHomePage() && $config->has('junit')) { ?> |
|
| 43 | 43 | <li> |
| 44 | 44 | <a href="junit.html"> |
| 45 | 45 | <svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | Package relations |
| 134 | 134 | </a> |
| 135 | 135 | </li> |
| 136 | - <?php if($this->isHomePage() && $config->has('git')) { ?> |
|
| 136 | + <?php if ($this->isHomePage() && $config->has('git')) { ?> |
|
| 137 | 137 | <li> |
| 138 | 138 | <a href="git.html"> |
| 139 | 139 | <img src="images/logo-git.png" alt=""> |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -require __DIR__ . '/_header.php'; ?> |
|
| 2 | +require __DIR__.'/_header.php'; ?> |
|
| 3 | 3 | |
| 4 | 4 | |
| 5 | 5 | <?php |
@@ -16,12 +16,12 @@ discard block |
||
| 16 | 16 | $history = array_slice($history, -24); |
| 17 | 17 | $json = []; |
| 18 | 18 | foreach ($history as $date => $values) { |
| 19 | - array_push($json, (object)[ |
|
| 19 | + array_push($json, (object) [ |
|
| 20 | 20 | 'date' => $date, |
| 21 | 21 | 'key' => 'Additions', |
| 22 | 22 | 'value' => abs($values['additions']), |
| 23 | 23 | ]); |
| 24 | - array_push($json, (object)[ |
|
| 24 | + array_push($json, (object) [ |
|
| 25 | 25 | 'date' => $date, |
| 26 | 26 | 'key' => 'Removes', |
| 27 | 27 | 'value' => abs($values['removes']), |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | </div> |
| 99 | 99 | </div> |
| 100 | 100 | |
| 101 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
| 101 | +<?php require __DIR__.'/_footer.php'; ?> |
|
| 102 | 102 | |
| 103 | 103 | |
| 104 | 104 | <script> |
@@ -1,17 +1,17 @@ discard block |
||
| 1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
| 1 | +<?php require __DIR__.'/_header.php'; ?> |
|
| 2 | 2 | |
| 3 | 3 | <?php |
| 4 | 4 | $relations = []; |
| 5 | 5 | $classesCp = []; |
| 6 | 6 | foreach ($classes as $class) { |
| 7 | 7 | |
| 8 | - $class['name'] = '\\' . $class['name']; |
|
| 8 | + $class['name'] = '\\'.$class['name']; |
|
| 9 | 9 | $classesCp[$class['name']] = $class; |
| 10 | 10 | $classesCp[$class['name']]['externals'] = []; |
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | foreach ($class['externals'] as &$ext) { |
| 14 | - $ext = '\\' . $ext; |
|
| 14 | + $ext = '\\'.$ext; |
|
| 15 | 15 | if (!isset($classes[$ext])) { |
| 16 | 16 | $classesCp[$ext] = [ |
| 17 | 17 | 'name' => $ext, |
@@ -22,10 +22,10 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | foreach ($classesCp as $class) { |
| 25 | - array_push($relations, (object)[ |
|
| 25 | + array_push($relations, (object) [ |
|
| 26 | 26 | 'name' => $class['name'], |
| 27 | 27 | 'size' => 3000, |
| 28 | - 'relations' => (array)array_values(array_unique($class['externals'])), |
|
| 28 | + 'relations' => (array) array_values(array_unique($class['externals'])), |
|
| 29 | 29 | ]); |
| 30 | 30 | } |
| 31 | 31 | ?> |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | </div> |
| 41 | 41 | </div> |
| 42 | 42 | |
| 43 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
| 43 | +<?php require __DIR__.'/_footer.php'; ?> |
|
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | <script> |