From 38621c67917fd015f884ea04517791cdc5058c6d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 11 Aug 2026 23:28:40 +0900 Subject: chore(php-shim): drop the substring predicate ports str_contains(), str_starts_with() and str_ends_with() were thin wrappers over the str methods of the same semantics. Call sites now use contains()/starts_with()/ends_with() directly. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe-symfony-console/src/helper/table.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/shirabe-symfony-console/src/helper/table.rs') diff --git a/crates/shirabe-symfony-console/src/helper/table.rs b/crates/shirabe-symfony-console/src/helper/table.rs index 177e23c0..06743dbf 100644 --- a/crates/shirabe-symfony-console/src/helper/table.rs +++ b/crates/shirabe-symfony-console/src/helper/table.rs @@ -745,7 +745,7 @@ impl Table { if shirabe_php_shim::strstr(&cell_str, "\n").is_none() { continue; } - let eol = if shirabe_php_shim::str_contains(&cell_str, "\r\n") { + let eol = if cell_str.contains("\r\n") { "\r\n" } else { "\n" @@ -846,7 +846,7 @@ impl Table { let cell_str = cell.to_php_string(); let mut lines = vec![cell.clone()]; if shirabe_php_shim::strstr(&cell_str, "\n").is_some() { - let eol = if shirabe_php_shim::str_contains(&cell_str, "\r\n") { + let eol = if cell_str.contains("\r\n") { "\r\n" } else { "\n" -- cgit v1.3.1-4-g156e