@@ -31,7 +31,7 @@ function rq(
31
31
foreach ($ params as $ key => $ value ) {
32
32
$ query = \str_replace (
33
33
\sprintf (':%s ' , $ key ),
34
- \sprintf ('"%s" ' , \str_replace ('" ' , '\\" ' , (string ) $ value )),
34
+ \sprintf ('\' %s \'' , \str_replace ('\'' , '\\\' ' , (string ) $ value )),
35
35
$ query
36
36
);
37
37
}
@@ -47,9 +47,7 @@ final class R
47
47
{
48
48
public static array $ db = [];
49
49
50
- private function __construct ()
51
- {
52
- }
50
+ private function __construct () {}
53
51
54
52
public static function debug (
55
53
mixed $ var ,
@@ -249,9 +247,7 @@ private static function fillReturnWithClassAttributes(object $var, \stdClass $re
249
247
return $ return ;
250
248
}
251
249
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. */
255
251
private static function getRealClass (string $ class ): string
256
252
{
257
253
if (! \class_exists (Proxy::class) || false === ($ pos = \strrpos ($ class , '\\' . Proxy::MARKER . '\\' ))) {
@@ -261,9 +257,7 @@ private static function getRealClass(string $class): string
261
257
return \substr ($ class , (int ) ($ pos + Proxy::MARKER_LENGTH + 2 ));
262
258
}
263
259
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). */
267
261
private static function getClass (object $ object ): string
268
262
{
269
263
return self ::getRealClass ($ object ::class);
0 commit comments