original_string: public function set($key, $value = null)
      {
          $data = is_array($key) ? $key : [$key => $value];
          $obj = self::instance();
          $obj->fill($data);
          return $obj->save();
      }
code: public function set($key, $value = null)
      {
          $data = is_array($key) ? $key : [$key => $value];
          $obj = self::instance();
          $obj->fill($data);
          return $obj->save();
      }
code_tokens: public function set ( $ key , $ value = null ) { $ data = is_array ( $ key ) ? $ key : [ $ key => $ value ] ; $ obj = self :: instance ( ) ; $ obj -> fill ( $ data ) ; return $ obj -> save ( ) ; }
docstring: Set a single or array key pair of values, intended as a static method
docstring_tokens: Set a single or array key pair of values intended as a static method