Add one line between each function.
This commit is contained in:
parent
b822c305c7
commit
6d700faaa1
|
|
@ -5,12 +5,14 @@
|
||||||
* @method array get
|
* @method array get
|
||||||
*/
|
*/
|
||||||
class text {
|
class text {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when the object is created
|
* Called when the object is created
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
//place holder
|
//place holder
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when there are no references to a particular object
|
* Called when there are no references to a particular object
|
||||||
* unset the variables used in the class
|
* unset the variables used in the class
|
||||||
|
|
@ -20,6 +22,7 @@ class text {
|
||||||
unset($this->$key);
|
unset($this->$key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a specific item from the cache
|
* Get a specific item from the cache
|
||||||
* @var string $language_code examples: en-us, es-cl, fr-fr, pt-pt
|
* @var string $language_code examples: en-us, es-cl, fr-fr, pt-pt
|
||||||
|
|
@ -40,7 +43,6 @@ class text {
|
||||||
if(file_exists($lang_path)){
|
if(file_exists($lang_path)){
|
||||||
require $lang_path;
|
require $lang_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the available languages
|
//get the available languages
|
||||||
krsort($text);
|
krsort($text);
|
||||||
foreach ($text as $lang_label => $lang_codes) {
|
foreach ($text as $lang_label => $lang_codes) {
|
||||||
|
|
@ -79,7 +81,7 @@ class text {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//return the array of translations
|
//return the array of translations
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue