Failed Conditions
Pull Request — 0.3 (#20)
by jean
12:27
created
src/ProcessBundle/StatDumper/StatCliDumper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
 
85 85
     public function showBar($countPercents)
86 86
     {
87
-        $bar = str_repeat(' ',10);
88
-        $bar .= str_repeat(' ', (100 - $countPercents)/2);
87
+        $bar = str_repeat(' ', 10);
88
+        $bar .= str_repeat(' ', (100 - $countPercents) / 2);
89 89
         $bar .= "\e[32m\e[42m".str_repeat('#', $countPercents)."\e[0m";
90 90
         $bar .= PHP_EOL;
91 91
 
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
     public function showBarClass($class, $countPercents)
96 96
     {
97 97
         $size = strlen($class);
98
-        $bar = str_repeat(' ',10);
99
-        $bar .= str_repeat(' ', (100 - $countPercents)/2);
98
+        $bar = str_repeat(' ', 10);
99
+        $bar .= str_repeat(' ', (100 - $countPercents) / 2);
100 100
         $bar .= "\e[42m".$class."\e[0m";
101 101
         if ($countPercents > $size) {
102 102
             $bar .= "\e[32m\e[42m".str_repeat('#', $countPercents - $size)."\e[0m";
Please login to merge, or discard this patch.
src/ProcessBundle/Resources/views/profiling.html.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
    <?php $nbmili = 1; ?>
32 32
     <tr>
33 33
         <td> GRAPH </td>
34
-        <?php for($i = 1; $i <= $duration / $nbmili; $i++) { ?>
34
+        <?php for ($i = 1; $i <= $duration / $nbmili; $i++) { ?>
35 35
             <td style="background: blue; color: white; font-weight: bold;" colspan="<?php echo $nbmili; ?>"><?php echo $i * $nbmili; ?>ms</td>
36 36
         <?php } ?>
37 37
     </tr>
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             <?php $cursor = 0; ?>
45 45
             <?php $periods = $event->getPeriods(); ?>
46 46
             <?php $current = array_shift($periods); ?>
47
-            <?php for($i = 1; $i <= $duration; $i++) { ?>
47
+            <?php for ($i = 1; $i <= $duration; $i++) { ?>
48 48
                 <?php
49 49
                     $color = 'black';
50 50
                     $end = false;
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
                             $color = 'green';
64 64
                         }
65 65
                     } else {
66
-                        $color= 'white';
66
+                        $color = 'white';
67 67
                     }
68 68
 
69 69
                     $letter = ($current) ? $current->getStartTime() : -1;
70 70
 
71 71
                 ?>
72
-                <td style="<?php if($end) { echo 'border-bottom: solid red 2px;'; } ?> background: <?php echo $color; ?>; color: <?php echo $color; ?>;"></td>
72
+                <td style="<?php if ($end) { echo 'border-bottom: solid red 2px;'; } ?> background: <?php echo $color; ?>; color: <?php echo $color; ?>;"></td>
73 73
             <?php } ?>
74 74
         </tr>
75 75
         <?php } ?>
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
                     if (null !== $current) {
59 59
                         if (($current->getStartTime() + $delay) > $i) {
60 60
                             $color = 'white';
61
-                        }
62
-                        elseif (($current->getEndTime() + $delay) >= $i) {
61
+                        } elseif (($current->getEndTime() + $delay) >= $i) {
63 62
                             $color = 'green';
64 63
                         }
65 64
                     } else {
Please login to merge, or discard this patch.