Completed
Push — master ( b7a0cb...746c52 )
by Rai
03:01
created
src/Lumen/Authentication/JWT/Libs/JWT.php 1 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/Lumen/Tests/Repositories/BaseRepositoryTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
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/Http/Controllers/DeleteTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
         $entity = $this->getServiceTest()->getRepositoryTest()->getFlushedMockObject();
10 10
 
11 11
         $response = $this->curlHelper
12
-                         ->setPosFixUrl('/'.$entity->getId())
13
-                         ->delete()
14
-                         ->send()
15
-                         ->getResponse();
12
+                            ->setPosFixUrl('/'.$entity->getId())
13
+                            ->delete()
14
+                            ->send()
15
+                            ->getResponse();
16 16
 
17 17
         $this->assertEquals(200, $response['code']);
18 18
 
Please login to merge, or discard this patch.
src/Lumen/Traits/Tests/Http/Controllers/UpdateTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
         }
19 19
 
20 20
         $response = $this->curlHelper
21
-                         ->setPosFixUrl('/'.$flushedMockArray['id'])
22
-                         ->put($flushedMockArray)
23
-                         ->send()
24
-                         ->getResponse();
21
+                            ->setPosFixUrl('/'.$flushedMockArray['id'])
22
+                            ->put($flushedMockArray)
23
+                            ->send()
24
+                            ->getResponse();
25 25
 
26 26
         $this->assertEquals(200, $response['code']);
27 27
 
Please login to merge, or discard this patch.
src/Lumen/Traits/Tests/Http/Controllers/CreateTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
     public function testStore()
8 8
     {
9 9
         $response = $this->curlHelper
10
-                         ->post(
10
+                            ->post(
11 11
                             $this->getServiceTest()->getRepositoryTest()->getMockArray()
12
-                         )
13
-                         ->send()
14
-                         ->getResponse();
12
+                            )
13
+                            ->send()
14
+                            ->getResponse();
15 15
 
16 16
         $this->assertEquals(200, $response['code']);
17 17
 
Please login to merge, or discard this patch.
src/Lumen/Traits/Http/Controllers/ReadTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
     {
14 14
         return response()->json(
15 15
             $this->mainService
16
-                 ->findAll($this->translateFilters($request))
17
-                 ->toArray($this->optionsToArrayIndex)
16
+                    ->findAll($this->translateFilters($request))
17
+                    ->toArray($this->optionsToArrayIndex)
18 18
         );
19 19
     }
20 20
 
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
     {
23 23
         return response()->json(
24 24
             $this->mainService
25
-                 ->find($id)
26
-                 ->toArray($this->optionsToArrayShow)
25
+                    ->find($id)
26
+                    ->toArray($this->optionsToArrayShow)
27 27
         );
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Lumen/Traits/Http/Controllers/DeleteTrait.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
     public function destroy($id)
10 10
     {
11 11
         $entity = $this->mainService
12
-                       ->remove($id)
13
-                       ->flush();
12
+                        ->remove($id)
13
+                        ->flush();
14 14
 
15 15
         return response()->json($entity->toArray($this->optionsToArrayDestroy));
16 16
     }
Please login to merge, or discard this patch.
src/Lumen/Traits/Http/Controllers/UpdateTrait.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,17 +11,17 @@
 block discarded – undo
11 11
     public function update(Request $request, $id)
12 12
     {
13 13
         $entity = $this->mainService
14
-                       ->update(
14
+                        ->update(
15 15
                             $id,
16 16
                             $this->filterRequest(
17 17
                                 $request->json()->all(),
18 18
                                 $this->mainService
19
-                                     ->getMainRepository()
20
-                                     ->createEntity()
21
-                                     ->getOnlyUpdate()
19
+                                        ->getMainRepository()
20
+                                        ->createEntity()
21
+                                        ->getOnlyUpdate()
22 22
                             )
23
-                       )
24
-                       ->flush();
23
+                        )
24
+                        ->flush();
25 25
 
26 26
         return response()->json($entity->toArray($this->optionsToArrayUpdate));
27 27
     }
Please login to merge, or discard this patch.