@@ -523,7 +523,7 @@ |
||
| 523 | 523 | * Get the label for a resource, preferring 1. the given language 2. configured languages 3. any language. |
| 524 | 524 | * @param EasyRdf_Resource $res resource whose label to return |
| 525 | 525 | * @param string $lang preferred language |
| 526 | - * @return EasyRdf_Literal label as an EasyRdf_Literal object, or null if not found |
|
| 526 | + * @return string label as an EasyRdf_Literal object, or null if not found |
|
| 527 | 527 | */ |
| 528 | 528 | public function getResourceLabel($res, $lang) |
| 529 | 529 | { |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | class GlobalConfig { |
| 4 | 4 | private $languages; |
| 5 | 5 | |
| 6 | - public function __construct($config_name=null) |
|
| 6 | + public function __construct($config_name = null) |
|
| 7 | 7 | { |
| 8 | 8 | try { |
| 9 | 9 | $file_path = dirname(__FILE__); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | } else { |
| 13 | 13 | $file_path .= '/../config.inc'; |
| 14 | 14 | } |
| 15 | - if (!file_exists(dirname(__FILE__).'/../config.inc')) { |
|
| 15 | + if (!file_exists(dirname(__FILE__) . '/../config.inc')) { |
|
| 16 | 16 | throw new Exception('config.inc file is missing, please provide one.'); |
| 17 | 17 | } |
| 18 | 18 | require_once($file_path); |