Passed
Push — dev ( 1a31b5...8e8e3b )
by Dispositif
03:08
created

FileWorker::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
///**
3
// * This file is part of dispositif/wikibot application
4
// * 2019 : Philippe M. <[email protected]>
5
// * For the full copyright and MIT license information, please view the LICENSE file.
6
// */
7
//
8
//declare(strict_types=1);
9
//
10
//namespace App\Application;
11
//
12
//use App\Infrastructure\CorpusAdapter;
13
//use Symfony\Component\Console\Style\SymfonyStyle;
14
//
15
//class FileWorker
16
//{
17
//    /**
18
//     * @param SymfonyStyle|null $io
19
//     */
20
//    public function run(?SymfonyStyle $io = null)
21
//    {
22
//        $corp = new CorpusAdapter();
23
//
24
//        echo 'WORKER '.__CLASS__."\n";
25
//        echo "To exit press CTRL+C\n";
26
//
27
//        while (true) {
28
//            $this->process($io);
29
//            sleep(5);
30
//        }
31
//    }
32
//
33
//    public function process($io)
34
//    {
35
//        $name = $io->ask('Continue ?');
36
//        echo time()."\n";
37
//    }
38
//}
39
////
40
////$console = new Application('worker', '0.1');
41
////$console->addCommand(new WorkerCommand());
42
////$worker = new FileWorker();
43
////$worker->run();
44