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 ( a96bc9...65c0f9 )
by Cristian
02:05
created
src/resources/lang/en/backup.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-	/*
5
+    /*
6 6
 	|--------------------------------------------------------------------------
7 7
 	| Backup Language Lines
8 8
 	|--------------------------------------------------------------------------
@@ -12,25 +12,25 @@  discard block
 block discarded – undo
12 12
 	|
13 13
 	*/
14 14
 
15
-	'backup' 						=> 'Backup',
16
-	'create_a_new_backup'     		=> 'Create a new backup',
17
-	'existing_backups'     			=> 'Existing backups',
18
-	'date'     						=> 'Date',
19
-	'file_size'     				=> 'File size',
20
-	'actions'     					=> 'Actions',
21
-	'download'     					=> 'Download',
22
-	'delete'     					=> 'Delete',
23
-	'delete_confirm' 				=> 'Are your sure you want to delete this backup file?',
24
-	'delete_confirmation_title'		=> 'Done',
25
-	'delete_confirmation_message' 	=> 'The backup was file deleted.',
26
-	'delete_error_title' 			=> 'Error',
27
-	'delete_error_message' 			=> 'The backup file has NOT been deleted.',
28
-	'delete_cancel_title' 			=> "It's ok",
29
-	'delete_cancel_message' 		=> 'The backup file has NOT been deleted.',
30
-	'create_confirmation_title' 	=> 'Backup completed',
31
-	'create_confirmation_message' 	=> 'Reloading the page in 3 seconds.',
32
-	'create_error_title' 			=> 'Backup error',
33
-	'create_error_message' 			=> 'The backup was file could NOT be created.',
34
-	'create_warning_title'			=> 'Unknown error',
35
-	'create_warning_message' 		=> 'Your backup may NOT have been created. Please check log files for details.',
15
+    'backup' 						=> 'Backup',
16
+    'create_a_new_backup'     		=> 'Create a new backup',
17
+    'existing_backups'     			=> 'Existing backups',
18
+    'date'     						=> 'Date',
19
+    'file_size'     				=> 'File size',
20
+    'actions'     					=> 'Actions',
21
+    'download'     					=> 'Download',
22
+    'delete'     					=> 'Delete',
23
+    'delete_confirm' 				=> 'Are your sure you want to delete this backup file?',
24
+    'delete_confirmation_title'		=> 'Done',
25
+    'delete_confirmation_message' 	=> 'The backup was file deleted.',
26
+    'delete_error_title' 			=> 'Error',
27
+    'delete_error_message' 			=> 'The backup file has NOT been deleted.',
28
+    'delete_cancel_title' 			=> "It's ok",
29
+    'delete_cancel_message' 		=> 'The backup file has NOT been deleted.',
30
+    'create_confirmation_title' 	=> 'Backup completed',
31
+    'create_confirmation_message' 	=> 'Reloading the page in 3 seconds.',
32
+    'create_error_title' 			=> 'Backup error',
33
+    'create_error_message' 			=> 'The backup was file could NOT be created.',
34
+    'create_warning_title'			=> 'Unknown error',
35
+    'create_warning_message' 		=> 'Your backup may NOT have been created. Please check log files for details.',
36 36
 ];
Please login to merge, or discard this patch.
src/resources/lang/ro/backup.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-	/*
5
+    /*
6 6
 	|--------------------------------------------------------------------------
7 7
 	| Backup Language Lines
8 8
 	|--------------------------------------------------------------------------
@@ -12,25 +12,25 @@  discard block
 block discarded – undo
12 12
 	|
13 13
 	*/
14 14
 
15
-	'backup' 						=> 'Copii de siguranță',
16
-	'create_a_new_backup'     		=> 'Creează o nouă copie de siguranță',
17
-	'existing_backups'     			=> 'Copii existente',
18
-	'date'     						=> 'Data',
19
-	'file_size'     				=> 'Mărimea fișierului',
20
-	'actions'     					=> 'Acțiuni',
21
-	'download'     					=> 'Descarcă',
22
-	'delete'     					=> 'Șterge',
23
-	'delete_confirm' 				=> 'Ești sigur că vrei să ștergi copia de siguranță?',
24
-	'delete_confirmation_title' 	=> 'Operațiune reușită',
25
-	'delete_confirmation_message' 	=> 'Copia de siguranță a fost ștearsă.',
26
-	'delete_error_title' 			=> 'Eroare',
27
-	'delete_error_message' 			=> 'Copia de siguranță NU a fost ștearsă.',
28
-	'delete_cancel_title' 			=> "Este în regulă",
29
-	'delete_cancel_message' 		=> 'Copia de siguranță NU a fost ștearsă.',
30
-	'create_confirmation_title' 	=> 'Operațiune reușită',
31
-	'create_confirmation_message' 	=> 'Copia de siguranță a fost creeată cu succes.',
32
-	'create_error_title' 			=> 'Eroare',
33
-	'create_error_message' 			=> 'Copia de siguranță NU a putut fi creată.',
34
-	'create_warning_title'			=> 'Eroare necunoscută',
35
-	'create_warning_message' 		=> 'Copia de siguranță e posibil să NU fi fost creată. Verificați fișierele de log pentru detalii.',
15
+    'backup' 						=> 'Copii de siguranță',
16
+    'create_a_new_backup'     		=> 'Creează o nouă copie de siguranță',
17
+    'existing_backups'     			=> 'Copii existente',
18
+    'date'     						=> 'Data',
19
+    'file_size'     				=> 'Mărimea fișierului',
20
+    'actions'     					=> 'Acțiuni',
21
+    'download'     					=> 'Descarcă',
22
+    'delete'     					=> 'Șterge',
23
+    'delete_confirm' 				=> 'Ești sigur că vrei să ștergi copia de siguranță?',
24
+    'delete_confirmation_title' 	=> 'Operațiune reușită',
25
+    'delete_confirmation_message' 	=> 'Copia de siguranță a fost ștearsă.',
26
+    'delete_error_title' 			=> 'Eroare',
27
+    'delete_error_message' 			=> 'Copia de siguranță NU a fost ștearsă.',
28
+    'delete_cancel_title' 			=> "Este în regulă",
29
+    'delete_cancel_message' 		=> 'Copia de siguranță NU a fost ștearsă.',
30
+    'create_confirmation_title' 	=> 'Operațiune reușită',
31
+    'create_confirmation_message' 	=> 'Copia de siguranță a fost creeată cu succes.',
32
+    'create_error_title' 			=> 'Eroare',
33
+    'create_error_message' 			=> 'Copia de siguranță NU a putut fi creată.',
34
+    'create_warning_title'			=> 'Eroare necunoscută',
35
+    'create_warning_message' 		=> 'Copia de siguranță e posibil să NU fi fost creată. Verificați fișierele de log pentru detalii.',
36 36
 ];
Please login to merge, or discard this patch.
src/app/Http/routes.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 Route::group(['prefix' => 'admin', 'middleware' => ['web', 'auth']], function()
4 4
 {
5 5
 
6
-	// Backup
7
-	Route::get('backup', 'BackupController@index');
8
-	Route::put('backup/create', 'BackupController@create');
9
-	Route::get('backup/download/{file_name}', 'BackupController@download');
10
-	Route::delete('backup/delete/{file_name}', 'BackupController@delete');
6
+    // Backup
7
+    Route::get('backup', 'BackupController@index');
8
+    Route::put('backup/create', 'BackupController@create');
9
+    Route::get('backup/download/{file_name}', 'BackupController@download');
10
+    Route::delete('backup/delete/{file_name}', 'BackupController@delete');
11 11
 
12 12
 });
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
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.