Test Failed
Push — master ( bfe357...41d8e8 )
by Antonio Carlos
25:24
created
src/Checkers/Docusign.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
         return !class_exists(ApiClient::class);
38 38
     }
39 39
 
40
+    /**
41
+     * @param \DocuSign\eSign\Model\LoginInformation $login
42
+     */
40 43
     private function getAccountIdFromLogin($login)
41 44
     {
42 45
         return $login->getLoginAccounts()[0]->getAccountId();
@@ -80,7 +83,7 @@  discard block
 block discarded – undo
80 83
     }
81 84
 
82 85
     /**
83
-     * @param $config
86
+     * @param ApiClient $config
84 87
      * @return \DocuSign\eSign\Model\LoginInformation
85 88
      */
86 89
     protected function getLoginInformation($config)
@@ -106,6 +109,9 @@  discard block
 block discarded – undo
106 109
         );
107 110
     }
108 111
 
112
+    /**
113
+     * @return string
114
+     */
109 115
     private function makeFileName($file)
110 116
     {
111 117
         if (is_absolute_path($file)) {
Please login to merge, or discard this patch.
src/Service.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function getSilentChecker()
97 97
     {
98
-        return function () {
98
+        return function() {
99 99
             return $this->checkResources();
100 100
         };
101 101
     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function isHealthy()
110 110
     {
111
-        return $this->checkResources()->reduce(function ($carry, $item) {
111
+        return $this->checkResources()->reduce(function($carry, $item) {
112 112
             return $carry && $item->isHealthy();
113 113
         }, true);
114 114
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     private function makeString($string, $checkSystem)
124 124
     {
125 125
         return (
126
-            $string .
126
+            $string.
127 127
             ($checkSystem
128 128
                 ? config('health.string.ok')
129 129
                 : config('health.string.fail'))
@@ -158,10 +158,10 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function string()
160 160
     {
161
-        return collect($this->health())->reduce(function ($current, $resource) {
161
+        return collect($this->health())->reduce(function($current, $resource) {
162 162
             return (
163
-                $current .
164
-                ($current ? config('health.string.glue') : '') .
163
+                $current.
164
+                ($current ? config('health.string.glue') : '').
165 165
                 $this->makeString(
166 166
                     $resource->abbreviation,
167 167
                     $resource->isHealthy()
Please login to merge, or discard this patch.
src/Support/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
             return $callback();
125 125
         }
126 126
 
127
-        $key = config('health.cache.key') . $key;
127
+        $key = config('health.cache.key').$key;
128 128
 
129 129
         $this->flush(false, $key);
130 130
 
Please login to merge, or discard this patch.
src/Support/helpers.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
     function package_resources_dir()
46 46
     {
47 47
         return (
48
-            package_dir() .
49
-            DIRECTORY_SEPARATOR .
50
-            'config' .
51
-            DIRECTORY_SEPARATOR .
48
+            package_dir().
49
+            DIRECTORY_SEPARATOR.
50
+            'config'.
51
+            DIRECTORY_SEPARATOR.
52 52
             'resources'
53 53
         );
54 54
     }
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
         // Optional wrapper(s).
67 67
         $regExp =
68 68
             // Optional root prefix.
69
-            '%^(?<wrappers>(?:[[:print:]]{2,}://)*)' .
70
-            '(?<root>(?:[[:alpha:]]:/|/)?)' .
69
+            '%^(?<wrappers>(?:[[:print:]]{2,}://)*)'.
70
+            '(?<root>(?:[[:alpha:]]:/|/)?)'.
71 71
             // Actual path.
72 72
             '(?<path>(?:[[:print:]]*))$%';
73 73
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         $f_base = floor($base);
99 99
 
100
-        return round(pow(1024, $base - floor($base)), 1) . $suffix[$f_base];
100
+        return round(pow(1024, $base - floor($base)), 1).$suffix[$f_base];
101 101
     }
102 102
 }
103 103
 
Please login to merge, or discard this patch.
src/Support/ResourceLoader.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         if (
43 43
             is_array($filters = config($configKey = 'health.resources.enabled'))
44 44
         ) {
45
-            return collect($resources)->filter(function ($resource, $name) use (
45
+            return collect($resources)->filter(function($resource, $name) use (
46 46
                 $filters
47 47
             ) {
48 48
                 foreach ($filters as $filter) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         return $this->replaceExecutableCode(
99 99
             $this->loadResourcesFiles()
100
-        )->mapWithKeys(function ($value, $key) {
100
+        )->mapWithKeys(function($value, $key) {
101 101
             return [$this->removeExtension($key) => $value];
102 102
         });
103 103
     }
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
      */
110 110
     private function replaceExecutableCode($files)
111 111
     {
112
-        return $files->map(function ($item) {
112
+        return $files->map(function($item) {
113 113
             return collect($item)
114
-                ->map(function ($value) {
114
+                ->map(function($value) {
115 115
                     return (new Resolver())->recursivelyFindAndReplaceExecutableCode(
116 116
                         $value
117 117
                     );
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
      */
181 181
     private function sanitizeResources($resources)
182 182
     {
183
-        return $resources->map(function ($resource) {
184
-            return collect($resource)->mapWithKeys(function ($value, $key) {
183
+        return $resources->map(function($resource) {
184
+            return collect($resource)->mapWithKeys(function($value, $key) {
185 185
                 return [$this->sanitizeKey($key) => $value];
186 186
             });
187 187
         });
Please login to merge, or discard this patch.
src/Checkers/Broadcasting.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     protected function bootRouter()
16 16
     {
17
-        $this->target->routes->each(function ($route, $name) {
17
+        $this->target->routes->each(function($route, $name) {
18 18
             $this->registerRoute($route, $name);
19 19
         });
20 20
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected function createPingRow()
72 72
     {
73
-        info('Laravel Health Panel - PING - secret: ' . $this->target->secret);
73
+        info('Laravel Health Panel - PING - secret: '.$this->target->secret);
74 74
 
75 75
         return [
76 76
             'pinged_at' => Carbon::now(),
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function pong($secret)
99 99
     {
100
-        info('Laravel Health Panel - PONG - secret: ' . $secret);
100
+        info('Laravel Health Panel - PONG - secret: '.$secret);
101 101
 
102
-        $this->database = $this->database->map(function ($item) use ($secret) {
102
+        $this->database = $this->database->map(function($item) use ($secret) {
103 103
             if ($item['secret'] == $secret) {
104 104
                 $item['ponged_at'] = Carbon::now();
105 105
             }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     {
120 120
         $timedout = false;
121 121
 
122
-        $this->database = $this->database->filter(function ($item) use (
122
+        $this->database = $this->database->filter(function($item) use (
123 123
             &$timedout
124 124
         ) {
125 125
             if (!$item['ponged_at']) {
Please login to merge, or discard this patch.
src/Checkers/DirectoryAndFilePresence.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         return $this->makeResult(
43 43
             false,
44
-            $this->target->getErrorMessage() . ' - ' . implode(' ', $messages)
44
+            $this->target->getErrorMessage().' - '.implode(' ', $messages)
45 45
         );
46 46
     }
47 47
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $messages = [];
56 56
 
57 57
         $result = collect($this->getFiles())
58
-            ->map(function ($files, $type) use (&$messages) {
58
+            ->map(function($files, $type) use (&$messages) {
59 59
                 $isGood = true;
60 60
 
61 61
                 $files = collect($files);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
                 return $isGood;
75 75
             })
76
-            ->filter(function ($value) {
76
+            ->filter(function($value) {
77 77
                 return $value === false;
78 78
             });
79 79
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function buildFileExistsChecker()
100 100
     {
101
-        return function ($file) {
101
+        return function($file) {
102 102
             return $this->fileExists($file);
103 103
         };
104 104
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function buildFileDoesNotExistsChecker()
112 112
     {
113
-        return function ($file) {
113
+        return function($file) {
114 114
             return $this->fileDoesNotExists($file);
115 115
         };
116 116
     }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function buildIsDirectoryChecker()
124 124
     {
125
-        return function ($file) {
125
+        return function($file) {
126 126
             return $this->isDirectory($file);
127 127
         };
128 128
     }
Please login to merge, or discard this patch.
src/Checkers/PortCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     protected function hosnameAndIp($hostname, $ipAdress)
34 34
     {
35
-        return $hostname . ($hostname != $ipAdress ? " ({$ipAdress})" : '');
35
+        return $hostname.($hostname != $ipAdress ? " ({$ipAdress})" : '');
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
src/Checkers/Filesystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
         file_put_contents($file, $content);
49 49
 
50
-        register_shutdown_function(function () use ($file) {
50
+        register_shutdown_function(function() use ($file) {
51 51
             if (file_exists($file)) {
52 52
                 unlink($file);
53 53
             }
Please login to merge, or discard this patch.