@@ -58,6 +58,10 @@ |
||
58 | 58 | * Get Enviorment variable |
59 | 59 | */ |
60 | 60 | if (!function_exists('env')) { |
61 | + |
|
62 | + /** |
|
63 | + * @param string $key |
|
64 | + */ |
|
61 | 65 | function env($key, $defaultValue = '') |
62 | 66 | { |
63 | 67 | $env = getenv($key); |
@@ -169,6 +169,9 @@ |
||
169 | 169 | return $this; |
170 | 170 | } |
171 | 171 | |
172 | + /** |
|
173 | + * @param string $key |
|
174 | + */ |
|
172 | 175 | final protected function checkOnyExceptInArray($key, array $options = null) |
173 | 176 | { |
174 | 177 | if ( |
@@ -134,9 +134,9 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | - * @param Bludata\Doctrine\Common\Interfaces\BaseEntityInterface $entity |
|
137 | + * @param BaseEntityInterface $entity |
|
138 | 138 | * |
139 | - * @return Bludata\Doctrine\ORM\Repositories\QueryWorker |
|
139 | + * @return BaseRepository |
|
140 | 140 | */ |
141 | 141 | public function save(BaseEntityInterface $entity) |
142 | 142 | { |
@@ -146,9 +146,9 @@ discard block |
||
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
149 | - * @param Bludata\Doctrine\Common\Interfaces\BaseEntityInterface $entity |
|
149 | + * @param BaseEntityInterface $entity |
|
150 | 150 | * |
151 | - * @return Bludata\Doctrine\ORM\Repositories\QueryWorker |
|
151 | + * @return BaseRepository |
|
152 | 152 | */ |
153 | 153 | public function flush(BaseEntityInterface $entity = null) |
154 | 154 | { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * |
145 | 145 | * @param array $filters |
146 | 146 | * |
147 | - * @return Bludata\Doctrine\ORM\Repositories\QueryWorker |
|
147 | + * @return QueryWorker |
|
148 | 148 | */ |
149 | 149 | public function withFilters(array $filters = null) |
150 | 150 | { |
@@ -372,7 +372,6 @@ discard block |
||
372 | 372 | * Add a "or having" filter. |
373 | 373 | * |
374 | 374 | * @param string $field |
375 | - * @param string $order |
|
376 | 375 | */ |
377 | 376 | public function orHaving($field, $operation, $value = null) |
378 | 377 | { |
@@ -556,6 +555,7 @@ discard block |
||
556 | 555 | * |
557 | 556 | * @param string field |
558 | 557 | * @param mix expression |
558 | + * @param string|null $campo |
|
559 | 559 | */ |
560 | 560 | private function addQueryField($campo, $expression = 0) |
561 | 561 | { |
@@ -638,8 +638,8 @@ discard block |
||
638 | 638 | * Add joins and return the new field and alias. |
639 | 639 | * |
640 | 640 | * @param $meta - getClassMetaData |
641 | - * @param $field |
|
642 | - * @param $alias |
|
641 | + * @param string $field |
|
642 | + * @param string $alias |
|
643 | 643 | * |
644 | 644 | * @return array |
645 | 645 | */ |
@@ -668,7 +668,7 @@ discard block |
||
668 | 668 | * @param $meta - getClassMetaData |
669 | 669 | * @param $fk |
670 | 670 | * @param $field |
671 | - * @param $alias |
|
671 | + * @param string $alias |
|
672 | 672 | * @param $defaultAlias |
673 | 673 | * @param $targetEntity |
674 | 674 | */ |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @param string $token |
58 | 58 | * |
59 | - * @return Lcobucci\JWT\Token |
|
59 | + * @return Token|null |
|
60 | 60 | */ |
61 | 61 | public function decodeToken($token) |
62 | 62 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * Verify is validate token in signature. |
78 | 78 | * |
79 | - * @param Lcobucci\JWT\Token $token |
|
79 | + * @param Token $token |
|
80 | 80 | * |
81 | 81 | * @return bool |
82 | 82 | */ |
@@ -28,12 +28,12 @@ |
||
28 | 28 | $this->builder = new Builder(); |
29 | 29 | |
30 | 30 | $this->builder |
31 | - ->setIssuer(gethostname()) |
|
32 | - ->setId(time(), true); |
|
33 | - // ->setIssuedAt(time()) |
|
34 | - // ->setNotBefore(time() + 60) |
|
35 | - // ->setExpiration(time() + 3600) |
|
36 | - // ->set('teste', 1); |
|
31 | + ->setIssuer(gethostname()) |
|
32 | + ->setId(time(), true); |
|
33 | + // ->setIssuedAt(time()) |
|
34 | + // ->setNotBefore(time() + 60) |
|
35 | + // ->setExpiration(time() + 3600) |
|
36 | + // ->set('teste', 1); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | /** |
190 | 190 | * Retorna a instancia do SoapClient que foi incializada. |
191 | 191 | * |
192 | - * @return mixed |
|
192 | + * @return SoapClient |
|
193 | 193 | */ |
194 | 194 | public function getClient() |
195 | 195 | { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | /** |
200 | 200 | * Recebe o SoapClient que sera utilizado. |
201 | 201 | * |
202 | - * @param SoapClient $client |
|
202 | + * @param NativeSoapClient $client |
|
203 | 203 | * |
204 | 204 | * @return self |
205 | 205 | */ |
@@ -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 | } |
@@ -15,8 +15,8 @@ discard block |
||
15 | 15 | $entity = $this->getMockObject($except); |
16 | 16 | |
17 | 17 | $this->getRepository() |
18 | - ->save($entity) |
|
19 | - ->flush($entity); |
|
18 | + ->save($entity) |
|
19 | + ->flush($entity); |
|
20 | 20 | |
21 | 21 | return $entity; |
22 | 22 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $entity = $this->getFlushedMockObject(); |
88 | 88 | |
89 | 89 | $repository->remove($entity) |
90 | - ->flush($entity); |
|
90 | + ->flush($entity); |
|
91 | 91 | |
92 | 92 | $repository->find($entity->getId()); |
93 | 93 | } |