@@ -11,7 +11,7 @@ |
||
11 | 11 | * |
12 | 12 | * @param object $dirty |
13 | 13 | * |
14 | - * @return this |
|
14 | + * @return Cleaner |
|
15 | 15 | */ |
16 | 16 | public function clean($dirty) |
17 | 17 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function setAllowed($dirty) |
46 | 46 | { |
47 | - collect($this->allowed)->each(function ($property) use ($dirty) { |
|
47 | + collect($this->allowed)->each(function($property) use ($dirty) { |
|
48 | 48 | if ($this->isNested($property)) { |
49 | 49 | return $this->setNestedProperty($property, $dirty, 'property'); |
50 | 50 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | protected function setMethods($dirty) |
62 | 62 | { |
63 | - collect($this->methods)->each(function ($method) use ($dirty) { |
|
63 | + collect($this->methods)->each(function($method) use ($dirty) { |
|
64 | 64 | if ($this->isNested($method)) { |
65 | 65 | return $this->setNestedProperty($method, $dirty, 'method'); |
66 | 66 | } |
@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function register() |
15 | 15 | { |
16 | - Collection::macro('clean', function ($class = null) { |
|
17 | - return $this->map(function (Model $item) use ($class) { |
|
16 | + Collection::macro('clean', function($class = null) { |
|
17 | + return $this->map(function(Model $item) use ($class) { |
|
18 | 18 | return $item->clean($class); |
19 | 19 | }); |
20 | 20 | }); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | protected function registerCommands() |
29 | 29 | { |
30 | - $this->app->singleton('command.laundromat.create', function ($app) { |
|
30 | + $this->app->singleton('command.laundromat.create', function($app) { |
|
31 | 31 | return $app['LaravelLaundromat\commands\CreateCleaner']; |
32 | 32 | }); |
33 | 33 |