Passed
Push — main ( 74922c...7edd23 )
by ikechukwu
03:01
created
Tests/FileUploadTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
     {
23 23
         Storage::fake(config('clamavfileupload.disk'));
24 24
 
25
-        $file = __DIR__ . '/file/lorem-ipsum.pdf';
26
-        if (! is_dir($tmpDir = __DIR__ . '/tmp')) {
25
+        $file = __DIR__.'/file/lorem-ipsum.pdf';
26
+        if (!is_dir($tmpDir = __DIR__.'/tmp')) {
27 27
             mkdir($tmpDir, 0755, true);
28 28
         }
29 29
 
30
-        $tmpFile = $tmpDir . '/lorem-ipsum.pdf';
30
+        $tmpFile = $tmpDir.'/lorem-ipsum.pdf';
31 31
         $this->assertTrue(copy($file, $tmpFile));
32 32
 
33 33
         $request = new Request;
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
     {
53 53
         Storage::fake(config('clamavfileupload.disk'));
54 54
 
55
-        $file = __DIR__ . '/file/lorem-ipsum.pdf';
56
-        if (! is_dir($tmpDir = __DIR__ . '/tmp')) {
55
+        $file = __DIR__.'/file/lorem-ipsum.pdf';
56
+        if (!is_dir($tmpDir = __DIR__.'/tmp')) {
57 57
             mkdir($tmpDir, 0755, true);
58 58
         }
59 59
 
60
-        $tmpFile = $tmpDir . '/lorem-ipsum.pdf';
60
+        $tmpFile = $tmpDir.'/lorem-ipsum.pdf';
61 61
         $this->assertTrue(copy($file, $tmpFile));
62 62
 
63 63
         $request = new Request;
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
     {
90 90
         Storage::fake(config('clamavfileupload.disk'));
91 91
 
92
-        $file = __DIR__ . '/file/lorem-ipsum.pdf';
93
-        if (! is_dir($tmpDir = __DIR__ . '/tmp')) {
92
+        $file = __DIR__.'/file/lorem-ipsum.pdf';
93
+        if (!is_dir($tmpDir = __DIR__.'/tmp')) {
94 94
             mkdir($tmpDir, 0755, true);
95 95
         }
96 96
 
97
-        $tmpFile = $tmpDir . '/lorem-ipsum.pdf';
97
+        $tmpFile = $tmpDir.'/lorem-ipsum.pdf';
98 98
         $this->assertTrue(copy($file, $tmpFile));
99 99
 
100 100
         $request = new Request;
Please login to merge, or discard this patch.
src/Support/ClamavFileUpload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public static function fileUpload(): bool|FileUploadModel|EloquentCollection
25 25
     {
26
-        if(self::$request->file()) {
26
+        if (self::$request->file()) {
27 27
             self::storeFiles();
28 28
 
29 29
             if (!self::areFilesSafe()) {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 return false;
134 134
             }
135 135
 
136
-            $i ++;
136
+            $i++;
137 137
         }
138 138
 
139 139
         FileScanPass::dispatch(self::$scanData);
Please login to merge, or discard this patch.