for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Gettext\Translation;
use translator\classes\LangReplacer;
/**
* 1. Знайти всі ланги і замінити ключ на переклад на англ мову якщо існує переклад
* 2. Знайти всі ланги і замінити ключ на переклад на англ мову
*
* 3. Переклади після сортування зробити шоб завжди сортувалось однаково
*/
class test extends MY_Controller
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.
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.
DatabaseProvider
{
public function run() {
// dump(LangReplacer::getAllModules());
// LangReplacer::replaceModuleLangStrings($module);
// LangReplacer::replaceMainLangStrings();
// LangReplacer::findCyrillicKeys('main');
}