Test Setup Failed
Push — master ( 842960...477961 )
by Antonio Carlos
02:04
created
src/Checkers/DiskSpace.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     {
16 16
         $free = disk_free_space($this->target->path);
17 17
 
18
-        if (! $this->isEnough($free, $this->target->minimum)) {
18
+        if (!$this->isEnough($free, $this->target->minimum)) {
19 19
             return $this->makeResult(
20 20
                 false,
21 21
                 sprintf(
Please login to merge, or discard this patch.
src/Checkers/DirectoryAndFilePresence.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@  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);
62 62
 
63 63
                 foreach ($files as $file) {
64
-                    if (! is_null($file)) {
64
+                    if (!is_null($file)) {
65 65
                         foreach ($this->getCheckers($type) as $checker) {
66 66
                             if (is_string($message = $checker($file))) {
67 67
                                 $messages[] = $message;
@@ -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
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function buildFileExistsChecker()
99 99
     {
100
-        return function ($file) {
100
+        return function($file) {
101 101
             return $this->fileExists($file);
102 102
         };
103 103
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function buildFileDoesNotExistsChecker()
111 111
     {
112
-        return function ($file) {
112
+        return function($file) {
113 113
             return $this->fileDoesNotExists($file);
114 114
         };
115 115
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function buildIsDirectoryChecker()
123 123
     {
124
-        return function ($file) {
124
+        return function($file) {
125 125
             return $this->isDirectory($file);
126 126
         };
127 127
     }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     public function fileDoesNotExists($file)
178 178
     {
179
-        if (! file_exists($file)) {
179
+        if (!file_exists($file)) {
180 180
             return true;
181 181
         }
182 182
 
Please login to merge, or discard this patch.
src/database/migrations/2018_09_09_000001_create_table_health_checks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('health_checks', function (Blueprint $table) {
15
+        Schema::create('health_checks', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
 
18 18
             $table->string('resource_name');
Please login to merge, or discard this patch.
src/Support/Cache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function flush($force = false, $key = null)
31 31
     {
32
-        if (! isset($this->flushed[$key]) && ($force || $this->needsToFlush())) {
32
+        if (!isset($this->flushed[$key]) && ($force || $this->needsToFlush())) {
33 33
             try {
34 34
                 $this->forceFlush($key);
35 35
             } catch (Exception $exception) {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function remember($key, \Closure $callback)
125 125
     {
126
-        if (! $this->cacheIsEnabled()) {
126
+        if (!$this->cacheIsEnabled()) {
127 127
             return $callback();
128 128
         }
129 129
 
Please login to merge, or discard this patch.
src/Checkers/ServerLoad.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             $current['load_5'] > $this->target->maxLoad['load_5'] ||
21 21
             $current['load_15'] > $this->target->maxLoad['load_15'];
22 22
 
23
-        return $this->makeResult(! $inTrouble, $this->makeMessage($current));
23
+        return $this->makeResult(!$inTrouble, $this->makeMessage($current));
24 24
     }
25 25
 
26 26
     protected function makeMessage($current, $saved = null)
Please login to merge, or discard this patch.
src/Checkers/Expression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         }
30 30
 
31 31
         if ($this->target->shouldReturn === false) {
32
-            return ! $expressionResult;
32
+            return !$expressionResult;
33 33
         }
34 34
 
35 35
         return preg_match("|{$this->target->shouldReturn}|", $expressionResult);
Please login to merge, or discard this patch.
src/Checkers/Docusign.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
             return $this->makeResult(false, $this->target->notInstalledMessage);
21 21
         }
22 22
 
23
-        if (! $this->login()) {
23
+        if (!$this->login()) {
24 24
             throw new DomainException(
25 25
                 'Unable to authenticate to the DocuSign Api'
26 26
             );
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     private function docusignIsNotInstalled()
33 33
     {
34
-        return ! class_exists(ApiClient::class);
34
+        return !class_exists(ApiClient::class);
35 35
     }
36 36
 
37 37
     private function getAccountIdFromLogin($login)
Please login to merge, or discard this patch.
src/Checkers/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
     protected function findFirstModel()
35 35
     {
36
-        collect($this->target->models)->each(function ($model) {
36
+        collect($this->target->models)->each(function($model) {
37 37
             instantiate($model)->first();
38 38
         });
39 39
 
Please login to merge, or discard this patch.
src/Notifications/HealthStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
                 config('health.notifications.from.icon_emoji')
104 104
             )
105 105
             ->content($this->getMessage())
106
-            ->attachment(function ($attachment) {
106
+            ->attachment(function($attachment) {
107 107
                 $attachment
108 108
                     ->title($this->getActionTitle(), $this->getActionLink())
109 109
                     ->content($this->result->errorMessage);
Please login to merge, or discard this patch.