@@ -823,15 +823,15 @@ private function loadTables(bool $useCache): ReflectedDatabase
823
823
return $ tables ;
824
824
}
825
825
826
- private function loadTable (String $ name , bool $ useCache ): ReflectedTable
826
+ private function loadTable (String $ tableName , bool $ useCache ): ReflectedTable
827
827
{
828
- $ data = $ useCache ? $ this ->cache ->get ("ReflectedTable( $ name ) " ) : '' ;
828
+ $ data = $ useCache ? $ this ->cache ->get ("ReflectedTable( $ tableName ) " ) : '' ;
829
829
if ($ data != '' ) {
830
830
$ table = ReflectedTable::fromJson (json_decode (gzuncompress ($ data )));
831
831
} else {
832
- $ table = ReflectedTable::fromReflection ($ this ->db ->reflection (), $ name );
832
+ $ table = ReflectedTable::fromReflection ($ this ->db ->reflection (), $ tableName );
833
833
$ data = gzcompress (json_encode ($ table , JSON_UNESCAPED_UNICODE ));
834
- $ this ->cache ->set ("ReflectedTable( $ name ) " , $ data , $ this ->ttl );
834
+ $ this ->cache ->set ("ReflectedTable( $ tableName ) " , $ data , $ this ->ttl );
835
835
}
836
836
return $ table ;
837
837
}
@@ -846,17 +846,17 @@ public function refreshTable(String $tableName)
846
846
$ this ->tables [$ tableName ] = $ this ->loadTable ($ tableName , false );
847
847
}
848
848
849
- public function hasTable (String $ table ): bool
849
+ public function hasTable (String $ tableName ): bool
850
850
{
851
- return $ this ->database ->exists ($ table );
851
+ return $ this ->database ->exists ($ tableName );
852
852
}
853
853
854
- public function getTable (String $ table ): ReflectedTable
854
+ public function getTable (String $ tableName ): ReflectedTable
855
855
{
856
- if (!isset ($ this ->tables [$ table ])) {
857
- $ this ->tables [$ table ] = $ this ->loadTable ($ table , true );
856
+ if (!isset ($ this ->tables [$ tableName ])) {
857
+ $ this ->tables [$ tableName ] = $ this ->loadTable ($ tableName , true );
858
858
}
859
- return $ this ->tables [$ table ];
859
+ return $ this ->tables [$ tableName ];
860
860
}
861
861
862
862
public function getTableNames (): array
0 commit comments