@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | final public static function register(): void |
| 26 | 26 | { |
| 27 | - collect(static::getMixins())->each(static function ($extension, $mixin) { |
|
| 27 | + collect(static::getMixins())->each(static function($extension, $mixin) { |
|
| 28 | 28 | if (!is_subclass_of($mixin, AbstractComponent::class)) { |
| 29 | 29 | throw new MixinInvalidException(sprintf( |
| 30 | 30 | 'Mixed class %s is not descendant of %s.', |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | protected static function wrapValues(array $values = []): array |
| 85 | 85 | { |
| 86 | - return collect($values)->map(function ($value) { |
|
| 86 | + return collect($values)->map(function($value) { |
|
| 87 | 87 | return static::wrapValue($value); |
| 88 | 88 | })->toArray(); |
| 89 | 89 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | private static function build(Grammar $grammar, Blueprint $blueprint, Fluent $command): array |
| 105 | 105 | { |
| 106 | 106 | return collect($command->get('wheres')) |
| 107 | - ->map(function ($where) use ($grammar, $blueprint) { |
|
| 107 | + ->map(function($where) use ($grammar, $blueprint) { |
|
| 108 | 108 | return implode(' ', [ |
| 109 | 109 | $where['boolean'], |
| 110 | 110 | '(' . static::{"where{$where['type']}"}($grammar, $blueprint, $where) . ')', |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | private static function compileExclude(Fluent $command): string |
| 30 | 30 | { |
| 31 | 31 | $items = collect($command->get('using')) |
| 32 | - ->map(static function ($operator, $excludeElement) { |
|
| 32 | + ->map(static function($operator, $excludeElement) { |
|
| 33 | 33 | return sprintf('%s WITH %s', $excludeElement, $operator); |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | private static function compileWith(Fluent $command): ?string |
| 40 | 40 | { |
| 41 | 41 | $items = collect($command->get('with')) |
| 42 | - ->map(static function ($value, $storageParameter) { |
|
| 42 | + ->map(static function($value, $storageParameter) { |
|
| 43 | 43 | return sprintf('%s = %s', $storageParameter, static::wrapValue($value)); |
| 44 | 44 | }); |
| 45 | 45 | |
@@ -15,15 +15,15 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | protected function registerConnectionServices(): void |
| 17 | 17 | { |
| 18 | - $this->app->singleton('db.factory', function ($app) { |
|
| 18 | + $this->app->singleton('db.factory', function($app) { |
|
| 19 | 19 | return new ConnectionFactory($app); |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - $this->app->singleton('db', function ($app) { |
|
| 22 | + $this->app->singleton('db', function($app) { |
|
| 23 | 23 | return new DatabaseManager($app, $app['db.factory']); |
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | - $this->app->bind('db.connection', function ($app) { |
|
| 26 | + $this->app->bind('db.connection', function($app) { |
|
| 27 | 27 | return $app['db']->connection(); |
| 28 | 28 | }); |
| 29 | 29 | } |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | */ |
| 115 | 115 | private function registerExtensions(): void |
| 116 | 116 | { |
| 117 | - collect(self::$extensions)->each(function ($extension) { |
|
| 117 | + collect(self::$extensions)->each(function($extension) { |
|
| 118 | 118 | /** @var AbstractExtension $extension */ |
| 119 | 119 | $extension::register(); |
| 120 | 120 | foreach ($extension::getTypes() as $type => $typeClass) { |