@@ -31,7 +31,7 @@ function rq(
3131 foreach ($ params as $ key => $ value ) {
3232 $ query = \str_replace (
3333 \sprintf (':%s ' , $ key ),
34- \sprintf ('"%s" ' , \str_replace ('" ' , '\\" ' , (string ) $ value )),
34+ \sprintf ('\' %s \'' , \str_replace ('\'' , '\\\' ' , (string ) $ value )),
3535 $ query
3636 );
3737 }
@@ -47,9 +47,7 @@ final class R
4747 {
4848 public static array $ db = [];
4949
50- private function __construct ()
51- {
52- }
50+ private function __construct () {}
5351
5452 public static function debug (
5553 mixed $ var ,
@@ -249,9 +247,7 @@ private static function fillReturnWithClassAttributes(object $var, \stdClass $re
249247 return $ return ;
250248 }
251249
252- /**
253- * Gets the real class name of a class name that could be a proxy.
254- */
250+ /** Gets the real class name of a class name that could be a proxy. */
255251 private static function getRealClass (string $ class ): string
256252 {
257253 if (! \class_exists (Proxy::class) || false === ($ pos = \strrpos ($ class , '\\' . Proxy::MARKER . '\\' ))) {
@@ -261,9 +257,7 @@ private static function getRealClass(string $class): string
261257 return \substr ($ class , (int ) ($ pos + Proxy::MARKER_LENGTH + 2 ));
262258 }
263259
264- /**
265- * Gets the real class name of an object (even if its a proxy).
266- */
260+ /** Gets the real class name of an object (even if its a proxy). */
267261 private static function getClass (object $ object ): string
268262 {
269263 return self ::getRealClass ($ object ::class);
0 commit comments