Completed
Push — gocardless-upgrade ( ab99fa )
by Arthur
02:58
created
app/Http/Middleware/RedirectIfAuthenticated.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -6,39 +6,39 @@
 block discarded – undo
6 6
 
7 7
 class RedirectIfAuthenticated {
8 8
 
9
-	/**
10
-	 * The Guard implementation.
11
-	 *
12
-	 * @var Guard
13
-	 */
14
-	protected $auth;
9
+    /**
10
+     * The Guard implementation.
11
+     *
12
+     * @var Guard
13
+     */
14
+    protected $auth;
15 15
 
16
-	/**
17
-	 * Create a new filter instance.
18
-	 *
19
-	 * @param  Guard  $auth
20
-	 * @return void
21
-	 */
22
-	public function __construct(Guard $auth)
23
-	{
24
-		$this->auth = $auth;
25
-	}
16
+    /**
17
+     * Create a new filter instance.
18
+     *
19
+     * @param  Guard  $auth
20
+     * @return void
21
+     */
22
+    public function __construct(Guard $auth)
23
+    {
24
+        $this->auth = $auth;
25
+    }
26 26
 
27
-	/**
28
-	 * Handle an incoming request.
29
-	 *
30
-	 * @param  \Illuminate\Http\Request  $request
31
-	 * @param  \Closure  $next
32
-	 * @return mixed
33
-	 */
34
-	public function handle($request, Closure $next)
35
-	{
36
-		if ($this->auth->check())
37
-		{
38
-			return new RedirectResponse(url('/home'));
39
-		}
27
+    /**
28
+     * Handle an incoming request.
29
+     *
30
+     * @param  \Illuminate\Http\Request  $request
31
+     * @param  \Closure  $next
32
+     * @return mixed
33
+     */
34
+    public function handle($request, Closure $next)
35
+    {
36
+        if ($this->auth->check())
37
+        {
38
+            return new RedirectResponse(url('/home'));
39
+        }
40 40
 
41
-		return $next($request);
42
-	}
41
+        return $next($request);
42
+    }
43 43
 
44 44
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,8 @@  discard block
 block discarded – undo
4 4
 use Illuminate\Contracts\Auth\Guard;
5 5
 use Illuminate\Http\RedirectResponse;
6 6
 
7
-class RedirectIfAuthenticated {
7
+class RedirectIfAuthenticated
8
+{
8 9
 
9 10
 	/**
10 11
 	 * The Guard implementation.
@@ -33,8 +34,7 @@  discard block
 block discarded – undo
33 34
 	 */
34 35
 	public function handle($request, Closure $next)
35 36
 	{
36
-		if ($this->auth->check())
37
-		{
37
+		if ($this->auth->check()) {
38 38
 			return new RedirectResponse(url('/home'));
39 39
 		}
40 40
 
Please login to merge, or discard this patch.
app/Http/Middleware/VerifyCsrfToken.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,16 +5,16 @@
 block discarded – undo
5 5
 
6 6
 class VerifyCsrfToken extends BaseVerifier {
7 7
 
8
-	/**
9
-	 * Handle an incoming request.
10
-	 *
11
-	 * @param  \Illuminate\Http\Request  $request
12
-	 * @param  \Closure  $next
13
-	 * @return mixed
14
-	 */
15
-	public function handle($request, Closure $next)
16
-	{
17
-		return parent::handle($request, $next);
18
-	}
8
+    /**
9
+     * Handle an incoming request.
10
+     *
11
+     * @param  \Illuminate\Http\Request  $request
12
+     * @param  \Closure  $next
13
+     * @return mixed
14
+     */
15
+    public function handle($request, Closure $next)
16
+    {
17
+        return parent::handle($request, $next);
18
+    }
19 19
 
20 20
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,8 @@
 block discarded – undo
3 3
 use Closure;
4 4
 use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
5 5
 
6
-class VerifyCsrfToken extends BaseVerifier {
6
+class VerifyCsrfToken extends BaseVerifier
7
+{
7 8
 
8 9
 	/**
9 10
 	 * Handle an incoming request.
Please login to merge, or discard this patch.
app/Http/Requests/Request.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 
5 5
 abstract class Request extends FormRequest {
6 6
 
7
-	//
7
+    //
8 8
 
9 9
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@
 block discarded – undo
2 2
 
3 3
 use Illuminate\Foundation\Http\FormRequest;
4 4
 
5
-abstract class Request extends FormRequest {
5
+abstract class Request extends FormRequest
6
+{
6 7
 
7 8
 	//
8 9
 
Please login to merge, or discard this patch.
app/Listeners/RecordMemberActivity.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
 namespace BB\Listeners;
4 4
 
5 5
 use BB\Events\MemberActivity;
6
-use BB\Repo\ActivityRepository;use Illuminate\Queue\InteractsWithQueue;
6
+use BB\Repo\ActivityRepository; use Illuminate\Queue\InteractsWithQueue;
7 7
 use Illuminate\Contracts\Queue\ShouldQueue;
8 8
 
9 9
 class RecordMemberActivity
Please login to merge, or discard this patch.
app/Listeners/SlackMemberNotification.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@
 block discarded – undo
28 28
         if (\App::environment('production')) {
29 29
 
30 30
             //If the user doesn't have a slack username registered there is nothing we can do
31
-            if (empty($event->notification->user()->slack_username))
32
-            {
31
+            if (empty($event->notification->user()->slack_username)) {
33 32
                 return;
34 33
             }
35 34
 
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -4,31 +4,31 @@
 block discarded – undo
4 4
 
5 5
 class AppServiceProvider extends ServiceProvider {
6 6
 
7
-	/**
8
-	 * Bootstrap any application services.
9
-	 *
10
-	 * @return void
11
-	 */
12
-	public function boot()
13
-	{
14
-		//
15
-	}
7
+    /**
8
+     * Bootstrap any application services.
9
+     *
10
+     * @return void
11
+     */
12
+    public function boot()
13
+    {
14
+        //
15
+    }
16 16
 
17
-	/**
18
-	 * Register any application services.
19
-	 *
20
-	 * This service provider is a great spot to register your various container
21
-	 * bindings with the application. As you can see, we are registering our
22
-	 * "Registrar" implementation here. You can add your own bindings too!
23
-	 *
24
-	 * @return void
25
-	 */
26
-	public function register()
27
-	{
28
-		$this->app->bind(
29
-			'Illuminate\Contracts\Auth\Registrar',
30
-			'BB\Services\Registrar'
31
-		);
32
-	}
17
+    /**
18
+     * Register any application services.
19
+     *
20
+     * This service provider is a great spot to register your various container
21
+     * bindings with the application. As you can see, we are registering our
22
+     * "Registrar" implementation here. You can add your own bindings too!
23
+     *
24
+     * @return void
25
+     */
26
+    public function register()
27
+    {
28
+        $this->app->bind(
29
+            'Illuminate\Contracts\Auth\Registrar',
30
+            'BB\Services\Registrar'
31
+        );
32
+    }
33 33
 
34 34
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@
 block discarded – undo
2 2
 
3 3
 use Illuminate\Support\ServiceProvider;
4 4
 
5
-class AppServiceProvider extends ServiceProvider {
5
+class AppServiceProvider extends ServiceProvider
6
+{
6 7
 
7 8
 	/**
8 9
 	 * Bootstrap any application services.
Please login to merge, or discard this patch.
app/Providers/BusServiceProvider.php 3 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -5,30 +5,30 @@
 block discarded – undo
5 5
 
6 6
 class BusServiceProvider extends ServiceProvider {
7 7
 
8
-	/**
9
-	 * Bootstrap any application services.
10
-	 *
11
-	 * @param  \Illuminate\Bus\Dispatcher  $dispatcher
12
-	 * @return void
13
-	 */
14
-	public function boot(Dispatcher $dispatcher)
15
-	{
16
-		$dispatcher->mapUsing(function($command)
17
-		{
18
-			return Dispatcher::simpleMapping(
19
-				$command, 'BB\Commands', 'BB\Handlers\Commands'
20
-			);
21
-		});
22
-	}
8
+    /**
9
+     * Bootstrap any application services.
10
+     *
11
+     * @param  \Illuminate\Bus\Dispatcher  $dispatcher
12
+     * @return void
13
+     */
14
+    public function boot(Dispatcher $dispatcher)
15
+    {
16
+        $dispatcher->mapUsing(function($command)
17
+        {
18
+            return Dispatcher::simpleMapping(
19
+                $command, 'BB\Commands', 'BB\Handlers\Commands'
20
+            );
21
+        });
22
+    }
23 23
 
24
-	/**
25
-	 * Register any application services.
26
-	 *
27
-	 * @return void
28
-	 */
29
-	public function register()
30
-	{
31
-		//
32
-	}
24
+    /**
25
+     * Register any application services.
26
+     *
27
+     * @return void
28
+     */
29
+    public function register()
30
+    {
31
+        //
32
+    }
33 33
 
34 34
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	 */
14 14
 	public function boot(Dispatcher $dispatcher)
15 15
 	{
16
-		$dispatcher->mapUsing(function($command)
16
+		$dispatcher->mapUsing(function ($command)
17 17
 		{
18 18
 			return Dispatcher::simpleMapping(
19 19
 				$command, 'BB\Commands', 'BB\Handlers\Commands'
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,8 @@  discard block
 block discarded – undo
3 3
 use Illuminate\Bus\Dispatcher;
4 4
 use Illuminate\Support\ServiceProvider;
5 5
 
6
-class BusServiceProvider extends ServiceProvider {
6
+class BusServiceProvider extends ServiceProvider
7
+{
7 8
 
8 9
 	/**
9 10
 	 * Bootstrap any application services.
@@ -13,8 +14,7 @@  discard block
 block discarded – undo
13 14
 	 */
14 15
 	public function boot(Dispatcher $dispatcher)
15 16
 	{
16
-		$dispatcher->mapUsing(function($command)
17
-		{
17
+		$dispatcher->mapUsing(function($command) {
18 18
 			return Dispatcher::simpleMapping(
19 19
 				$command, 'BB\Commands', 'BB\Handlers\Commands'
20 20
 			);
Please login to merge, or discard this patch.
app/Providers/ConfigServiceProvider.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -4,20 +4,20 @@
 block discarded – undo
4 4
 
5 5
 class ConfigServiceProvider extends ServiceProvider {
6 6
 
7
-	/**
8
-	 * Overwrite any vendor / package configuration.
9
-	 *
10
-	 * This service provider is intended to provide a convenient location for you
11
-	 * to overwrite any "vendor" or package configuration that you may want to
12
-	 * modify before the application handles the incoming request / command.
13
-	 *
14
-	 * @return void
15
-	 */
16
-	public function register()
17
-	{
18
-		config([
19
-			//
20
-		]);
21
-	}
7
+    /**
8
+     * Overwrite any vendor / package configuration.
9
+     *
10
+     * This service provider is intended to provide a convenient location for you
11
+     * to overwrite any "vendor" or package configuration that you may want to
12
+     * modify before the application handles the incoming request / command.
13
+     *
14
+     * @return void
15
+     */
16
+    public function register()
17
+    {
18
+        config([
19
+            //
20
+        ]);
21
+    }
22 22
 
23 23
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@
 block discarded – undo
2 2
 
3 3
 use Illuminate\Support\ServiceProvider;
4 4
 
5
-class ConfigServiceProvider extends ServiceProvider {
5
+class ConfigServiceProvider extends ServiceProvider
6
+{
6 7
 
7 8
 	/**
8 9
 	 * Overwrite any vendor / package configuration.
Please login to merge, or discard this patch.
app/Providers/EventServiceProvider.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
 use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
19 19
 use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
20 20
 
21
-class EventServiceProvider extends ServiceProvider {
21
+class EventServiceProvider extends ServiceProvider
22
+{
22 23
 
23 24
 	/**
24 25
 	 * The event handler mappings for the application.
Please login to merge, or discard this patch.
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -22,33 +22,33 @@  discard block
 block discarded – undo
22 22
 
23 23
 class EventServiceProvider extends ServiceProvider {
24 24
 
25
-	/**
26
-	 * The event handler mappings for the application.
27
-	 *
28
-	 * @var array
29
-	 */
30
-	protected $listen = [
31
-		'payment.create' => [
32
-			'BB\Handlers\PaymentEventHandler@onCreate',
33
-		],
25
+    /**
26
+     * The event handler mappings for the application.
27
+     *
28
+     * @var array
29
+     */
30
+    protected $listen = [
31
+        'payment.create' => [
32
+            'BB\Handlers\PaymentEventHandler@onCreate',
33
+        ],
34 34
         'payment.delete' => [
35
-			'BB\Handlers\PaymentEventHandler@onDelete',
36
-		],
35
+            'BB\Handlers\PaymentEventHandler@onDelete',
36
+        ],
37 37
         'payment.cancelled' => [
38
-			'BB\Handlers\PaymentEventHandler@onCancel',
39
-		],
38
+            'BB\Handlers\PaymentEventHandler@onCancel',
39
+        ],
40 40
         'payment.paid' => [
41
-			'BB\Handlers\PaymentEventHandler@onPaid',
42
-		],
41
+            'BB\Handlers\PaymentEventHandler@onPaid',
42
+        ],
43 43
         'BB\Events\SubscriptionChargePaid' => [
44 44
             ExtendMembership::class
45 45
         ],
46 46
         'sub-charge.processing' => [
47
-			'BB\Handlers\SubChargeEventHandler@onProcessing',
48
-		],
47
+            'BB\Handlers\SubChargeEventHandler@onProcessing',
48
+        ],
49 49
         'sub-charge.payment-failed' => [
50
-			'BB\Handlers\SubChargeEventHandler@onPaymentFailure',
51
-		],
50
+            'BB\Handlers\SubChargeEventHandler@onPaymentFailure',
51
+        ],
52 52
         'BB\Events\NewExpenseSubmitted' => [
53 53
             EmailTrusteesAboutExpense::class,
54 54
         ],
@@ -78,25 +78,25 @@  discard block
 block discarded – undo
78 78
         MemberBalanceChanged::class => [
79 79
             RecalculateMemberBalance::class
80 80
         ],
81
-		SubscriptionPayment\FailedInsufficientFunds::class => [
82
-			EmailMemberAboutFailedSubscriptionPayment::class
83
-		],
84
-		SubscriptionPayment\InsufficientFundsTryingDirectDebit::class => [
85
-			EmailMemberAboutFailedSubscriptionPaymentGoingToBackup::class
86
-		],
87
-	];
81
+        SubscriptionPayment\FailedInsufficientFunds::class => [
82
+            EmailMemberAboutFailedSubscriptionPayment::class
83
+        ],
84
+        SubscriptionPayment\InsufficientFundsTryingDirectDebit::class => [
85
+            EmailMemberAboutFailedSubscriptionPaymentGoingToBackup::class
86
+        ],
87
+    ];
88 88
 
89
-	/**
90
-	 * Register any other events for your application.
91
-	 *
92
-	 * @param  \Illuminate\Contracts\Events\Dispatcher  $events
93
-	 * @return void
94
-	 */
95
-	public function boot(DispatcherContract $events)
96
-	{
97
-		parent::boot($events);
89
+    /**
90
+     * Register any other events for your application.
91
+     *
92
+     * @param  \Illuminate\Contracts\Events\Dispatcher  $events
93
+     * @return void
94
+     */
95
+    public function boot(DispatcherContract $events)
96
+    {
97
+        parent::boot($events);
98 98
 
99
-		//
100
-	}
99
+        //
100
+    }
101 101
 
102 102
 }
Please login to merge, or discard this patch.