Completed
Pull Request — master (#8)
by Micheal
10:27 queued 08:57
created
Http/backendRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use Illuminate\Routing\Router;
4 4
 
5 5
 /** @var Router $router */
6
-$router->group(['prefix' => '/notification'], function (Router $router) {
6
+$router->group([ 'prefix' => '/notification' ], function(Router $router) {
7 7
     $router->get('notifications', [
8 8
         'as' => 'admin.notification.notification.index',
9 9
         'uses' => 'NotificationsController@index',
Please login to merge, or discard this patch.
Http/apiRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,4 +3,4 @@
 block discarded – undo
3 3
 use Illuminate\Routing\Router;
4 4
 
5 5
 /** @var Router $router */
6
-$router->post('notification/mark-read', ['as' => 'api.notification.read', 'uses' => 'NotificationsController@markAsRead']);
6
+$router->post('notification/mark-read', [ 'as' => 'api.notification.read', 'uses' => 'NotificationsController@markAsRead' ]);
Please login to merge, or discard this patch.
Http/Controllers/Admin/NotificationsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $this->notification->destroy($notification);
45 45
 
46 46
         return redirect()->route('admin.notification.notification.index')
47
-            ->withSuccess(trans('core::core.messages.resource deleted', ['name' => 'Notification']));
47
+            ->withSuccess(trans('core::core.messages.resource deleted', [ 'name' => 'Notification' ]));
48 48
     }
49 49
 
50 50
     public function destroyAll()
Please login to merge, or discard this patch.
Repositories/Cache/CacheNotificationDecorator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
     public function latestForUser($userId)
22 22
     {
23 23
         return $this->cache
24
-            ->tags([$this->entityName, 'global'])
24
+            ->tags([ $this->entityName, 'global' ])
25 25
             ->remember(
26 26
                 "{$this->locale}.{$this->entityName}.latestForUser.{$userId}",
27 27
                 $this->cacheTime,
28
-                function () use ($userId) {
28
+                function() use ($userId) {
29 29
                     return $this->repository->latestForUser($userId);
30 30
                 }
31 31
             );
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
     public function allForUser($userId)
52 52
     {
53 53
         return $this->cache
54
-            ->tags([$this->entityName, 'global'])
54
+            ->tags([ $this->entityName, 'global' ])
55 55
             ->remember(
56 56
                 "{$this->locale}.{$this->entityName}.allForUser.{$userId}",
57 57
                 $this->cacheTime,
58
-                function () use ($userId) {
58
+                function() use ($userId) {
59 59
                     return $this->repository->allForUser($userId);
60 60
                 }
61 61
             );
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
     public function allUnreadForUser($userId)
70 70
     {
71 71
         return $this->cache
72
-            ->tags([$this->entityName, 'global'])
72
+            ->tags([ $this->entityName, 'global' ])
73 73
             ->remember(
74 74
                 "{$this->locale}.{$this->entityName}.allUnreadForUser.{$userId}",
75 75
                 $this->cacheTime,
76
-                function () use ($userId) {
76
+                function() use ($userId) {
77 77
                     return $this->repository->allUnreadForUser($userId);
78 78
                 }
79 79
             );
Please login to merge, or discard this patch.
Providers/NotificationServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $this->registerBindings();
36 36
         $this->registerViewComposers();
37 37
 
38
-        $this->app['events']->listen(
38
+        $this->app[ 'events' ]->listen(
39 39
             BuildingSidebar::class,
40 40
             $this->getSidebarClassForModule('blog', RegisterNotificationSidebar::class)
41 41
         );
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $this->publishConfig('notification', 'config');
47 47
         $this->publishConfig('notification', 'permissions');
48
-        $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
48
+        $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
49 49
     }
50 50
 
51 51
     /**
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $this->app->bind(
64 64
             NotificationRepository::class,
65
-            function () {
65
+            function() {
66 66
                 $repository = new EloquentNotificationRepository(new Notification());
67 67
 
68
-                if (! config('app.cache')) {
68
+                if (!config('app.cache')) {
69 69
                     return $repository;
70 70
                 }
71 71
 
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
             }
74 74
         );
75 75
 
76
-        $this->app->bind(\Modules\Notification\Services\Notification::class, function ($app) {
77
-            return new AsgardNotification($app[NotificationRepository::class], $app[Authentication::class]);
76
+        $this->app->bind(\Modules\Notification\Services\Notification::class, function($app) {
77
+            return new AsgardNotification($app[ NotificationRepository::class ], $app[ Authentication::class ]);
78 78
         });
79 79
     }
80 80
 
Please login to merge, or discard this patch.