Completed
Push — master ( 3da188...209742 )
by
unknown
20:22 queued 18:53
created
src/Drivers/AbstractAdapter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
     abstract function getQuota();
181 181
 
182 182
     /**
183
-     * @param $user
183
+     * @param \SocialiteProviders\Manager\OAuth2\User $user
184 184
      *
185 185
      * @return array
186 186
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 use Carbon\Carbon;
6 6
 use Illuminate\Http\RedirectResponse;
7
-use SocialiteProviders\Manager\OAuth2\AbstractProvider;
8 7
 use STS\StorageConnect\Events\CloudStorageSetup;
9 8
 use STS\StorageConnect\Models\CloudStorage;
10 9
 use STS\StorageConnect\Models\CustomManagedCloudStorage;
11 10
 use STS\StorageConnect\Models\Quota;
12 11
 use STS\StorageConnect\UploadRequest;
13 12
 use STS\StorageConnect\UploadResponse;
13
+use SocialiteProviders\Manager\OAuth2\AbstractProvider;
14 14
 
15 15
 abstract class AbstractAdapter
16 16
 {
Please login to merge, or discard this patch.
src/StorageConnectManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     }
136 136
 
137 137
     /**
138
-     * @param $driver
138
+     * @param string $driver
139 139
      *
140 140
      * @return mixed
141 141
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace STS\StorageConnect;
4 4
 
5
+use Illuminate\Http\RedirectResponse;
5 6
 use Illuminate\Support\Arr;
6 7
 use Illuminate\Support\Manager;
7
-use Illuminate\Support\Str;
8
-use Illuminate\Http\RedirectResponse;
9 8
 use InvalidArgumentException;
10
-use Laravel\Socialite\Two\AbstractProvider;
11 9
 use STS\StorageConnect\Drivers\AbstractAdapter;
12 10
 use STS\StorageConnect\Models\CloudStorage;
13 11
 use STS\StorageConnect\Models\CustomManagedCloudStorage;
Please login to merge, or discard this patch.
src/Subscribers/LogsActivity.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
     }
56 56
 
57 57
     /**
58
-     * @param $message
59
-     * @param $storage
58
+     * @param string $message
59
+     * @param \STS\StorageConnect\Models\CloudStorage $storage
60 60
      * @param array $context
61 61
      */
62 62
     protected function info($message, $storage, array $context = [])
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-     * @param $message
69
-     * @param $storage
68
+     * @param string $message
69
+     * @param \STS\StorageConnect\Models\CloudStorage $storage
70 70
      * @param array $context
71 71
      */
72 72
     protected function warning($message, $storage, array $context = [])
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
     }
76 76
 
77 77
     /**
78
-     * @param $message
79
-     * @param $storage
78
+     * @param string $message
79
+     * @param \STS\StorageConnect\Models\CloudStorage $storage
80 80
      * @param array $context
81 81
      */
82 82
     protected function error($message, $storage, array $context = [])
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace STS\StorageConnect\Subscribers;
3 3
 
4
+use Log;
4 5
 use STS\StorageConnect\Events\CloudStorageDisabled;
5 6
 use STS\StorageConnect\Events\CloudStorageEnabled;
6 7
 use STS\StorageConnect\Events\CloudStorageSetup;
7
-use Log;
8 8
 use STS\StorageConnect\Events\UploadFailed;
9 9
 use STS\StorageConnect\Events\UploadInProgress;
10 10
 use STS\StorageConnect\Events\UploadRetrying;
Please login to merge, or discard this patch.
src/Models/CustomManagedCloudStorage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     }
63 63
 
64 64
     /**
65
-     * @param $callback
65
+     * @param callable $callback
66 66
      *
67 67
      * @return $this
68 68
      */
Please login to merge, or discard this patch.
src/Drivers/Google/Adapter.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     }
94 94
 
95 95
     /**
96
-     * @param $destinationPath
96
+     * @param string $destinationPath
97 97
      *
98 98
      * @return Google_Service_Drive_DriveFile
99 99
      */
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
     /**
111
-     * @param $sourcePath
111
+     * @param string $sourcePath
112 112
      *
113 113
      * @return array
114 114
      */
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     /**
126
-     * @param $path
126
+     * @param string $path
127 127
      *
128
-     * @return mixed
128
+     * @return string
129 129
      */
130 130
     protected function getFolderIdForPath( $path )
131 131
     {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     }
136 136
 
137 137
     /**
138
-     * @param                                $sourcePath
138
+     * @param                                string $sourcePath
139 139
      * @param Google_Service_Drive_DriveFile $file
140 140
      * @param                                $filesize
141 141
      *
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
 use Illuminate\Support\Str;
10 10
 use STS\StorageConnect\Drivers\AbstractAdapter;
11 11
 use STS\StorageConnect\Models\Quota;
12
-use StorageConnect;
13 12
 use STS\StorageConnect\UploadRequest;
14 13
 use STS\StorageConnect\UploadResponse;
14
+use StorageConnect;
15 15
 
16 16
 class Adapter extends AbstractAdapter
17 17
 {
Please login to merge, or discard this patch.
migrations/2019_02_20_135601_add_enabled_disabled_timestamps.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Support\Facades\Schema;
4
-use Illuminate\Database\Schema\Blueprint;
5 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6 6
 
7 7
 class AddEnabledDisabledTimestamps extends Migration
8 8
 {
Please login to merge, or discard this patch.
src/Exceptions/StorageUnavailableException.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Illuminate\Support\Arr;
6 6
 use STS\StorageConnect\Connections\Connection;
7 7
 use STS\StorageConnect\Models\CloudStorage;
8
-use Throwable;
9 8
 
10 9
 /**
11 10
  * Class StorageUnavailableException
Please login to merge, or discard this patch.
src/Models/Concerns/UploadsFiles.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
 trait UploadsFiles
23 23
 {
24 24
     /**
25
-     * @param      $source
26
-     * @param      $destinationPath
25
+     * @param      string $source
26
+     * @param      string $destinationPath
27 27
      * @param bool $shouldQueue
28
-     * @param null $queueJob
28
+     * @param UploadFile $queueJob
29 29
      *
30 30
      * @return UploadResponse|bool
31 31
      */
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * @param UploadResponse $response
65
-     * @param $queueJob
65
+     * @param CheckUploadStatus $queueJob
66 66
      */
67 67
     public function checkUploadStatus(UploadResponse $response, $queueJob)
68 68
     {
Please login to merge, or discard this patch.