Completed
Branch master (73431b)
by Ricardo
05:17
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 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,16 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Audit;
4 4
 
5
-use Illuminate\Support\Facades\App;
5
+use Audit\Http\Middleware\Audits;
6
+use Illuminate\Foundation\AliasLoader;
7
+use Illuminate\Routing\Router;
8
+use Illuminate\Support\Collection;
6 9
 use Illuminate\Support\Facades\View;
7 10
 use Illuminate\Support\ServiceProvider;
8
-use Illuminate\Support\Collection;
9
-use Illuminate\Foundation\AliasLoader;
10
-use Illuminate\Support\Facades\Schema;
11 11
 use Route;
12
-use Illuminate\Routing\Router;
13
-use Audit\Http\Middleware\Audits;
14
-use Audit\Http\Middleware\isAjax;
15 12
 
16 13
 class AuditProvider extends ServiceProvider
17 14
 {
Please login to merge, or discard this patch.
src/Events/EntityWasSaved.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 
7 7
 use Exception;
8 8
 use Facilitador\Models\Value;
9
-use Support\Support\ValueCollection;
10 9
 use Illuminate\Database\Eloquent\Model as Entity;
10
+use Support\Support\ValueCollection;
11 11
 
12 12
 class EntityWasSaved
13 13
 {
Please login to merge, or discard this patch.
src/Http/Controllers/Base.php 2 patches
Doc Comments   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
     /**
298 298
      * Get the with_trashed settings for a controller
299 299
      *
300
-     * @return array
300
+     * @return boolean
301 301
      */
302 302
     public function withTrashed()
303 303
     {
@@ -700,7 +700,7 @@  discard block
 block discarded – undo
700 700
     /**
701 701
      * List as JSON for autocomplete widgets
702 702
      *
703
-     * @return Illuminate\Http\Response JSON
703
+     * @return \Illuminate\Http\JsonResponse JSON
704 704
      */
705 705
     public function autocomplete()
706 706
     {
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
      * autocomplete widget
784 784
      *
785 785
      * @param  int $id The id of the parent model
786
-     * @return Illuminate\Http\Response JSON
786
+     * @return \Illuminate\Http\JsonResponse JSON
787 787
      */
788 788
     public function attach($id)
789 789
     {
@@ -1061,9 +1061,6 @@  discard block
 block discarded – undo
1061 1061
     /**
1062 1062
      * Creates a success message for CRUD commands
1063 1063
      *
1064
-     * @param  Audit\Model\Base|string $title The model instance that is
1065
-     *                                        being worked on  or a string
1066
-     *                                        containing the title
1067 1064
      * @param  string                  $verb  Default: 'saved'. Past tense CRUD verb (created, saved, etc)
1068 1065
      * @return string                        The CRUD success message string
1069 1066
      */
Please login to merge, or discard this patch.
Unused Use Statements   +16 added lines, -18 removed lines patch added patch discarded remove patch
@@ -3,30 +3,28 @@
 block discarded – undo
3 3
 namespace Audit\Http\Controllers;
4 4
 
5 5
 use App;
6
-use URL;
7
-use View;
6
+use Bkwld\Library\Laravel\Validator as BkwldLibraryValidator;
8 7
 use Facilitador;
9
-use Event;
10
-use Former;
11
-use Request;
12 8
 use FacilitadorURL;
9
+use Facilitador\Exceptions\ValidationFail;
10
+use Facilitador\Input\ModelValidator;
11
+use Facilitador\Input\NestedModels;
12
+use Facilitador\Input\Position;
13
+use Facilitador\Input\Sidebar;
14
+use Facilitador\Models\Base as BaseModel;
15
+use Former;
16
+use Illuminate\Routing\Controller;
17
+use Illuminate\Support\Str;
13 18
 use Redirect;
19
+use Request;
14 20
 use Response;
15
-use stdClass;
16
-use Validator;
17
-use Illuminate\Support\Str;
18
-use Support\Template\Input\Search;
19
-use Bkwld\Library\Utils\File;
20
-use Facilitador\Input\Sidebar;
21 21
 use Support\Elements\Fields\Listing;
22 22
 use Support\Template\Input\Localize;
23
-use Facilitador\Input\Position;
24
-use Illuminate\Routing\Controller;
25
-use Facilitador\Input\NestedModels;
26
-use Facilitador\Input\ModelValidator;
27
-use Facilitador\Models\Base as BaseModel;
28
-use Facilitador\Exceptions\ValidationFail;
29
-use Bkwld\Library\Laravel\Validator as BkwldLibraryValidator;
23
+use Support\Template\Input\Search;
24
+use URL;
25
+use Validator;
26
+use View;
27
+use stdClass;
30 28
 
31 29
 /**
32 30
  * The base controller is gives Decoy most of the magic/for-free mojo
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   +5 added lines, -5 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 11
 use FacilitadorURL;
12
+use Illuminate\Database\Eloquent\Model;
9 13
 use Illuminate\Support\Str;
10 14
 use Support\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;
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.