Skip to content

Commit d1e77f8

Browse files
Merge pull request #8 from juukie/styling-up
Update styling
2 parents 52a286e + c340e0f commit d1e77f8

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

src/DumbPasswordServiceProvider.php

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,47 +16,40 @@
1616

1717
class DumbPasswordServiceProvider extends ServiceProvider
1818
{
19-
20-
/*
21-
* Indicates if loading of the provider is deferred.
22-
*
23-
* @var bool
24-
*/
25-
protected $defer = false;
26-
2719
/**
28-
* default error message
20+
* Default error message.
2921
*
3022
* @var string
3123
*/
3224
protected $message = 'This password is just too common. Please try another!';
3325

3426
/**
35-
* Publishes all the config file this package needs to function
36-
*/
27+
* Publishes all the config file this package needs to function.
28+
*/
3729
public function boot()
3830
{
3931
$path = realpath(__DIR__.'/../resources/config/passwordlist.txt');
4032
$dumbPasswords = collect(explode("\n", file_get_contents($path)));
4133
$data = $dumbPasswords->flip();
4234

43-
Validator::extend('dumbpwd', function($attribute, $value, $parameters, $validator) use ($data) {
35+
Validator::extend('dumbpwd', function ($attribute, $value, $parameters, $validator) use ($data) {
4436
return !$data->has($value);
45-
}, $this->message);
37+
}, $this->message);
4638
}
4739

4840
/**
49-
* Register the application services.
50-
*/
41+
* Register the application services.
42+
*/
5143
public function register()
5244
{
53-
45+
//
5446
}
5547

5648
/**
57-
* Get the services provided by the provider
58-
* @return array
59-
*/
49+
* Get the services provided by the provider.
50+
*
51+
* @return array
52+
*/
6053
public function provides()
6154
{
6255
return ['laravel-password'];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy