Completed
Push — master ( 02af7a...be6bf8 )
by Rai
11:37
created
src/Lumen/Traits/Tests/Http/Controllers/UpdateTrait.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 trait UpdateTrait
6 6
 {
7
-	public function testUpdate()
7
+    public function testUpdate()
8 8
     {
9 9
         $flushedMockArray = $this->getServiceTest()->getRepositoryTest()->getFlushedMockArray();
10 10
         $mockArray = $this->getServiceTest()->getRepositoryTest()->getMockArray();
@@ -18,10 +18,10 @@  discard block
 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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 trait CreateTrait
6 6
 {
7
-	public function testStore()
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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,12 +9,12 @@  discard block
 block discarded – undo
9 9
     protected $optionsToArrayIndex;
10 10
     protected $optionsToArrayShow;
11 11
 
12
-	public function index(Request $request)
12
+    public function index(Request $request)
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 {
7 7
     protected $optionsToArrayDestroy;
8 8
     
9
-	public function destroy($id)
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   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,20 +8,20 @@
 block discarded – undo
8 8
 {
9 9
     protected $optionsToArrayUpdate;
10 10
 
11
-	public function update(Request $request, $id)
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.
src/Lumen/Traits/Http/Controllers/CreateTrait.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -8,19 +8,19 @@
 block discarded – undo
8 8
 {
9 9
     protected $optionsToArrayStore;
10 10
 
11
-	public function store(Request $request)
11
+    public function store(Request $request)
12 12
     {
13 13
         $entity = $this->mainService
14
-                       ->store(
15
-                       		$this->filterRequest(
16
-	                       		$request->json()->all(),
17
-	                            $this->mainService
18
-	                                 ->getMainRepository()
19
-	                                 ->createEntity()
20
-	                                 ->getOnlyStore()
21
-	                        )
22
-                       )
23
-                       ->flush();
14
+                        ->store(
15
+                                $this->filterRequest(
16
+                                    $request->json()->all(),
17
+                                $this->mainService
18
+                                        ->getMainRepository()
19
+                                        ->createEntity()
20
+                                        ->getOnlyStore()
21
+                            )
22
+                        )
23
+                        ->flush();
24 24
 
25 25
         return response()->json($entity->toArray($this->optionsToArrayStore));
26 26
     }
Please login to merge, or discard this patch.