@@ -86,18 +86,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
86
86
87
87
$ randomIssue = $ searchIssueModel ->getItems ()[$ randomIssueIndex ];
88
88
89
- $ io ->section ($ randomIssue ->getTitle ());
90
-
91
- $ io ->newLine (1 );
92
-
93
89
$ randomIssueTitle = $ randomIssue ->getTitle ();
94
90
95
91
// cut off title at 90 characters
96
- if (strlen ($ randomIssue ->getTitle ()) > 90 ) {
97
- $ randomIssueTitle = substr ($ randomIssue ->getTitle (), 0 , 90 ) . '... ' ;
92
+ if (strlen ($ randomIssue ->getTitle ()) > 70 ) {
93
+ $ randomIssueTitle = substr ($ randomIssue ->getTitle (), 0 , 70 ) . '... ' ;
98
94
}
99
95
100
-
101
96
$ randomIssueBody = $ randomIssue ->getBody ();
102
97
103
98
// cut off body at 300 characters
@@ -109,7 +104,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
109
104
$ io ->writeln ([
110
105
"" ,
111
106
"<comment> Details:</> " ,
112
- sprintf ("<comment> %s</> " , str_repeat ("- " , 60 ))
107
+ sprintf ("<comment> %s</> " , str_repeat ("- " , 70 ))
113
108
]);
114
109
115
110
// create a table for displaying the title and link
@@ -123,8 +118,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
123
118
['Date Created: ' , $ randomIssue ->getCreatedDate ()],
124
119
['Status: ' , $ randomIssue ->getState ()],
125
120
]);
126
-
127
- $ table ->setStyle ('box ' );
121
+ $ table ->setStyle ('borderless ' );
128
122
// render table
129
123
$ table ->render ();
130
124
@@ -134,7 +128,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
134
128
$ io ->writeln ([
135
129
"" ,
136
130
"<comment> Issue:</> " ,
137
- sprintf ("<comment> %s</> " , str_repeat ("- " , 60 ))
131
+ sprintf ("<comment> %s</> " , str_repeat ("- " , 70 ))
138
132
]);
139
133
// wrap lines that are longer than 70 characters
140
134
$ randomIssueBodyLines = wordwrap ($ randomIssueBody , 70 , "\n" , true );
@@ -146,8 +140,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
146
140
147
141
$ io ->newLine (1 );
148
142
149
-
150
-
151
143
return 0 ;
152
144
}
153
145
}
0 commit comments