Completed
Push — master ( ea78d0...d9dbaa )
by Ricardo
06:52
created
database/migrations/2018_08_08_100000_create_telescope_entries_table.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 CreateTelescopeEntriesTable extends Migration
8 8
 {
Please login to merge, or discard this patch.
src/AuditProvider.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -214,12 +214,16 @@
 block discarded – undo
214 214
 
215 215
     /**
216 216
      * Configs Paths
217
+     * @param string $folder
217 218
      */
218 219
     private function getResourcesPath($folder)
219 220
     {
220 221
         return __DIR__.'/../resources/'.$folder;
221 222
     }
222 223
 
224
+    /**
225
+     * @param string $folder
226
+     */
223 227
     private function getPublishesPath($folder)
224 228
     {
225 229
         return __DIR__.'/../publishes/'.$folder;
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,16 +3,12 @@
 block discarded – undo
3 3
 namespace Audit;
4 4
 
5 5
 use Audit\Http\Middleware\Audits;
6
-use Audit\Http\Middleware\isAjax;
7 6
 use Illuminate\Foundation\AliasLoader;
8 7
 use Illuminate\Routing\Router;
9 8
 use Illuminate\Support\Collection;
10
-use Illuminate\Support\Facades\App;
11
-use Illuminate\Support\Facades\Schema;
12 9
 use Illuminate\Support\Facades\View;
13 10
 use Illuminate\Support\ServiceProvider;
14 11
 use Muleta\Traits\Providers\ConsoleTools;
15
-use Route;
16 12
 
17 13
 class AuditProvider extends ServiceProvider
18 14
 {
Please login to merge, or discard this patch.
src/Http/Controllers/Changes.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      * this method / action so that a new routing rule doesn't need to be created
85 85
      *
86 86
      * @param  int $id Model key
87
-     * @return Illuminate\Http\Response
87
+     * @return \Illuminate\Http\JsonResponse
88 88
      */
89 89
     public function edit($id)
90 90
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Audit\Http\Controllers;
4 4
 
5
-use Response;
6 5
 use Audit\Models\Change;
6
+use Response;
7 7
 
8 8
 /**
9 9
  * A log of model changes, used for auditing Admin activity. Can also be used
Please login to merge, or discard this patch.
src/Models/Change.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     /**
54 54
      * Get the admin associated with the change
55 55
      *
56
-     * @return Illuminate\Database\Eloquent\Relations\Relation
56
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
57 57
      */
58 58
     public function admin()
59 59
     {
Please login to merge, or discard this patch.
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,16 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace Audit\Models;
4 4
 
5
+use App\Models\User;
6
+use Audit\Models\Base;
7
+use Bkwld\Library\Utils\Text;
8
+use Config;
5 9
 use DB;
6 10
 use Facilitador;
7
-use Config;
8
-use SupportURL;
11
+use Illuminate\Database\Eloquent\Model;
9 12
 use Illuminate\Support\Str;
10 13
 use Pedreiro\Template\Input\Search;
11
-use Bkwld\Library\Utils\Text;
12
-use Illuminate\Database\Eloquent\Model;
13
-use Audit\Models\Base;
14
-use App\Models\User;
14
+use SupportURL;
15 15
 
16 16
 /**
17 17
  * Reperesents a single model change event.  Typically a single CRUD action on
Please login to merge, or discard this patch.
src/Notifications/Logs/LogWritten.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Audit\Notifications\Logs;
4 4
 
5
+use Audit\Models\Logs\Finger;
5 6
 use Illuminate\Bus\Queueable;
6
-use Illuminate\Notifications\Notification;
7 7
 use Illuminate\Contracts\Queue\ShouldQueue;
8 8
 use Illuminate\Notifications\Messages\MailMessage;
9 9
 use Illuminate\Notifications\Messages\SlackMessage;
10
-use Audit\Models\Logs\Finger;
10
+use Illuminate\Notifications\Notification;
11 11
 
12 12
 class LogWritten extends Notification implements ShouldQueue
13 13
 {
Please login to merge, or discard this patch.
src/Notifications/Logs/ModelChanged.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Audit\Notifications\Logs;
4 4
 
5
+use Audit\Models\Logs\Finger;
5 6
 use Illuminate\Bus\Queueable;
6
-use Illuminate\Notifications\Notification;
7 7
 use Illuminate\Contracts\Queue\ShouldQueue;
8 8
 use Illuminate\Notifications\Messages\MailMessage;
9 9
 use Illuminate\Notifications\Messages\SlackMessage;
10
-use Audit\Models\Logs\Finger;
10
+use Illuminate\Notifications\Notification;
11 11
 
12 12
 class ModelChanged extends Notification implements ShouldQueue
13 13
 {
Please login to merge, or discard this patch.
src/Notifications/Logs/RouteRequested.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Audit\Notifications\Logs;
4 4
 
5
+use Audit\Models\Logs\LaraLogsRequest;
5 6
 use Illuminate\Bus\Queueable;
6
-use Illuminate\Notifications\Notification;
7 7
 use Illuminate\Contracts\Queue\ShouldQueue;
8 8
 use Illuminate\Notifications\Messages\MailMessage;
9 9
 use Illuminate\Notifications\Messages\SlackMessage;
10
-use Audit\Models\Logs\LaraLogsRequest;
10
+use Illuminate\Notifications\Notification;
11 11
 
12 12
 class RouteRequested extends Notification implements ShouldQueue
13 13
 {
Please login to merge, or discard this patch.
src/Observers/Changes.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@
 block discarded – undo
77 77
         return app('facilitador.user');
78 78
     }
79 79
 
80
+    /**
81
+     * @param string $event
82
+     */
80 83
     protected function isToIgnore($model, $event)
81 84
     {
82 85
         // Don't log changes to pivot models.  Even though a user may have initiated
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 // Deps
6 6
 
7 7
 use Audit\Models\Change;
8
-use Event;
9
-use Route;
10 8
 
11 9
 /**
12 10
  * Create a log of all model changing events
Please login to merge, or discard this patch.
src/Services/AuditsService.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Audit\Services;
4 4
 
5
-use Carbon\Carbon;
6
-use Illuminate\Support\Facades\Schema;
7 5
 use Audit\Models\Audits;
6
+use Illuminate\Support\Facades\Schema;
8 7
 
9 8
 class AuditsService
10 9
 {
Please login to merge, or discard this patch.