@@ -13,7 +13,7 @@ |
||
13 | 13 | $this->app->bind('Bludata\Lumen\Authentication\JWT\Interfaces\JWTInterface', 'Bludata\Lumen\Authentication\JWT\Libs\JWT'); |
14 | 14 | |
15 | 15 | $this->app['auth']->viaRequest( |
16 | - 'api', function ($request) { |
|
16 | + 'api', function($request) { |
|
17 | 17 | if ($token = $request->header('authorization')) { |
18 | 18 | $auth = app('Bludata\Lumen\Authentication\JWT\Interfaces\AuthRepositoryInterface'); |
19 | 19 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | public function boot() |
14 | 14 | { |
15 | - app('LaravelDoctrine\ORM\Configuration\Connections\ConnectionManager')->extend('sqlanywhere', function () { |
|
15 | + app('LaravelDoctrine\ORM\Configuration\Connections\ConnectionManager')->extend('sqlanywhere', function() { |
|
16 | 16 | return config('database.connections.sqlanywhere'); |
17 | 17 | }); |
18 | 18 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | return array_combine( |
19 | 19 | $attributes, |
20 | 20 | array_map( |
21 | - function ($attr) { |
|
21 | + function($attr) { |
|
22 | 22 | $getMethod = $this->getMethod($attr); |
23 | 23 | if (method_exists($this, $getMethod)) { |
24 | 24 | return $this->$getMethod(); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | public function toArray() |
107 | 107 | { |
108 | - return array_map(function ($attr) { |
|
108 | + return array_map(function($attr) { |
|
109 | 109 | if (method_exists($attr, 'toArray')) { |
110 | 110 | return $attr->toArray(); |
111 | 111 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * Busca a anotação Doctrine\ORM\Mapping\Column. |
56 | 56 | */ |
57 | - $column = array_filter($propertyAnnotations, function ($annotation) { |
|
57 | + $column = array_filter($propertyAnnotations, function($annotation) { |
|
58 | 58 | return $annotation instanceof Column; |
59 | 59 | }); |
60 | 60 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Busca a anotação Bludata\Doctrine\Common\Annotations\ToObject. |
67 | 67 | */ |
68 | - $toObject = array_filter($propertyAnnotations, function ($annotation) { |
|
68 | + $toObject = array_filter($propertyAnnotations, function($annotation) { |
|
69 | 69 | return $annotation instanceof ToObject; |
70 | 70 | }); |
71 | 71 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * Busca pelas anotações Doctrine\ORM\Mapping\ManyToOne || Doctrine\ORM\Mapping\OneToMany || Doctrine\ORM\Mapping\ManyToMany. |
86 | 86 | */ |
87 | - $ormMapping = array_filter($propertyAnnotations, function ($annotation) { |
|
87 | + $ormMapping = array_filter($propertyAnnotations, function($annotation) { |
|
88 | 88 | return $annotation instanceof ManyToOne |
89 | 89 | || |
90 | 90 | $annotation instanceof OneToMany |