@@ -40,26 +40,26 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * Fetch translated file to config attribute |
| 42 | 42 | */ |
| 43 | - self::$config = include( 'src/CalendarSettings/Jalali.php' ); |
|
| 43 | + self::$config = include( 'src/CalendarSettings/Jalali.php' ); |
|
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * Fetch translated expression to langTable attribute |
|
| 47 | - */ |
|
| 48 | - self::$langTable = include( 'lang/' . $language . '/general.php' ); |
|
| 45 | + /** |
|
| 46 | + * Fetch translated expression to langTable attribute |
|
| 47 | + */ |
|
| 48 | + self::$langTable = include( 'lang/' . $language . '/general.php' ); |
|
| 49 | 49 | |
| 50 | - foreach( self::$langTable as $key => $translate ){ |
|
| 50 | + foreach( self::$langTable as $key => $translate ){ |
|
| 51 | 51 | |
| 52 | - if ( isset( self::$config[ $key ] ) ) { |
|
| 52 | + if ( isset( self::$config[ $key ] ) ) { |
|
| 53 | 53 | |
| 54 | - if ( self::$config[ $key ] ) { |
|
| 54 | + if ( self::$config[ $key ] ) { |
|
| 55 | 55 | |
| 56 | - self::$config[ $key ] = $translate; |
|
| 56 | + self::$config[ $key ] = $translate; |
|
| 57 | 57 | |
| 58 | - } |
|
| 58 | + } |
|
| 59 | 59 | |
| 60 | - } |
|
| 60 | + } |
|
| 61 | 61 | |
| 62 | - } |
|
| 62 | + } |
|
| 63 | 63 | |
| 64 | 64 | } |
| 65 | 65 | |
@@ -35,25 +35,25 @@ |
||
| 35 | 35 | * |
| 36 | 36 | *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ |
| 37 | 37 | */ |
| 38 | - public static function setConfig( $language ) { |
|
| 38 | + public static function setConfig($language) { |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * Fetch translated file to config attribute |
| 42 | 42 | */ |
| 43 | - self::$config = include( 'src/CalendarSettings/Jalali.php' ); |
|
| 43 | + self::$config = include('src/CalendarSettings/Jalali.php'); |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Fetch translated expression to langTable attribute |
| 47 | 47 | */ |
| 48 | - self::$langTable = include( 'lang/' . $language . '/general.php' ); |
|
| 48 | + self::$langTable = include('lang/'.$language.'/general.php'); |
|
| 49 | 49 | |
| 50 | - foreach( self::$langTable as $key => $translate ){ |
|
| 50 | + foreach (self::$langTable as $key => $translate) { |
|
| 51 | 51 | |
| 52 | - if ( isset( self::$config[ $key ] ) ) { |
|
| 52 | + if (isset(self::$config[$key])) { |
|
| 53 | 53 | |
| 54 | - if ( self::$config[ $key ] ) { |
|
| 54 | + if (self::$config[$key]) { |
|
| 55 | 55 | |
| 56 | - self::$config[ $key ] = $translate; |
|
| 56 | + self::$config[$key] = $translate; |
|
| 57 | 57 | |
| 58 | 58 | } |
| 59 | 59 | |