Completed
Push — master ( d1404e...b9be27 )
by Jonathan André
08:02
created
src/Common/Helpers/helpers.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -58,6 +58,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Doctrine/Common/Interfaces/BaseEntityInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -16,8 +16,14 @@
 block discarded – undo
16 16
 
17 17
     public function forcePersist();
18 18
 
19
+    /**
20
+     * @return void
21
+     */
19 22
     public function prePersist();
20 23
 
24
+    /**
25
+     * @return void
26
+     */
21 27
     public function preUpdate();
22 28
 
23 29
     /**
Please login to merge, or discard this patch.
src/Doctrine/ODM/MongoDB/Entities/BaseEntity.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -169,6 +169,9 @@
 block discarded – undo
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 (
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 use Bludata\Doctrine\Common\Interfaces\BaseEntityInterface;
6 6
 use Bludata\Doctrine\Common\Interfaces\EntityManagerInterface;
7 7
 use Bludata\Doctrine\Common\Interfaces\EntityTimestampInterface;
8
+use Doctrine\Common\Collections\ArrayCollection;
8 9
 use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
9 10
 use Doctrine\ODM\MongoDB\PersistentCollection;
10
-use Doctrine\Common\Collections\ArrayCollection;
11 11
 
12 12
 /**
13 13
  * @ODM\MappedSuperclass
Please login to merge, or discard this patch.
src/Doctrine/ODM/MongoDB/Repositories/BaseRepository.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 block discarded – undo
12 12
 {
13 13
     abstract public function preSave(BaseEntityInterface $entity);
14 14
 
15
+    /**
16
+     * @return string
17
+     */
15 18
     abstract public function getMessageNotFound();
16 19
 
17 20
     public function validate(BaseEntityInterface $entity)
@@ -137,9 +140,9 @@  discard block
 block discarded – undo
137 140
     }
138 141
 
139 142
     /**
140
-     * @param Bludata\Entities\BaseEntityInterface $entity
143
+     * @param BaseEntityInterface $entity
141 144
      *
142
-     * @return Bludata\Repositories\QueryWorker
145
+     * @return BaseRepository
143 146
      */
144 147
     public function save(BaseEntityInterface $entity)
145 148
     {
@@ -149,9 +152,9 @@  discard block
 block discarded – undo
149 152
     }
150 153
 
151 154
     /**
152
-     * @param Bludata\Entities\BaseEntityInterface $entity
155
+     * @param BaseEntityInterface $entity
153 156
      *
154
-     * @return Bludata\Repositories\QueryWorker
157
+     * @return BaseRepository
155 158
      */
156 159
     public function flush(BaseEntityInterface $entity = null)
157 160
     {
Please login to merge, or discard this patch.
src/Doctrine/ORM/Repositories/BaseRepository.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Doctrine/ORM/Repositories/QueryWorker.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Lumen/Authentication/JWT/Libs/JWT.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Soap/SoapClient.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Lumen/Http/Controllers/CRUDController.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -9,26 +9,26 @@  discard block
 block discarded – undo
9 9
     public function index(Request $request)
10 10
     {
11 11
         return response()->json($this->mainService
12
-                                     ->findAll($this->translateFilters($request))
13
-                                     ->toArray());
12
+                                        ->findAll($this->translateFilters($request))
13
+                                        ->toArray());
14 14
     }
15 15
 
16 16
     public function show($id)
17 17
     {
18 18
         return response()->json($this->mainService
19
-                                     ->find($id)->toArray());
19
+                                        ->find($id)->toArray());
20 20
     }
21 21
 
22 22
     public function store(Request $request)
23 23
     {
24 24
         $entity = $this->mainService
25
-                       ->store($this->filterRequest($request->json()
25
+                        ->store($this->filterRequest($request->json()
26 26
                                                             ->all(),
27 27
                                                     $this->mainService
28
-                                                         ->getMainRepository()
29
-                                                         ->createEntity()
30
-                                                         ->getOnlyStore()))
31
-                       ->flush();
28
+                                                            ->getMainRepository()
29
+                                                            ->createEntity()
30
+                                                            ->getOnlyStore()))
31
+                        ->flush();
32 32
 
33 33
         return response()->json($entity->toArray());
34 34
     }
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
36 36
     public function update(Request $request, $id)
37 37
     {
38 38
         $entity = $this->mainService
39
-                       ->update($id, $this->filterRequest($request->json()
40
-                                                                  ->all(),
41
-                                                          $this->mainService
42
-                                                               ->getMainRepository()
43
-                                                               ->createEntity()
44
-                                                               ->getOnlyUpdate()))
45
-                       ->flush();
39
+                        ->update($id, $this->filterRequest($request->json()
40
+                                                                    ->all(),
41
+                                                            $this->mainService
42
+                                                                ->getMainRepository()
43
+                                                                ->createEntity()
44
+                                                                ->getOnlyUpdate()))
45
+                        ->flush();
46 46
 
47 47
         return response()->json($entity->toArray());
48 48
     }
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
     public function destroy($id)
51 51
     {
52 52
         $entity = $this->mainService
53
-                       ->remove($id)
54
-                       ->flush();
53
+                        ->remove($id)
54
+                        ->flush();
55 55
 
56 56
         return response()->json($entity->toArray());
57 57
     }
Please login to merge, or discard this patch.