aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/symfony_requirements
diff options
context:
space:
mode:
authorPaulino Michelazzo <paulino@michelazzo.com.br>2016-10-18 22:48:23 +0200
committerPaulino Michelazzo <paulino@michelazzo.com.br>2016-10-18 22:48:23 +0200
commit99731f0bb1f6fd2815eeb9af504ce86df927657b (patch)
treeb080efc608d2bbd52b77a4a0067402007f50c5a8 /bin/symfony_requirements
parent3a3c6b866b52721431bed22426d9abfcd0d2dfe0 (diff)
parent7180aaed45dce62e40620a9e4b202526ebd6a3bb (diff)
downloadwallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.tar.gz
wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.tar.zst
wallabag-99731f0bb1f6fd2815eeb9af504ce86df927657b.zip
Merge remote-tracking branch 'wallabag/master'
Diffstat (limited to 'bin/symfony_requirements')
-rwxr-xr-xbin/symfony_requirements13
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/symfony_requirements b/bin/symfony_requirements
index 8825a964..a7bf65a1 100755
--- a/bin/symfony_requirements
+++ b/bin/symfony_requirements
@@ -22,7 +22,6 @@ echo '> Checking Symfony requirements:'.PHP_EOL.' ';
22 22
23$messages = array(); 23$messages = array();
24foreach ($symfonyRequirements->getRequirements() as $req) { 24foreach ($symfonyRequirements->getRequirements() as $req) {
25 /** @var $req Requirement */
26 if ($helpText = get_error_message($req, $lineSize)) { 25 if ($helpText = get_error_message($req, $lineSize)) {
27 echo_style('red', 'E'); 26 echo_style('red', 'E');
28 $messages['error'][] = $helpText; 27 $messages['error'][] = $helpText;
@@ -121,10 +120,14 @@ function echo_block($style, $title, $message)
121 120
122 echo PHP_EOL.PHP_EOL; 121 echo PHP_EOL.PHP_EOL;
123 122
124 echo_style($style, str_repeat(' ', $width).PHP_EOL); 123 echo_style($style, str_repeat(' ', $width));
125 echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT).PHP_EOL); 124 echo PHP_EOL;
126 echo_style($style, str_pad($message, $width, ' ', STR_PAD_RIGHT).PHP_EOL); 125 echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT));
127 echo_style($style, str_repeat(' ', $width).PHP_EOL); 126 echo PHP_EOL;
127 echo_style($style, $message);
128 echo PHP_EOL;
129 echo_style($style, str_repeat(' ', $width));
130 echo PHP_EOL;
128} 131}
129 132
130function has_color_support() 133function has_color_support()