Completed
Push — master ( d23403...374141 )
by Rai
03:12
created
src/Lumen/Application/BaseApplication.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @return Bludata\Lumen\Application\BaseApplication
27
+     * @return BaseApplication
28 28
      */
29 29
     public function resource($descriptionGroup, $prefix, $controller, array $except = [], Closure $routes = null)
30 30
     {
Please login to merge, or discard this patch.
src/Common/Traits/AttributesTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Doctrine/Common/Interfaces/BaseRepositoryInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -4,12 +4,18 @@  discard block
 block discarded – undo
4 4
 
5 5
 interface BaseRepositoryInterface
6 6
 {
7
+    /**
8
+     * @return boolean|null
9
+     */
7 10
     public function validate(BaseEntityInterface $entity);
8 11
 
9 12
     public function getEntityName();
10 13
 
11 14
     public function query();
12 15
 
16
+    /**
17
+     * @return \Bludata\Doctrine\ORM\Repositories\QueryWorker
18
+     */
13 19
     public function findAll();
14 20
 
15 21
     public function findOneBy(array $filters, $abort = true);
@@ -32,7 +38,13 @@  discard block
 block discarded – undo
32 38
 
33 39
     public function createEntity();
34 40
 
41
+    /**
42
+     * @return \Bludata\Doctrine\ORM\Repositories\QueryWorker
43
+     */
35 44
     public function createQueryWorker();
36 45
 
46
+    /**
47
+     * @return string
48
+     */
37 49
     public function getMessageNotFound();
38 50
 }
Please login to merge, or discard this patch.
src/Doctrine/ORM/CustomFunctions/String/Format.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      *
26 26
      * @param \Doctrine\ORM\Query\SqlWalker $sqlWalker
27 27
      *
28
-     * @return void
28
+     * @return string
29 29
      */
30 30
     public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
31 31
     {
Please login to merge, or discard this patch.
src/Doctrine/Common/Traits/SetPropertiesEntityTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Lumen/Traits/Tests/Services/ReadTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
     public function testFindAll()
8 8
     {
9 9
         $entity = $this->getService()
10
-                       ->store($this->getRepositoryTest()->getMockArray())
11
-                       ->flush();
10
+                        ->store($this->getRepositoryTest()->getMockArray())
11
+                        ->flush();
12 12
 
13 13
         $findAll = $this->getService()->findAll()->getResult();
14 14
 
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
     public function testFind()
20 20
     {
21 21
         $entity = $this->getService()
22
-                       ->store($this->getRepositoryTest()->getMockArray())
23
-                       ->flush();
22
+                        ->store($this->getRepositoryTest()->getMockArray())
23
+                        ->flush();
24 24
 
25 25
         $find = $this->getService()->find($entity->getId());
26 26
 
Please login to merge, or discard this patch.
src/Lumen/Traits/Tests/Services/DeleteTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@
 block discarded – undo
10 10
     public function testRemove()
11 11
     {
12 12
         $entity = $this->getService()
13
-                       ->store($this->getRepositoryTest()->getMockArray())
14
-                       ->flush();
13
+                        ->store($this->getRepositoryTest()->getMockArray())
14
+                        ->flush();
15 15
 
16 16
         $this->getService()
17
-             ->remove($entity->getId())
18
-             ->flush();
17
+                ->remove($entity->getId())
18
+                ->flush();
19 19
 
20 20
         $find = $this->getService()->getMainRepository()->find($entity->getId());
21 21
     }
Please login to merge, or discard this patch.
src/Lumen/Traits/Tests/Services/UpdateTrait.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
         }
19 19
 
20 20
         $entity = $this->getService()
21
-                       ->update($flushedMockArray['id'], $flushedMockArray)
22
-                       ->flush();
21
+                        ->update($flushedMockArray['id'], $flushedMockArray)
22
+                        ->flush();
23 23
 
24 24
         $repository = $this->getService()->getMainRepository();
25 25
 
Please login to merge, or discard this patch.
src/Lumen/Traits/Tests/Services/CreateTrait.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
     public function testStore()
8 8
     {
9 9
         $entity = $this->getService()
10
-                       ->store($this->getRepositoryTest()->getMockArray())
11
-                       ->flush();
10
+                        ->store($this->getRepositoryTest()->getMockArray())
11
+                        ->flush();
12 12
 
13 13
         $repository = $this->getService()
14
-                           ->getMainRepository();
14
+                            ->getMainRepository();
15 15
 
16 16
         $find = $repository->find($entity->getId());
17 17
 
Please login to merge, or discard this patch.