Skip to content

Commit ca2cf5b

Browse files
committed
refactor: use self instead of parent class
1 parent 7343528 commit ca2cf5b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Commands/ElasticsearchCreateIndex.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ public function handle(Client $client): int
3232

3333
$this->info(sprintf('Index "%s" created', $index));
3434

35-
return Command::SUCCESS;
35+
return self::SUCCESS;
3636
}
3737
}

src/Commands/ElasticsearchDeleteIndex.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public function handle(Client $client): int
3030

3131
$this->info(sprintf('Index "%s" deleted', $index));
3232

33-
return Command::SUCCESS;
33+
return self::SUCCESS;
3434
}
3535
}

src/Commands/ElasticsearchRefreshIndex.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ public function handle(): int
2929

3030
$this->info(sprintf('Dispatched %d index jobs', $models->count()));
3131

32-
return Command::SUCCESS;
32+
return self::SUCCESS;
3333
}
3434
}

0 commit comments

Comments
 (0)