@@ -64,13 +64,13 @@ protected function getLimitClause() : string
64
64
65
65
protected function getTableSlug () : string
66
66
{
67
- return Str:: slug ($ this ->model ->getTable ())
67
+ return ( new Str )-> slug ($ this ->model ->getTable ())
68
68
. ": " ;
69
69
}
70
70
71
71
protected function getModelSlug () : string
72
72
{
73
- return Str:: slug (get_class ($ this ->model ));
73
+ return ( new Str )-> slug (get_class ($ this ->model ));
74
74
}
75
75
76
76
protected function getOffsetClause () : string
@@ -89,7 +89,7 @@ protected function getOrderByClauses() : string
89
89
return $ orders
90
90
->reduce (function ($ carry , $ order ) {
91
91
if (($ order ["type " ] ?? "" ) === "Raw " ) {
92
- return $ carry . "_orderByRaw_ " . Str:: slug ($ order ["sql " ]);
92
+ return $ carry . "_orderByRaw_ " . ( new Str )-> slug ($ order ["sql " ]);
93
93
}
94
94
95
95
return $ carry . "_orderBy_ " . $ order ["column " ] . "_ " . $ order ["direction " ];
@@ -129,7 +129,7 @@ protected function getValuesClause(array $where = null) : string
129
129
130
130
protected function getValuesFromWhere (array $ where ) : string
131
131
{
132
- if (Arr:: get ($ where , "query " )) {
132
+ if (( new Arr )-> get ($ where , "query " )) {
133
133
$ prefix = $ this ->getCachePrefix ();
134
134
$ subKey = (new self ($ this ->eagerLoad , $ this ->model , $ where ["query " ]))
135
135
->make ();
@@ -141,16 +141,15 @@ protected function getValuesFromWhere(array $where) : string
141
141
return $ subKey ;
142
142
}
143
143
144
- if (is_array (Arr:: get ($ where , "values " ))) {
144
+ if (is_array (( new Arr )-> get ($ where , "values " ))) {
145
145
return implode ("_ " , collect ($ where ["values " ])->flatten ()->toArray ());
146
146
}
147
147
148
- return Arr:: get ($ where , "value " , "" );
148
+ return ( new Arr )-> get ($ where , "value " , "" );
149
149
}
150
150
151
151
protected function getValuesFromBindings (array $ where , string $ values ) : string
152
152
{
153
- // if (! $values && ($this->query->bindings["where"][$this->currentBinding] ?? false)) {
154
153
if ($ this ->query ->bindings ["where " ][$ this ->currentBinding ] ?? false ) {
155
154
$ values = $ this ->query ->bindings ["where " ][$ this ->currentBinding ];
156
155
$ this ->currentBinding ++;
0 commit comments