| @@ -5,16 +5,16 @@ | ||
| 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 | } | 
| @@ -4,6 +4,6 @@ | ||
| 4 | 4 | |
| 5 | 5 |  abstract class Request extends FormRequest { | 
| 6 | 6 | |
| 7 | - // | |
| 7 | + // | |
| 8 | 8 | |
| 9 | 9 | } | 
| @@ -4,31 +4,31 @@ | ||
| 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 | } | 
| @@ -5,30 +5,30 @@ | ||
| 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 | } | 
| @@ -4,20 +4,20 @@ | ||
| 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 | } | 
| @@ -5,40 +5,40 @@ | ||
| 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 | } | 
| @@ -6,34 +6,34 @@ | ||
| 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 | } | 
| @@ -22,33 +22,33 @@ discard block | ||
| 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 | ||
| 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 | } | 
| @@ -5,19 +5,19 @@ | ||
| 5 | 5 | class SettingsController extends Controller | 
| 6 | 6 |  { | 
| 7 | 7 | |
| 8 | - /** | |
| 9 | - * Store a newly created resource in storage. | |
| 10 | - * | |
| 11 | - * @return \Illuminate\Http\RedirectResponse | |
| 12 | - */ | |
| 13 | - public function update() | |
| 14 | -	{ | |
| 8 | + /** | |
| 9 | + * Store a newly created resource in storage. | |
| 10 | + * | |
| 11 | + * @return \Illuminate\Http\RedirectResponse | |
| 12 | + */ | |
| 13 | + public function update() | |
| 14 | +    { | |
| 15 | 15 |          $input = \Input::only('key', 'value'); | 
| 16 | 16 | |
| 17 | 17 | Settings::change($input['key'], $input['value']); | 
| 18 | 18 | |
| 19 | 19 |          \Notification::success("Setting updated"); | 
| 20 | 20 | return redirect()->back()->withInput(); | 
| 21 | - } | |
| 21 | + } | |
| 22 | 22 | |
| 23 | 23 | } |