Passed
Push — master ( dbfecf...07f9ad )
by Antonio Carlos
02:06
created
src/ServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
         $cache = call_user_func($this->cacheClosure);
132 132
 
133
-        $this->healthServiceClosure = function () use (
133
+        $this->healthServiceClosure = function() use (
134 134
             $resourceChecker,
135 135
             $cache
136 136
         ) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     private function getCacheClosure()
164 164
     {
165
-        $cacheClosure = function () {
165
+        $cacheClosure = function() {
166 166
             return new Cache();
167 167
         };
168 168
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     private function getResourceCheckerClosure($resourceLoader, $cache)
180 180
     {
181
-        $resourceCheckerInstance = function () use ($resourceLoader, $cache) {
181
+        $resourceCheckerInstance = function() use ($resourceLoader, $cache) {
182 182
             return new ResourceChecker($resourceLoader, $cache);
183 183
         };
184 184
 
@@ -259,9 +259,9 @@  discard block
 block discarded – undo
259 259
 
260 260
     private function registerResourcesRoutes()
261 261
     {
262
-        collect($this->resourceLoader->getResources())->each(function ($item) {
262
+        collect($this->resourceLoader->getResources())->each(function($item) {
263 263
             if (isset($item['routes'])) {
264
-                collect($item['routes'])->each(function ($route, $key) {
264
+                collect($item['routes'])->each(function($route, $key) {
265 265
                     $this->registerRoute($route, $key);
266 266
                 });
267 267
             }
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      */
293 293
     private function registerRoutes()
294 294
     {
295
-        collect(($routes = $this->getRoutes()))->each(function ($route) {
295
+        collect(($routes = $this->getRoutes()))->each(function($route) {
296 296
             $this->registerRoute($route);
297 297
         });
298 298
 
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
     }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $this->bootRouter();
32 32
 
33
-        $isHealthy = ! $this->pingTimedout();
33
+        $isHealthy = !$this->pingTimedout();
34 34
 
35 35
         $this->createPing();
36 36
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function pong($secret)
97 97
     {
98
-        $this->database = $this->database->map(function ($item) use ($secret) {
98
+        $this->database = $this->database->map(function($item) use ($secret) {
99 99
             if ($item['secret'] == $secret) {
100 100
                 $item['ponged_at'] = Carbon::now();
101 101
             }
@@ -115,10 +115,10 @@  discard block
 block discarded – undo
115 115
     {
116 116
         $timedout = false;
117 117
 
118
-        $this->database = $this->database->filter(function ($item) use (
118
+        $this->database = $this->database->filter(function($item) use (
119 119
             &$timedout
120 120
         ) {
121
-            if (! $item['ponged_at']) {
121
+            if (!$item['ponged_at']) {
122 122
                 if (
123 123
                     Carbon::now()->diffInSeconds(
124 124
                         $this->parseDate($item['pinged_at'])
Please login to merge, or discard this patch.