@@ -26,7 +26,6 @@ class WorktreeInventoryRepository {
2626 */
2727 public static function install_schema (): void {
2828 global $ wpdb ;
29- /** @var \wpdb $wpdb */
3029
3130 if ( ! isset ($ wpdb ) ) {
3231 return ;
@@ -91,7 +90,6 @@ public static function install_schema(): void {
9190 */
9291 public static function table_name (): string {
9392 global $ wpdb ;
94- /** @var \wpdb $wpdb */
9593 $ prefix = isset ($ wpdb ->prefix ) ? (string ) $ wpdb ->prefix : '' ;
9694 return $ prefix . self ::TABLE ;
9795 }
@@ -104,7 +102,6 @@ public static function table_name(): string {
104102 */
105103 public function upsert ( array $ row ): bool {
106104 global $ wpdb ;
107- /** @var \wpdb $wpdb */
108105
109106 if ( ! isset ($ wpdb ) ) {
110107 return false ;
@@ -128,7 +125,6 @@ public function upsert( array $row ): bool {
128125 */
129126 public function delete ( string $ handle ): bool {
130127 global $ wpdb ;
131- /** @var \wpdb $wpdb */
132128
133129 $ handle = trim ($ handle );
134130 if ( '' === $ handle || ! isset ($ wpdb ) || ! method_exists ($ wpdb , 'delete ' ) ) {
@@ -146,7 +142,6 @@ public function delete( string $handle ): bool {
146142 */
147143 public function get ( string $ handle ): ?array {
148144 global $ wpdb ;
149- /** @var \wpdb $wpdb */
150145
151146 $ handle = trim ($ handle );
152147 if ( '' === $ handle || ! isset ($ wpdb ) ) {
@@ -176,7 +171,6 @@ public function get( string $handle ): ?array {
176171 */
177172 public function mark_missing ( string $ handle ): bool {
178173 global $ wpdb ;
179- /** @var \wpdb $wpdb */
180174
181175 $ handle = trim ($ handle );
182176 if ( '' === $ handle || ! isset ($ wpdb ) || ! method_exists ($ wpdb , 'update ' ) ) {
@@ -302,7 +296,6 @@ public function pruneMissing( array $opts = array() ): array {
302296 */
303297 private function missing_path_rows (): array {
304298 global $ wpdb ;
305- /** @var \wpdb $wpdb */
306299
307300 if ( ! isset ($ wpdb ) || ! method_exists ($ wpdb , 'get_results ' ) ) {
308301 return array ();
@@ -325,7 +318,6 @@ private function missing_path_rows(): array {
325318 */
326319 public function list ( ?string $ repo = null ): array {
327320 global $ wpdb ;
328- /** @var \wpdb $wpdb */
329321
330322 if ( ! isset ($ wpdb ) || ! method_exists ($ wpdb , 'get_results ' ) ) {
331323 return array ();
0 commit comments