Completed
Push — master ( 3f30e7...37b632 )
by Dmitry
08:21
created
test/php/Test/BootstrapTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Test;
4 4
 
5 5
 use Basis\Test;
6
-use Basis\Filesystem;
7 6
 
8 7
 class BootstrapTest extends Test
9 8
 {
Please login to merge, or discard this patch.
src/Converter.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace Basis;
4 4
 
5 5
 use Carbon\Carbon;
6
-use Exception;
7
-use stdClass;
8 6
 use Tarantool\Mapper\Entity;
9 7
 
10 8
 class Converter
Please login to merge, or discard this patch.
src/Context.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Basis;
4 4
 
5
-use Carbon\Carbon;
6
-
7 5
 class Context
8 6
 {
9 7
     public $access;
Please login to merge, or discard this patch.
src/Toolkit.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Basis;
4 4
 
5
-use Tarantool\Mapper\Entity;
6 5
 use Tarantool\Mapper\Mapper;
7 6
 use Tarantool\Mapper\Pool;
8 7
 use Tarantool\Queue\Queue;
Please login to merge, or discard this patch.
src/Provider/ServiceProvider.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,10 +6,8 @@
 block discarded – undo
6 6
 use Basis\Cache;
7 7
 use Basis\Config;
8 8
 use Basis\Event;
9
-use Basis\Filesystem;
10 9
 use Basis\Service;
11 10
 use League\Container\ServiceProvider\AbstractServiceProvider;
12
-use Tarantool\Mapper\Pool;
13 11
 
14 12
 class ServiceProvider extends AbstractServiceProvider
15 13
 {
Please login to merge, or discard this patch.
src/Provider/CoreProvider.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,6 @@
 block discarded – undo
13 13
 use Basis\Framework;
14 14
 use Basis\Http;
15 15
 use Basis\Lock;
16
-use Basis\Service;
17
-use GuzzleHttp\Client as GuzzleHttpClient;
18 16
 use League\Container\ServiceProvider\AbstractServiceProvider;
19 17
 use Predis\Client as PredisClient;
20 18
 
Please login to merge, or discard this patch.
test/php/Test/EventTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Test;
4 4
 
5
-use Basis\Converter;
6 5
 use Basis\Event;
7 6
 use Basis\Http;
8 7
 use Basis\Test;
Please login to merge, or discard this patch.
src/Procedure/JobQueue/Cast.php 1 patch
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -14,10 +14,3 @@
 block discarded – undo
14 14
     public function getBody(): string
15 15
     {
16 16
         return <<<LUA
17
-            box.begin()
18
-            local creator = mapper_find_or_create('job_queue', 'hash_status', { hash, 'r' }, tuple, 1, 1)
19
-            box.commit()
20
-            return creator
21
-        LUA;
22
-    }
23
-}
Please login to merge, or discard this patch.
src/Procedure/JobQueue/Take.php 1 patch
Unused Use Statements   -11 removed lines patch added patch discarded remove patch
@@ -14,14 +14,3 @@
 block discarded – undo
14 14
     public function getBody(): string
15 15
     {
16 16
         return <<<LUA
17
-        box.begin()
18
-        local tuples = box.space.job_queue.index.status_id:select({'r'}, { limit = 1})
19
-        if #tuples > 0 then
20
-            local request = box.space.job_queue:update(tuples[1].id, {{'=', 2, 't'}})
21
-            box.commit()
22
-            return request
23
-        end
24
-        box.rollback()
25
-        LUA;
26
-    }
27
-}
Please login to merge, or discard this patch.