Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 5d2b26...5da4be )
by Cristian
02:17
created
src/app/Http/Controllers/BackupController.php 1 patch
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -12,83 +12,83 @@
 block discarded – undo
12 12
 
13 13
 class BackupController extends Controller {
14 14
 
15
-	public function index()
16
-	{
17
-		$disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
15
+    public function index()
16
+    {
17
+        $disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
18 18
 
19
-		$files = $disk->files();
20
-		$this->data['backups'] = [];
19
+        $files = $disk->files();
20
+        $this->data['backups'] = [];
21 21
 
22
-		// make an array of backup files, with their filesize and creation date
23
-		foreach ($files as $k => $f) {
24
-			// only take the zip files into account
25
-			if (substr($f, -4) == '.zip' && $disk->exists($f)) {
26
-				$this->data['backups'][] = [
27
-											'file_path' => $f,
28
-											'file_name' => str_replace('backups/', '', $f),
29
-											'file_size' => $disk->size($f),
30
-											'last_modified' => $disk->lastModified($f),
31
-											];
32
-			}
33
-		}
22
+        // make an array of backup files, with their filesize and creation date
23
+        foreach ($files as $k => $f) {
24
+            // only take the zip files into account
25
+            if (substr($f, -4) == '.zip' && $disk->exists($f)) {
26
+                $this->data['backups'][] = [
27
+                                            'file_path' => $f,
28
+                                            'file_name' => str_replace('backups/', '', $f),
29
+                                            'file_size' => $disk->size($f),
30
+                                            'last_modified' => $disk->lastModified($f),
31
+                                            ];
32
+            }
33
+        }
34 34
 
35
-		// reverse the backups, so the newest one would be on top
36
-		$this->data['backups'] = array_reverse($this->data['backups']);
35
+        // reverse the backups, so the newest one would be on top
36
+        $this->data['backups'] = array_reverse($this->data['backups']);
37 37
 
38
-		return view("backupmanager::backup", $this->data);
39
-	}
38
+        return view("backupmanager::backup", $this->data);
39
+    }
40 40
 
41
-	public function create()
42
-	{
43
-	    try {
44
-	      // start the backup process
45
-	      Artisan::call('backup:run');
46
-	      $output = Artisan::output();
41
+    public function create()
42
+    {
43
+        try {
44
+            // start the backup process
45
+            Artisan::call('backup:run');
46
+            $output = Artisan::output();
47 47
 
48
-	      // log the results
49
-	      Log::info("Backpack\BackupManager -- new backup started from admin interface \r\n".$output);
50
-	      // return the results as a response to the ajax call
51
-	      echo($output);
52
-	    } catch (Exception $e) {
53
-	      Response::make($e->getMessage(), 500);
54
-	    }
48
+            // log the results
49
+            Log::info("Backpack\BackupManager -- new backup started from admin interface \r\n".$output);
50
+            // return the results as a response to the ajax call
51
+            echo($output);
52
+        } catch (Exception $e) {
53
+            Response::make($e->getMessage(), 500);
54
+        }
55 55
 
56
-	    // return 'success';
57
-	}
56
+        // return 'success';
57
+    }
58 58
 
59
-	/**
60
-	 * Downloads a backup zip file.
61
-	 *
62
-	 * TODO: make it work no matter the flysystem driver (S3 Bucket, etc).
63
-	 */
64
-	public function download($file_name)
65
-	{
66
-		$disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
59
+    /**
60
+     * Downloads a backup zip file.
61
+     *
62
+     * TODO: make it work no matter the flysystem driver (S3 Bucket, etc).
63
+     */
64
+    public function download($file_name)
65
+    {
66
+        $disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
67 67
 
68
-		if ($disk->exists($file_name)) {
69
-			return response()->download(storage_path('backups/'.$file_name));
70
-		}
71
-		else
72
-		{
73
-			abort(404, "The backup file doesn't exist.");
74
-		}
75
-	}
68
+        if ($disk->exists($file_name)) {
69
+            return response()->download(storage_path('backups/'.$file_name));
70
+        }
71
+        else
72
+        {
73
+            abort(404, "The backup file doesn't exist.");
74
+        }
75
+    }
76 76
 
77
-	/**
78
-	 * Deletes a backup file.
79
-	 */
80
-	public function delete($file_name)
81
-	{
82
-		$disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
77
+    /**
78
+     * Deletes a backup file.
79
+     */
80
+    public function delete($file_name)
81
+    {
82
+        $disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
83 83
 
84
-		if ($disk->exists($file_name)) {
85
-			$disk->delete($file_name);
84
+        if ($disk->exists($file_name)) {
85
+            $disk->delete($file_name);
86 86
 
87
-			return 'success';
88
-		}
89
-		else
90
-		{
91
-			abort(404, "The backup file doesn't exist.");
92
-		}
93
-	}
87
+            return 'success';
88
+        }
89
+        else
90
+        {
91
+            abort(404, "The backup file doesn't exist.");
92
+        }
93
+    }
94 94
 }
Please login to merge, or discard this patch.