original_string: public static function load($file)
      {
          $complement = Json::fileToArray($file);
          $complement['config-file'] = $file;
          self::$id = isset($complement['id']) ? $complement['id'] : 'Default';
          $that = self::getInstance();
  
          return $that->setComplement($complement);
      }
code: public static function load($file)
      {
          $complement = Json::fileToArray($file);
          $complement['config-file'] = $file;
          self::$id = isset($complement['id']) ? $complement['id'] : 'Default';
          $that = self::getInstance();
  
          return $that->setComplement($complement);
      }
code_tokens: public static function load ( $ file ) { $ complement = Json :: fileToArray ( $ file ) ; $ complement [ 'config-file' ] = $ file ; self :: $ id = isset ( $ complement [ 'id' ] ) ? $ complement [ 'id' ] : 'Default' ; $ that = self :: getInstance ( ) ; return $ that -> setComplement ( $ complement ) ; }
docstring: Load complement configuration from json file and set settings.
  
  @param string $file → path or url to the complement configuration file
  
  @uses \Josantonius\Json\Json::fileToArray()
  @uses \Eliasis\Complement\ComplementHandler->setComplement()
  
  @return bool true
docstring_tokens: Load complement configuration from json file and set settings .