From a1c7e6908a26e10f6e1f23a51721664b5e2d838d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 02:53:53 +0900 Subject: chore(style): cargo fmt --- crates/shirabe-php-shim/src/lib.rs | 57 ++++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 17 deletions(-) (limited to 'crates/shirabe-php-shim/src/lib.rs') diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 5575a79..323d8f8 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -194,7 +194,12 @@ pub fn array_search_in_vec(needle: &str, haystack: &[String]) -> Option { todo!() } -pub fn array_splice(array: &mut Vec, offset: usize, length: usize, replacement: &[T]) -> Vec { +pub fn array_splice( + array: &mut Vec, + offset: usize, + length: usize, + replacement: &[T], +) -> Vec { todo!() } @@ -500,7 +505,11 @@ impl PharData { todo!() } - pub fn build_from_iterator(&self, iter: &mut dyn Iterator, base: &str) { + pub fn build_from_iterator( + &self, + iter: &mut dyn Iterator, + base: &str, + ) { todo!() } @@ -687,7 +696,10 @@ pub fn substr_count(haystack: &str, needle: &str) -> i64 { todo!() } -pub fn openssl_x509_parse(certificate: &str, short_names: bool) -> Option>> { +pub fn openssl_x509_parse( + certificate: &str, + short_names: bool, +) -> Option>> { todo!() } @@ -736,9 +748,7 @@ pub fn spl_autoload_register( todo!() } -pub fn spl_autoload_unregister( - callback: Box PhpMixed + Send + Sync>, -) -> bool { +pub fn spl_autoload_unregister(callback: Box PhpMixed + Send + Sync>) -> bool { let _ = callback; todo!() } @@ -1129,11 +1139,7 @@ pub fn feof(stream: PhpMixed) -> bool { todo!() } -pub fn str_replace_array( - search: &[String], - replace: &[String], - subject: &str, -) -> String { +pub fn str_replace_array(search: &[String], replace: &[String], subject: &str) -> String { todo!() } @@ -1160,7 +1166,11 @@ pub fn copy(source: &str, dest: &str) -> bool { todo!() } -pub fn exec(command: &str, output: Option<&mut Vec>, exit_code: Option<&mut i64>) -> Option { +pub fn exec( + command: &str, + output: Option<&mut Vec>, + exit_code: Option<&mut i64>, +) -> Option { todo!() } @@ -1168,7 +1178,12 @@ pub fn tempnam(dir: &str, prefix: &str) -> Option { todo!() } -pub fn openssl_verify(data: &str, signature: &[u8], pub_key_id: PhpMixed, algorithm: PhpMixed) -> i64 { +pub fn openssl_verify( + data: &str, + signature: &[u8], + pub_key_id: PhpMixed, + algorithm: PhpMixed, +) -> i64 { todo!() } @@ -1219,11 +1234,13 @@ pub fn reset(array: &[T]) -> Option { todo!() } - pub const OPENSSL_ALGO_SHA384: i64 = 9; pub const PHP_VERSION_ID: i64 = 80100; -pub fn array_intersect_key(array1: &IndexMap>, array2: &IndexMap>) -> IndexMap> { +pub fn array_intersect_key( + array1: &IndexMap>, + array2: &IndexMap>, +) -> IndexMap> { todo!() } @@ -1239,7 +1256,10 @@ pub fn serialize(value: &PhpMixed) -> String { todo!() } -pub fn stream_context_create(options: &IndexMap, params: Option<&IndexMap>) -> PhpMixed { +pub fn stream_context_create( + options: &IndexMap, + params: Option<&IndexMap>, +) -> PhpMixed { todo!() } @@ -1258,7 +1278,10 @@ where todo!() } -pub fn array_replace_recursive(base: IndexMap, replacement: IndexMap) -> IndexMap { +pub fn array_replace_recursive( + base: IndexMap, + replacement: IndexMap, +) -> IndexMap { todo!() } -- cgit v1.3.1