Completed
Push — master ( ce3432...4645e4 )
by personal
08:19 queued 06:08
created
src/Hal/Metric/System/UnitTesting/UnitTesting.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         // JUNIT format
74 74
         foreach ($xpath->query('//testsuite[@file]') as $suite) {
75
-            array_push($testsuites, (object)[
75
+            array_push($testsuites, (object) [
76 76
                 'file' => $suite->getAttribute('file'),
77 77
                 'name' => $suite->getAttribute('name'),
78 78
                 'assertions' => $suite->getAttribute('assertions'),
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 $assertions = $case === $suite->firstChild->nextSibling ? $suite->getAttribute('assertions') : 0;
102 102
             }
103 103
 
104
-            $testsuites[$case->getAttribute('class')] = (object)[
104
+            $testsuites[$case->getAttribute('class')] = (object) [
105 105
                 'file' => $case->getAttribute('file'),
106 106
                 'name' => $case->getAttribute('class'),
107 107
                 'assertions' => $assertions,
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $traverser->addVisitor(new ExternalsVisitor($metricsOfUnitTest));
121 121
 
122 122
             if (!file_exists($suite->file) || !is_readable($suite->file)) {
123
-                throw new \LogicException('Cannot find source file referenced in testsuite: ' . $suite->file);
123
+                throw new \LogicException('Cannot find source file referenced in testsuite: '.$suite->file);
124 124
             }
125 125
 
126 126
             $code = file_get_contents($suite->file);
@@ -133,10 +133,10 @@  discard block
 block discarded – undo
133 133
 
134 134
             // list of externals sources of unit test
135 135
             $metric = $metricsOfUnitTest->get($suite->name);
136
-            $externals = (array)$metric->get('externals');
136
+            $externals = (array) $metric->get('externals');
137 137
 
138 138
             // global stats for each test
139
-            $infoAboutTests[$suite->name] = (object)[
139
+            $infoAboutTests[$suite->name] = (object) [
140 140
                 'nbExternals' => sizeof(array_unique($externals)),
141 141
                 'externals' => array_unique($externals),
142 142
                 'filename' => $suite->file,
Please login to merge, or discard this patch.
src/Hal/Report/Html/template/_footer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
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">
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
                             <path d="M0 0h24v24H0z" fill="none"/>
94 94
                             <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"/>
95 95
                         </svg>
96
-                        Violations (<?php echo $sum->violations->total;?>)
96
+                        Violations (<?php echo $sum->violations->total; ?>)
97 97
                     </a>
98 98
                 </li>
99
-                <?php if($config->has('junit')) { ?>
99
+                <?php if ($config->has('junit')) { ?>
100 100
                     <li>
101 101
                         <a href="junit.html">
102 102
                             <svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                         </a>
108 108
                     </li>
109 109
                 <?php } ?>
110
-                <?php if($config->has('git')) { ?>
110
+                <?php if ($config->has('git')) { ?>
111 111
                 <li>
112 112
                     <a href="git.html">
113 113
                         <img src="images/logo-git.png" alt="">
Please login to merge, or discard this patch.
src/Hal/Report/Html/template/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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">
5
-                <div class="label"><a href="violations.php">Violations</a> (<?php echo $sum->violations->critical;?> criticals, <?php echo $sum->violations->error;?> errors)</div>
5
+                <div class="label"><a href="violations.php">Violations</a> (<?php echo $sum->violations->critical; ?> criticals, <?php echo $sum->violations->error; ?> errors)</div>
6 6
                 <div class="number"><?php echo $sum->violations->total; ?></div>
7 7
             </div>
8 8
         </div>
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                         <tbody id="contentClassRank" class="clusterize-content">
93 93
                         <?php
94 94
                         $classesS = $classes;
95
-                        usort($classesS, function ($a, $b) {
95
+                        usort($classesS, function($a, $b) {
96 96
                             return strcmp($b['pageRank'], $a['pageRank']);
97 97
                         });
98 98
                         //$classesS = array_slice($classesS, 0, 10);
@@ -126,4 +126,4 @@  discard block
 block discarded – undo
126 126
         };
127 127
     </script>
128 128
 
129
-<?php require __DIR__ . '/_footer.php'; ?>
130 129
\ No newline at end of file
130
+<?php require __DIR__.'/_footer.php'; ?>
131 131
\ No newline at end of file
Please login to merge, or discard this patch.