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 ( 748deb...a96bc9 )
by Cristian
02:10
created
src/app/Http/Controllers/BackupController.php 1 patch
Indentation   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -12,84 +12,84 @@
 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']);
37
-		$this->data['title'] = 'Backups';
35
+        // reverse the backups, so the newest one would be on top
36
+        $this->data['backups'] = array_reverse($this->data['backups']);
37
+        $this->data['title'] = 'Backups';
38 38
 
39
-		return view("backupmanager::backup", $this->data);
40
-	}
39
+        return view("backupmanager::backup", $this->data);
40
+    }
41 41
 
42
-	public function create()
43
-	{
44
-	    try {
45
-	      // start the backup process
46
-	      Artisan::call('backup:run');
47
-	      $output = Artisan::output();
42
+    public function create()
43
+    {
44
+        try {
45
+            // start the backup process
46
+            Artisan::call('backup:run');
47
+            $output = Artisan::output();
48 48
 
49
-	      // log the results
50
-	      Log::info("Backpack\BackupManager -- new backup started from admin interface \r\n".$output);
51
-	      // return the results as a response to the ajax call
52
-	      echo($output);
53
-	    } catch (Exception $e) {
54
-	      Response::make($e->getMessage(), 500);
55
-	    }
49
+            // log the results
50
+            Log::info("Backpack\BackupManager -- new backup started from admin interface \r\n".$output);
51
+            // return the results as a response to the ajax call
52
+            echo($output);
53
+        } catch (Exception $e) {
54
+            Response::make($e->getMessage(), 500);
55
+        }
56 56
 
57
-	    // return 'success';
58
-	}
57
+        // return 'success';
58
+    }
59 59
 
60
-	/**
61
-	 * Downloads a backup zip file.
62
-	 *
63
-	 * TODO: make it work no matter the flysystem driver (S3 Bucket, etc).
64
-	 */
65
-	public function download($file_name)
66
-	{
67
-		$disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
60
+    /**
61
+     * Downloads a backup zip file.
62
+     *
63
+     * TODO: make it work no matter the flysystem driver (S3 Bucket, etc).
64
+     */
65
+    public function download($file_name)
66
+    {
67
+        $disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
68 68
 
69
-		if ($disk->exists($file_name)) {
70
-			return response()->download(storage_path('backups/'.$file_name));
71
-		}
72
-		else
73
-		{
74
-			abort(404, "The backup file doesn't exist.");
75
-		}
76
-	}
69
+        if ($disk->exists($file_name)) {
70
+            return response()->download(storage_path('backups/'.$file_name));
71
+        }
72
+        else
73
+        {
74
+            abort(404, "The backup file doesn't exist.");
75
+        }
76
+    }
77 77
 
78
-	/**
79
-	 * Deletes a backup file.
80
-	 */
81
-	public function delete($file_name)
82
-	{
83
-		$disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
78
+    /**
79
+     * Deletes a backup file.
80
+     */
81
+    public function delete($file_name)
82
+    {
83
+        $disk = Storage::disk(config('laravel-backup.backup.destination.disks')[0]);
84 84
 
85
-		if ($disk->exists($file_name)) {
86
-			$disk->delete($file_name);
85
+        if ($disk->exists($file_name)) {
86
+            $disk->delete($file_name);
87 87
 
88
-			return 'success';
89
-		}
90
-		else
91
-		{
92
-			abort(404, "The backup file doesn't exist.");
93
-		}
94
-	}
88
+            return 'success';
89
+        }
90
+        else
91
+        {
92
+            abort(404, "The backup file doesn't exist.");
93
+        }
94
+    }
95 95
 }
Please login to merge, or discard this patch.