@@ -69,25 +69,24 @@ public function select(string $columns = '*'): static
6969 /**
7070 * Adds a basic filter to the query.
7171 *
72- * @param string $column The name of the database column.
73- * @param mixed $value The value to filter by.
74- * @param string $operator The operator to use (e.g., 'eq', 'gt', 'lt'). Defaults to 'eq'.
75- *
72+ * @param string $column The name of the database column.
73+ * @param mixed $value The value to filter by.
74+ * @param string $operator The operator to use (e.g., 'eq', 'gt', 'lt'). Defaults to 'eq'.
7675 * @return static Returns the current instance for method chaining.
7776 */
7877 public function where (
7978 string $ column ,
8079 mixed $ value ,
8180 string $ operator = 'eq '
8281 ): static {
83- if (is_array ($ value )) {
84- $ mapped = array_map (function (mixed $ item ): string {
85- return is_scalar ($ item ) || $ item instanceof \Stringable ? (string )$ item : '' ;
82+ if (is_array ($ value )) {
83+ $ mapped = array_map (function (mixed $ item ): string {
84+ return is_scalar ($ item ) || $ item instanceof \Stringable ? (string ) $ item : '' ;
8685 }, $ value );
87- $ value = '( ' . implode (', ' , $ mapped ) . ') ' ;
88- } elseif (is_bool ($ value )){
86+ $ value = '( ' . implode (', ' , $ mapped ). ') ' ;
87+ } elseif (is_bool ($ value )) {
8988 $ value = $ value ? 'true ' : 'false ' ;
90- } elseif (is_null ($ value )){
89+ } elseif (is_null ($ value )) {
9190 $ value = 'null ' ;
9291 }
9392
0 commit comments