Completed
Push — feature/test-commands ( 109eae...0365eb )
by Oguzhan
04:24
created
src/Command/SearchSpotifyArtistCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     protected function execute(InputInterface $input, OutputInterface $output)
41 41
     {
42 42
         $artist = $input->getArgument('query');
43
-        if(!$artist) {
43
+        if (!$artist) {
44 44
             throw new \InvalidArgumentException('Artist missing');
45 45
         }
46 46
 
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
 
49 49
         $table = new Table($output);
50 50
         $table
51
-            ->setHeaders(['ID','Artist']);
51
+            ->setHeaders(['ID', 'Artist']);
52 52
 
53
-        if(!$result) {
53
+        if (!$result) {
54 54
             $output->writeln('No results');
55 55
         } else {
56 56
             /** @var Artist $artist */
57
-            foreach($result as $artist) {
57
+            foreach ($result as $artist) {
58 58
                 $table
59 59
                     ->addRow([
60 60
                         $artist->getId(),
Please login to merge, or discard this patch.
src/Command/SearchSpotifyTrackCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     protected function execute(InputInterface $input, OutputInterface $output)
41 41
     {
42 42
         $trackTitle = $input->getArgument('query');
43
-        if(!$trackTitle) {
43
+        if (!$trackTitle) {
44 44
             throw new \InvalidArgumentException('Track title missing');
45 45
         }
46 46
 
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
 
49 49
         $table = new Table($output);
50 50
         $table
51
-            ->setHeaders(['ID','Artist', 'Name']);
51
+            ->setHeaders(['ID', 'Artist', 'Name']);
52 52
 
53
-        if(!$result) {
53
+        if (!$result) {
54 54
             $output->writeln('No results');
55 55
         } else {
56 56
             /** @var Track $track */
57
-            foreach($result as $track) {
57
+            foreach ($result as $track) {
58 58
                 $table
59 59
                     ->addRow([
60 60
                         $track->getId(),
Please login to merge, or discard this patch.