Completed
Push — master ( 02af7a...be6bf8 )
by Rai
11:37
created
src/Lumen/Traits/Services/ReadTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 trait ReadTrait
6 6
 {
7
-	public function findAll(array $filters = null)
7
+    public function findAll(array $filters = null)
8 8
     {
9 9
         return $this->mainRepository->findAll()->withFilters($filters);
10 10
     }
Please login to merge, or discard this patch.
src/Lumen/Traits/Services/DeleteTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 trait DeleteTrait
6 6
 {
7
-	public function remove($id)
7
+    public function remove($id)
8 8
     {
9 9
         return $this->mainRepository
10 10
                     ->find($id)
Please login to merge, or discard this patch.
src/Lumen/Traits/Services/UpdateTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 trait UpdateTrait
6 6
 {
7
-	public function update($id, array $data)
7
+    public function update($id, array $data)
8 8
     {
9 9
         $entity = $this->mainRepository->find($id);
10 10
 
Please login to merge, or discard this patch.
src/Lumen/Traits/Services/CreateTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 trait CreateTrait
6 6
 {
7
-	public function store(array $data)
7
+    public function store(array $data)
8 8
     {
9 9
         $entity = $this->mainRepository->createEntity();
10 10
 
Please login to merge, or discard this patch.
src/Lumen/Traits/Tests/Services/ReadTrait.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 
5 5
 trait ReadTrait
6 6
 {
7
-	public function testFindAll()
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
 
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
         $this->assertInstanceOf($this->getService()->getMainRepository()->getEntityName(), $findAll[0]);
17 17
     }
18 18
 
19
-	public function testFind()
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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,18 +4,18 @@
 block discarded – undo
4 4
 
5 5
 trait DeleteTrait
6 6
 {
7
-	/**
7
+    /**
8 8
      * @expectedException Symfony\Component\HttpKernel\Exception\NotFoundHttpException
9 9
      */
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   +3 added lines, -3 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->getRepositoryTest()->getFlushedMockArray();
10 10
         $mockArray = $this->getRepositoryTest()->getMockArray();
@@ -18,8 +18,8 @@  discard block
 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   +4 added lines, -4 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
         $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.
src/Lumen/Traits/Tests/Http/Controllers/ReadTrait.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 trait ReadTrait
6 6
 {
7
-	public function testIndex()
7
+    public function testIndex()
8 8
     {
9 9
         $this->getServiceTest()->getRepositoryTest()->getFlushedMockObject();
10 10
 
Please login to merge, or discard this patch.