55 * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
66 * SPDX-License-Identifier: AGPL-3.0-only
77 */
8+
89namespace OC \Core \Command ;
910
1011use OC \Core \Command \User \ListCommand ;
@@ -25,79 +26,82 @@ class Base extends Command implements CompletionAwareInterface {
2526
2627 protected string $ defaultOutputFormat = self ::OUTPUT_FORMAT_PLAIN ;
2728
28- protected function configure ()
29- {
30- }
29+ #[\Override]
30+ protected function configure ()
31+ {
32+ }
3133
3234 protected function writeArrayInOutputFormat (InputInterface $ input , OutputInterface $ output , iterable $ items , string $ prefix = ' - ' ): void
33- {
34- }
35+ {
36+ }
3537
3638 protected function writeTableInOutputFormat (InputInterface $ input , OutputInterface $ output , array $ items ): void
37- {
38- }
39+ {
40+ }
3941
4042 protected function writeStreamingTableInOutputFormat (InputInterface $ input , OutputInterface $ output , \Iterator $ items , int $ tableGroupSize ): void
41- {
42- }
43+ {
44+ }
4345
4446 protected function writeStreamingJsonArray (InputInterface $ input , OutputInterface $ output , \Iterator $ items ): void
45- {
46- }
47+ {
48+ }
4749
4850 public function chunkIterator (\Iterator $ iterator , int $ count ): \Iterator
49- {
50- }
51-
51+ {
52+ }
5253
5354 /**
5455 * @param mixed $item
5556 */
5657 protected function writeMixedInOutputFormat (InputInterface $ input , OutputInterface $ output , $ item )
57- {
58- }
58+ {
59+ }
5960
6061 protected function valueToString ($ value , bool $ returnNull = true ): ?string
61- {
62- }
62+ {
63+ }
6364
6465 /**
6566 * Throw InterruptedException when interrupted by user
6667 *
6768 * @throws InterruptedException
6869 */
6970 protected function abortIfInterrupted ()
70- {
71- }
71+ {
72+ }
7273
7374 /**
7475 * Changes the status of the command to "interrupted" if ctrl-c has been pressed
7576 *
7677 * Gives a chance to the command to properly terminate what it's doing
7778 */
7879 public function cancelOperation (): void
79- {
80- }
80+ {
81+ }
8182
82- public function run (InputInterface $ input , OutputInterface $ output ): int
83- {
84- }
83+ #[\Override]
84+ public function run (InputInterface $ input , OutputInterface $ output ): int
85+ {
86+ }
8587
8688 /**
8789 * @param string $optionName
8890 * @param CompletionContext $context
8991 * @return string[]
9092 */
91- public function completeOptionValues ($ optionName , CompletionContext $ context )
92- {
93- }
93+ #[\Override]
94+ public function completeOptionValues ($ optionName , CompletionContext $ context )
95+ {
96+ }
9497
9598 /**
9699 * @param string $argumentName
97100 * @param CompletionContext $context
98101 * @return string[]
99102 */
100- public function completeArgumentValues ($ argumentName , CompletionContext $ context )
101- {
102- }
103+ #[\Override]
104+ public function completeArgumentValues ($ argumentName , CompletionContext $ context )
105+ {
106+ }
103107}
0 commit comments