Completed
Push — development ( cfd391...deed4d )
by Andrij
12:03
created

test   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 10 1
1
<?php
2
use Gettext\Translation;
3
use translator\classes\LangReplacer;
4
5
/**
6
 * 1. Знайти всі ланги і замінити ключ на переклад на англ мову якщо існує переклад
7
 * 2. Знайти всі ланги і замінити ключ на переклад на англ мову
8
 *
9
 *
10
 * 3. Переклади після сортування зробити шоб завжди сортувалось однаково
0 ignored issues
show
introduced by
There must be exactly one blank line between descriptions in a doc comment
Loading history...
introduced by
Doc comment long description must start with a capital letter
Loading history...
11
 *
12
 */
0 ignored issues
show
introduced by
Additional blank lines found at end of doc comment
Loading history...
13
class test extends MY_Controller
0 ignored issues
show
introduced by
Class name must begin with a capital letter
Loading history...
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
Coding Style introduced by
This class is not in CamelCase format.

Classes in PHP are usually named in CamelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.

Thus the name database provider becomes DatabaseProvider.

Loading history...
14
{
15
16
    public function run() {
17
18
        //        dump(LangReplacer::getAllModules());
19
20
        //        LangReplacer::replaceModuleLangStrings($module);
21
22
        //                LangReplacer::replaceMainLangStrings();
23
        //               LangReplacer::findCyrillicKeys('main');
24
25
    }
26
27
}