Completed
Pull Request — master (#202)
by personal
03:41 queued 42s
created
src/Hal/Application/Formater/Twig/FormatingExtension.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function textify($v)
54 54
     {
55
-        return ucfirst(preg_replace( '/([a-z0-9])([A-Z])/', "$1 $2", $v ));
55
+        return ucfirst(preg_replace('/([a-z0-9])([A-Z])/', "$1 $2", $v));
56 56
     }
57 57
 
58 58
     /**
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
     public function extensionsMenu(ExtensionService $extensions)
75 75
     {
76 76
         $html = '';
77
-        foreach($extensions->getRepository()->all() as $extension) {
77
+        foreach ($extensions->getRepository()->all() as $extension) {
78 78
             $helper = $extension->getReporterHtmlSummary();
79
-            if(!$helper) {
79
+            if (!$helper) {
80 80
                 continue;
81 81
             }
82
-            foreach($helper->getMenus() as $name => $label) {
82
+            foreach ($helper->getMenus() as $name => $label) {
83 83
                 $html .= sprintf('<li id="link-%s"><a>%s</a></li>', $name, $label);
84 84
             }
85 85
         }
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
     public function extensionsJs(ExtensionService $extensions)
94 94
     {
95 95
         $html = '';
96
-        foreach($extensions->getRepository()->all() as $extension) {
96
+        foreach ($extensions->getRepository()->all() as $extension) {
97 97
             $helper = $extension->getReporterHtmlSummary();
98
-            if(!$helper) {
98
+            if (!$helper) {
99 99
                 continue;
100 100
             }
101 101
             $html .= $helper->renderJs();
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
     public function extensionsContent(ExtensionService $extensions)
111 111
     {
112 112
         $html = '';
113
-        foreach($extensions->getRepository()->all() as $extension) {
113
+        foreach ($extensions->getRepository()->all() as $extension) {
114 114
             $helper = $extension->getReporterHtmlSummary();
115
-            if(!$helper) {
115
+            if (!$helper) {
116 116
                 continue;
117 117
             }
118 118
             $html .= $helper->renderHtml();
Please login to merge, or discard this patch.
src/Hal/Application/Formater/Summary/Cli.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @inheritdoc
70 70
      */
71
-    public function terminate(ResultCollection $collection, ResultCollection $groupedResults){
71
+    public function terminate(ResultCollection $collection, ResultCollection $groupedResults) {
72 72
 
73 73
         $this->output->write(str_pad("\x0D", 80, "\x20"));
74 74
         $this->output->writeln('');
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
         // score
77 77
         $score = $collection->getScore();
78 78
         foreach ($score->all() as $name => $value) {
79
-            $this->output->writeln(sprintf('%s %s', str_pad($name, 35, '.'),  str_pad($value, 5, ' ', STR_PAD_LEFT). ' / ' . Scoring::MAX));
79
+            $this->output->writeln(sprintf('%s %s', str_pad($name, 35, '.'), str_pad($value, 5, ' ', STR_PAD_LEFT).' / '.Scoring::MAX));
80 80
         }
81 81
         $this->output->writeln('');
82 82
 
83 83
         // extensions
84
-        foreach($this->extensionsService->getRepository()->all() as $plugin) {
84
+        foreach ($this->extensionsService->getRepository()->all() as $plugin) {
85 85
             $helper = $plugin->getReporterCliSummary();
86
-            if(!$helper) {
86
+            if (!$helper) {
87 87
                 continue;
88 88
             }
89 89
             $this->output->write($helper->render());
Please login to merge, or discard this patch.