Completed
Push — balance-sub-payments ( 120ca6 )
by Arthur
10:23 queued 05:35
created
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
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -20,33 +20,33 @@  discard block
 block discarded – undo
20 20
 
21 21
 class EventServiceProvider extends ServiceProvider {
22 22
 
23
-	/**
24
-	 * The event handler mappings for the application.
25
-	 *
26
-	 * @var array
27
-	 */
28
-	protected $listen = [
29
-		'payment.create' => [
30
-			'BB\Handlers\PaymentEventHandler@onCreate',
31
-		],
23
+    /**
24
+     * The event handler mappings for the application.
25
+     *
26
+     * @var array
27
+     */
28
+    protected $listen = [
29
+        'payment.create' => [
30
+            'BB\Handlers\PaymentEventHandler@onCreate',
31
+        ],
32 32
         'payment.delete' => [
33
-			'BB\Handlers\PaymentEventHandler@onDelete',
34
-		],
33
+            'BB\Handlers\PaymentEventHandler@onDelete',
34
+        ],
35 35
         'payment.cancelled' => [
36
-			'BB\Handlers\PaymentEventHandler@onCancel',
37
-		],
36
+            'BB\Handlers\PaymentEventHandler@onCancel',
37
+        ],
38 38
         'payment.paid' => [
39
-			'BB\Handlers\PaymentEventHandler@onPaid',
40
-		],
39
+            'BB\Handlers\PaymentEventHandler@onPaid',
40
+        ],
41 41
         'BB\Events\SubscriptionChargePaid' => [
42 42
             ExtendMembership::class
43 43
         ],
44 44
         'sub-charge.processing' => [
45
-			'BB\Handlers\SubChargeEventHandler@onProcessing',
46
-		],
45
+            'BB\Handlers\SubChargeEventHandler@onProcessing',
46
+        ],
47 47
         'sub-charge.payment-failed' => [
48
-			'BB\Handlers\SubChargeEventHandler@onPaymentFailure',
49
-		],
48
+            'BB\Handlers\SubChargeEventHandler@onPaymentFailure',
49
+        ],
50 50
         'BB\Events\NewExpenseSubmitted' => [
51 51
             EmailTrusteesAboutExpense::class,
52 52
         ],
@@ -76,22 +76,22 @@  discard block
 block discarded – undo
76 76
         MemberBalanceChanged::class => [
77 77
             RecalculateMemberBalance::class
78 78
         ],
79
-		SubscriptionPayment\FailedInsufficientFunds::class => [
80
-			EmailMemberAboutFailedSubscriptionPayment::class
81
-		],
82
-	];
79
+        SubscriptionPayment\FailedInsufficientFunds::class => [
80
+            EmailMemberAboutFailedSubscriptionPayment::class
81
+        ],
82
+    ];
83 83
 
84
-	/**
85
-	 * Register any other events for your application.
86
-	 *
87
-	 * @param  \Illuminate\Contracts\Events\Dispatcher  $events
88
-	 * @return void
89
-	 */
90
-	public function boot(DispatcherContract $events)
91
-	{
92
-		parent::boot($events);
84
+    /**
85
+     * Register any other events for your application.
86
+     *
87
+     * @param  \Illuminate\Contracts\Events\Dispatcher  $events
88
+     * @return void
89
+     */
90
+    public function boot(DispatcherContract $events)
91
+    {
92
+        parent::boot($events);
93 93
 
94
-		//
95
-	}
94
+        //
95
+    }
96 96
 
97 97
 }
Please login to merge, or discard this patch.
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.
app/Providers/RouteServiceProvider.php 3 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -5,40 +5,40 @@
 block discarded – undo
5 5
 
6 6
 class RouteServiceProvider extends ServiceProvider {
7 7
 
8
-	/**
9
-	 * This namespace is applied to the controller routes in your routes file.
10
-	 *
11
-	 * In addition, it is set as the URL generator's root namespace.
12
-	 *
13
-	 * @var string
14
-	 */
15
-	protected $namespace = 'BB\Http\Controllers';
8
+    /**
9
+     * This namespace is applied to the controller routes in your routes file.
10
+     *
11
+     * In addition, it is set as the URL generator's root namespace.
12
+     *
13
+     * @var string
14
+     */
15
+    protected $namespace = 'BB\Http\Controllers';
16 16
 
17
-	/**
18
-	 * Define your route model bindings, pattern filters, etc.
19
-	 *
20
-	 * @param  \Illuminate\Routing\Router  $router
21
-	 * @return void
22
-	 */
23
-	public function boot(Router $router)
24
-	{
25
-		//
17
+    /**
18
+     * Define your route model bindings, pattern filters, etc.
19
+     *
20
+     * @param  \Illuminate\Routing\Router  $router
21
+     * @return void
22
+     */
23
+    public function boot(Router $router)
24
+    {
25
+        //
26 26
 
27
-		parent::boot($router);
28
-	}
27
+        parent::boot($router);
28
+    }
29 29
 
30
-	/**
31
-	 * Define the routes for the application.
32
-	 *
33
-	 * @param  \Illuminate\Routing\Router  $router
34
-	 * @return void
35
-	 */
36
-	public function map(Router $router)
37
-	{
38
-		$router->group(['namespace' => $this->namespace], function($router)
39
-		{
40
-			require app_path('Http/routes.php');
41
-		});
42
-	}
30
+    /**
31
+     * Define the routes for the application.
32
+     *
33
+     * @param  \Illuminate\Routing\Router  $router
34
+     * @return void
35
+     */
36
+    public function map(Router $router)
37
+    {
38
+        $router->group(['namespace' => $this->namespace], function($router)
39
+        {
40
+            require app_path('Http/routes.php');
41
+        });
42
+    }
43 43
 
44 44
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 	 */
36 36
 	public function map(Router $router)
37 37
 	{
38
-		$router->group(['namespace' => $this->namespace], function($router)
38
+		$router->group(['namespace' => $this->namespace], function ($router)
39 39
 		{
40 40
 			require app_path('Http/routes.php');
41 41
 		});
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\Routing\Router;
4 4
 use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
5 5
 
6
-class RouteServiceProvider extends ServiceProvider {
6
+class RouteServiceProvider extends ServiceProvider
7
+{
7 8
 
8 9
 	/**
9 10
 	 * This namespace is applied to the controller routes in your routes file.
@@ -35,8 +36,7 @@  discard block
 block discarded – undo
35 36
 	 */
36 37
 	public function map(Router $router)
37 38
 	{
38
-		$router->group(['namespace' => $this->namespace], function($router)
39
-		{
39
+		$router->group(['namespace' => $this->namespace], function($router) {
40 40
 			require app_path('Http/routes.php');
41 41
 		});
42 42
 	}
Please login to merge, or discard this patch.
app/Repo/ACSNodeRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             throw new ModelNotFoundException();
44 44
         }
45 45
         $node = $this->model->where('api_key', $apiKey)->first();
46
-        if (!$node) {
46
+        if ( ! $node) {
47 47
             throw new ModelNotFoundException();
48 48
         }
49 49
         return $node;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function logBoot($device)
56 56
     {
57 57
         $record = $this->model->where('device_id', $device)->first();
58
-        if (!$record) {
58
+        if ( ! $record) {
59 59
             $record = $this->createRecord($device);
60 60
         }
61 61
         $record->last_boot = Carbon::now();
Please login to merge, or discard this patch.
app/Repo/UserRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 
110 110
         $memberData['hash'] = str_random(30);
111 111
 
112
-        $memberData['rules_agreed']? Carbon::now(): null;
112
+        $memberData['rules_agreed'] ? Carbon::now() : null;
113 113
 
114 114
         $user = $this->model->create($memberData);
115 115
         $this->profileDataRepository->createProfile($user->id);
Please login to merge, or discard this patch.
app/Services/Registrar.php 2 patches
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -6,34 +6,34 @@
 block discarded – undo
6 6
 
7 7
 class Registrar implements RegistrarContract {
8 8
 
9
-	/**
10
-	 * Get a validator for an incoming registration request.
11
-	 *
12
-	 * @param  array  $data
13
-	 * @return \Illuminate\Contracts\Validation\Validator
14
-	 */
15
-	public function validator(array $data)
16
-	{
17
-		return Validator::make($data, [
18
-			'name' => 'required|max:255',
19
-			'email' => 'required|email|max:255|unique:users',
20
-			'password' => 'required|confirmed|min:6',
21
-		]);
22
-	}
9
+    /**
10
+     * Get a validator for an incoming registration request.
11
+     *
12
+     * @param  array  $data
13
+     * @return \Illuminate\Contracts\Validation\Validator
14
+     */
15
+    public function validator(array $data)
16
+    {
17
+        return Validator::make($data, [
18
+            'name' => 'required|max:255',
19
+            'email' => 'required|email|max:255|unique:users',
20
+            'password' => 'required|confirmed|min:6',
21
+        ]);
22
+    }
23 23
 
24
-	/**
25
-	 * Create a new user instance after a valid registration.
26
-	 *
27
-	 * @param  array  $data
28
-	 * @return User
29
-	 */
30
-	public function create(array $data)
31
-	{
32
-		return User::create([
33
-			'name' => $data['name'],
34
-			'email' => $data['email'],
35
-			'password' => bcrypt($data['password']),
36
-		]);
37
-	}
24
+    /**
25
+     * Create a new user instance after a valid registration.
26
+     *
27
+     * @param  array  $data
28
+     * @return User
29
+     */
30
+    public function create(array $data)
31
+    {
32
+        return User::create([
33
+            'name' => $data['name'],
34
+            'email' => $data['email'],
35
+            'password' => bcrypt($data['password']),
36
+        ]);
37
+    }
38 38
 
39 39
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,8 @@
 block discarded – undo
4 4
 use Validator;
5 5
 use Illuminate\Contracts\Auth\Registrar as RegistrarContract;
6 6
 
7
-class Registrar implements RegistrarContract {
7
+class Registrar implements RegistrarContract
8
+{
8 9
 
9 10
 	/**
10 11
 	 * Get a validator for an incoming registration request.
Please login to merge, or discard this patch.
app/Http/Controllers/DeviceController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Illuminate\Contracts\Validation\UnauthorizedException;
7 7
 use Illuminate\Http\Request;
8 8
 use Auth;
9
-use BB\Http\Requests;
10 9
 
11 10
 
12 11
 class NotificationController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/CCTVController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
 
226 226
                 $equipment->addPhoto($newFilename);
227 227
 
228
-            } catch(\Exception $e) {
228
+            } catch (\Exception $e) {
229 229
                 \Log::error($e);
230 230
                 throw new ImageFailedException($e->getMessage());
231 231
             }
Please login to merge, or discard this patch.