Avoid using static access to class '\App\Language' in method 'testGetAll'. Open
$this->assertNotEmpty(\App\Language::getAll(true, true));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('TestString', \App\Language::translate('TestString', \App\Module::getModuleId('Leads')));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetAll'. Open
$this->assertNotEmpty(\App\Language::getAll(true, true));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetLangInfo'. Open
$this->assertNotEmpty(\App\Language::getLangInfo('pl-PL'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Session' in method 'testGetLanguage'. Open
\App\Session::set('language', 'pl-PL');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetLanguage'. Open
$this->assertSame('TestKey', \App\Language::translateSingleMod('TestKey'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testInitLocale'. Open
$this->assertNull(\App\Language::initLocale());
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetJsStrings'. Open
$this->assertNotEmpty(\App\Language::getJsStrings('Leads'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('', \App\Language::translate('', '_Base'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetLanguage'. Open
$currLang = \App\Language::getLanguage();
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetLanguage'. Open
$this->assertSame($currLang, \App\Language::getLanguage());
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
\App\Language::setTemporaryLanguage('en-US');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 53));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leady', \App\Language::translateEncodeHtml('Leads', 'Leads'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
\App\Language::setTemporaryLanguage('pt-BR');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertTrue('Ostrzeżenie systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 1));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_0', \App\Language::translatePluralized('Leads', 'Leads', 1));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testLoadLanguageFile'. Open
$this->assertNull(\App\Language::loadLanguageFile('pl-PL', 'Leads'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testLoadLanguageFile'. Open
$this->assertNull(\App\Language::loadLanguageFile('pl-PL', 'Leads'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetLanguage'. Open
$this->assertContains(\App\Language::getLanguageLabel('pl-PL'), ['Język Polski', 'Polski']);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetLanguage'. Open
$this->assertSame('Lead', \App\Language::translateSingularModuleName('Leads'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetJsStrings'. Open
$this->assertNotEmpty(\App\Language::getJsStrings('Settings'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetLanguage'. Open
$this->assertSame('SINGLE_Leads', \App\Language::getSingularModuleName('Leads'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Module' in method 'testTranslate'. Open
$this->assertSame('TestString', \App\Language::translate('TestString', \App\Module::getModuleId('Leads')));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 53));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetFromFile'. Open
$this->assertNotNull(\App\Language::getFromFile('Leads', 'pl-PL'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('pl-PL', \App\Language::getLanguage());
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('miesiąc', \App\Language::translate('LBL_MONTH'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertTrue('Ostrzeżenia systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 2));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslationModify'. Open
$this->assertNull(\App\Language::translationModify('pl-PL', 'Leads', 'PHP', 'FileTestString', 'file_test_string_content', true));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslationModify'. Open
$this->assertNull(\App\Language::translationModify('pl-PL', 'Leads', 'PHP', 'FileTestString', 'file_test_string_content', false));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertTrue('aaa z bbb są poprawne dla wybranego szablonu.' === \App\Language::translateArgs('LBL_VALID_RECORDS', 'Vtiger', 'aaa', 'bbb'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
\App\Language::setTemporaryLanguage('ru-RU');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_0', \App\Language::translatePluralized('Leads', 'Leads', 1));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testGetFromFile'. Open
$this->assertNotNull(\App\Language::getFromFile('Leads', 'pl-PL'));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertTrue('Ostrzeżeń systemowych' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 9));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 0));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
\App\Language::setTemporaryLanguage('pl-PL');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
\App\Language::setTemporaryLanguage('ro-RO');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'testTranslate'. Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Define a constant instead of duplicating this literal "Leads" 32 times. Open
$this->assertSame('SINGLE_Leads', \App\Language::getSingularModuleName('Leads'));
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "Leads_1" 3 times. Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "pl-PL" 11 times. Open
\App\Session::set('language', 'pl-PL');
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "Leads_2" 5 times. Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "Settings::Vtiger" 3 times. Open
$this->assertTrue('Ostrzeżenie systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 1));
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Define a constant instead of duplicating this literal "PLU_SYSTEM_WARNINGS" 3 times. Open
$this->assertTrue('Ostrzeżenie systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 1));
- Read upRead up
- Exclude checks
Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.
On the other hand, constants can be referenced from many places, but only need to be updated in a single place.
Noncompliant Code Example
With the default threshold of 3:
function run() { prepare('action1'); // Non-Compliant - 'action1' is duplicated 3 times execute('action1'); release('action1'); }
Compliant Solution
ACTION_1 = 'action1'; function run() { prepare(ACTION_1); execute(ACTION_1); release(ACTION_1); }
Exceptions
To prevent generating some false-positives, literals having less than 5 characters are excluded.
Call to undeclared method \Tests\App\Language::assertNotEmpty
Open
$this->assertNotEmpty(\App\Language::getAll(true, true));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 53));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNotNull
Open
$this->assertNotNull(\App\Language::getFromFile('Leads', 'pl-PL'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNull
Open
$this->assertNull(\App\Language::loadLanguageFile('pl-PL', 'Leads'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNotNull
Open
$this->assertNotNull(\App\Language::getFromFile('Leads', 'pl-PL'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_0', \App\Language::translatePluralized('Leads', 'Leads', 1));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 0));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNotEmpty
Open
$this->assertNotEmpty(\App\Language::getAll(true, true));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNotEmpty
Open
$this->assertNotEmpty(\App\Language::getJsStrings('Settings'));
- Exclude checks
Argument 2 (moduleName)
is bool|int
but \App\Language::translate()
takes string
defined at /code/app/Language.php:161
Open
$this->assertSame('TestString', \App\Language::translate('TestString', \App\Module::getModuleId('Leads')));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('pl-PL', \App\Language::getLanguage());
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame($currLang, \App\Language::getLanguage());
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Lead', \App\Language::translateSingularModuleName('Leads'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNotEmpty
Open
$this->assertNotEmpty(\App\Language::getLangInfo('pl-PL'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertTrue
Open
$this->assertTrue('aaa z bbb są poprawne dla wybranego szablonu.' === \App\Language::translateArgs('LBL_VALID_RECORDS', 'Vtiger', 'aaa', 'bbb'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('SINGLE_Leads', \App\Language::getSingularModuleName('Leads'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leady', \App\Language::translateEncodeHtml('Leads', 'Leads'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertTrue
Open
$this->assertTrue('Ostrzeżenia systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 2));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('TestString', \App\Language::translate('TestString', \App\Module::getModuleId('Leads')));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('miesiąc', \App\Language::translate('LBL_MONTH'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNotEmpty
Open
$this->assertNotEmpty(\App\Language::getJsStrings('Leads'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNull
Open
$this->assertNull(\App\Language::loadLanguageFile('pl-PL', 'Leads'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNull
Open
$this->assertNull(\App\Language::initLocale());
- Exclude checks
Call to undeclared method \Tests\App\Language::assertTrue
Open
$this->assertTrue('Ostrzeżeń systemowych' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 9));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('TestKey', \App\Language::translateSingleMod('TestKey'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertTrue
Open
$this->assertTrue('Ostrzeżenie systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 1));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 53));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNull
Open
$this->assertNull(\App\Language::translationModify('pl-PL', 'Leads', 'PHP', 'FileTestString', 'file_test_string_content', true));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertNull
Open
$this->assertNull(\App\Language::translationModify('pl-PL', 'Leads', 'PHP', 'FileTestString', 'file_test_string_content', false));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('', \App\Language::translate('', '_Base'));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertContains
Open
$this->assertContains(\App\Language::getLanguageLabel('pl-PL'), ['Język Polski', 'Polski']);
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Call to undeclared method \Tests\App\Language::assertSame
Open
$this->assertSame('Leads_0', \App\Language::translatePluralized('Leads', 'Leads', 1));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing translate method.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testTranslate()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing load language file function.
- Exclude checks
Line exceeds 120 characters; contains 138 characters Open
$this->assertNull(\App\Language::translationModify('pl-PL', 'Leads', 'PHP', 'FileTestString', 'file_test_string_content', false));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('TestKey', \App\Language::translateSingleMod('TestKey'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testGetLangInfo()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertTrue('aaa z bbb są poprawne dla wybranego szablonu.' === \App\Language::translateArgs('LBL_VALID_RECORDS', 'Vtiger', 'aaa', 'bbb'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertTrue('Ostrzeżenie systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 1));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertTrue('Ostrzeżeń systemowych' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 9));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 53));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
$this->assertNull(\App\Language::translationModify('pl-PL', 'Leads', 'PHP', 'FileTestString', 'file_test_string_content', true));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testGetLanguage()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotEmpty(\App\Language::getLangInfo('pl-PL'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leady', \App\Language::translateEncodeHtml('Leads', 'Leads'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing get language function.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$currLang = \App\Language::getLanguage();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotEmpty(\App\Language::getJsStrings('Leads'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNull(\App\Language::translationModify('pl-PL', 'Leads', 'PHP', 'FileTestString', 'file_test_string_content', false));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Line exceeds 120 characters; contains 138 characters Open
$this->assertTrue('Ostrzeżeń systemowych' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 9));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_0', \App\Language::translatePluralized('Leads', 'Leads', 1));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing init locale function.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNull(\App\Language::initLocale());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('TestString', \App\Language::translate('TestString', \App\Module::getModuleId('Leads')));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('pl-PL', \App\Language::getLanguage());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('SINGLE_Leads', \App\Language::getSingularModuleName('Leads'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Line exceeds 120 characters; contains 154 characters Open
$this->assertTrue('aaa z bbb są poprawne dla wybranego szablonu.' === \App\Language::translateArgs('LBL_VALID_RECORDS', 'Vtiger', 'aaa', 'bbb'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotEmpty(\App\Language::getJsStrings('Settings'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @throws \App\Exceptions\AppException
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertContains(\App\Language::getLanguageLabel('pl-PL'), ['Język Polski', 'Polski']);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_0', \App\Language::translatePluralized('Leads', 'Leads', 1));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testGetFromFile()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing get all languages data.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotEmpty(\App\Language::getAll(true, true));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotEmpty(\App\Language::getAll(true, true));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertTrue('Ostrzeżenia systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 2));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotNull(\App\Language::getFromFile('Leads', 'pl-PL'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNull(\App\Language::loadLanguageFile('pl-PL', 'Leads'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNull(\App\Language::translationModify('pl-PL', 'Leads', 'PHP', 'FileTestString', 'file_test_string_content', true));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Language::setTemporaryLanguage('pt-BR');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Language::setTemporaryLanguage('en-US');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Language::setTemporaryLanguage('ro-RO');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 53));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testGetAll()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing get language info by prefix.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('', \App\Language::translate('', '_Base'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testInitLocale()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing get javascript strings.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testGetJsStrings()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_1', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 5));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Session::set('language', 'pl-PL');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('miesiąc', \App\Language::translate('LBL_MONTH'));
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
$this->assertTrue('Ostrzeżenie systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 1));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Leads_2', \App\Language::translatePluralized('Leads', 'Leads', 0));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing get from file method.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNotNull(\App\Language::getFromFile('Leads', 'pl-PL'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testLoadLanguageFile()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertNull(\App\Language::loadLanguageFile('pl-PL', 'Leads'));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame($currLang, \App\Language::getLanguage());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$this->assertSame('Lead', \App\Language::translateSingularModuleName('Leads'));
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
$this->assertTrue('Ostrzeżenia systemowe' === \App\Language::translatePluralized('PLU_SYSTEM_WARNINGS', 'Settings::Vtiger', 2));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Language::setTemporaryLanguage('ru-RU');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
\App\Language::setTemporaryLanguage('pl-PL');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Testing translation files modification method.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public function testTranslationModify()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks