Passed
Push — develop ( c3bbc8...62f833 )
by Septianata
15:27
created
app/Providers/GoogleDriveServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,23 +18,23 @@
 block discarded – undo
18 18
      */
19 19
     public function boot()
20 20
     {
21
-        Storage::extend('google', function ($app, $config) {
21
+        Storage::extend('google', function($app, $config) {
22 22
             $client = new Google_Client;
23 23
 
24
-            $client->setClientId($config['clientId']);
25
-            $client->setClientSecret($config['clientSecret']);
26
-            $client->refreshToken($config['refreshToken']);
24
+            $client->setClientId($config[ 'clientId' ]);
25
+            $client->setClientSecret($config[ 'clientSecret' ]);
26
+            $client->refreshToken($config[ 'refreshToken' ]);
27 27
 
28 28
             /** @var \Google\Service\Drive|\Google_Service_Drive $service */
29 29
             $service = new Drive($client);
30 30
 
31
-            $options = [];
31
+            $options = [ ];
32 32
 
33
-            if (isset($config['teamDriveId'])) {
34
-                $options['teamDriveId'] = $config['teamDriveId'];
33
+            if (isset($config[ 'teamDriveId' ])) {
34
+                $options[ 'teamDriveId' ] = $config[ 'teamDriveId' ];
35 35
             }
36 36
 
37
-            $adapter = new GoogleDriveAdapter($service, $config['folderId'], $options);
37
+            $adapter = new GoogleDriveAdapter($service, $config[ 'folderId' ], $options);
38 38
 
39 39
             return new Filesystem($adapter);
40 40
         });
Please login to merge, or discard this patch.