Passed
Branch master (20d29c)
by Luca
03:12
created
Category
src/LighthouseClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
         return $result;
37 37
     }
38 38
 
39
-    protected function clearFiles(){
40
-        if(is_file($this->lighthouseProcess->getOutputPath())) {
39
+    protected function clearFiles() {
40
+        if (is_file($this->lighthouseProcess->getOutputPath())) {
41 41
             unlink($this->lighthouseProcess->getOutputPath());
42 42
         }
43 43
     }
Please login to merge, or discard this patch.
src/Result/Result.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             ],
35 35
         ]);
36 36
 
37
-        foreach (array_keys($response) as $key){
37
+        foreach (array_keys($response) as $key) {
38 38
             $options->setDefault($key, null);
39 39
         }
40 40
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function getPerformance() : ?int
64 64
     {
65 65
         $value = $this->response['categories']['performance']['score'];
66
-        if(!$value){
66
+        if (!$value) {
67 67
             return $value;
68 68
         }
69 69
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public function getAccessibility() : ?int
77 77
     {
78 78
         $value = $this->response['categories']['accessibility']['score'];
79
-        if(!$value){
79
+        if (!$value) {
80 80
             return $value;
81 81
         }
82 82
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     public function getBestPractices() : ?int
90 90
     {
91 91
         $value = $this->response['categories']['best-practices']['score'];
92
-        if(!$value){
92
+        if (!$value) {
93 93
             return $value;
94 94
         }
95 95
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     public function getSEO() : ?int
103 103
     {
104 104
         $value = $this->response['categories']['seo']['score'];
105
-        if(!$value){
105
+        if (!$value) {
106 106
             return $value;
107 107
         }
108 108
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     public function getProgressiveWebApp() : ?int
116 116
     {
117 117
         $value = $this->response['categories']['pwa']['score'];
118
-        if(!$value){
118
+        if (!$value) {
119 119
             return $value;
120 120
         }
121 121
 
Please login to merge, or discard this patch.
src/Process/LightHouseProcess.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         ]);
28 28
 
29 29
         $resolver->setAllowedValues('output', [
30
-            'json','html',
30
+            'json', 'html',
31 31
         ]);
32 32
 
33 33
         $this->options = $resolver->resolve($options);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     protected function getBasicAuth() : ?string
40 40
     {
41
-        if($this->getUsername() and $this->getPassword()) {
41
+        if ($this->getUsername() and $this->getPassword()) {
42 42
             return sprintf('Basic %s', base64_encode($this->getUsername() . ':' . $this->getPassword()));
43 43
         }
44 44
 
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
             $this->getBasicAuth() ? '--extra-headers="' . $headers . '"' : '',
60 60
         ];
61 61
 
62
-        $options = array_reduce($options, function ($options, $currOption){
63
-            if($currOption != ''){
62
+        $options = array_reduce($options, function($options, $currOption) {
63
+            if ($currOption != '') {
64 64
                 $options[] = $currOption;
65 65
             }
66 66
 
Please login to merge, or discard this patch.