@@ -7,13 +7,13 @@ $lineSize = 70;
7
7
$ symfonyRequirements = new SymfonyRequirements ();
8
8
$ iniPath = $ symfonyRequirements ->getPhpIniConfigPath ();
9
9
10
- echo_title ('Symfony2 Requirements Checker ' );
10
+ echo_title ('Symfony Requirements Checker ' );
11
11
12
12
echo '> PHP is using the following php.ini file: ' .PHP_EOL ;
13
13
if ($ iniPath ) {
14
14
echo_style ('green ' , '' .$ iniPath );
15
15
} else {
16
- echo_style ('warning ' , ' WARNING: No configuration file (php.ini) used by PHP! ' );
16
+ echo_style ('yellow ' , ' WARNING: No configuration file (php.ini) used by PHP! ' );
17
17
}
18
18
19
19
echo PHP_EOL .PHP_EOL ;
@@ -22,7 +22,6 @@ echo '> Checking Symfony requirements:'.PHP_EOL.' ';
22
22
23
23
$ messages = array ();
24
24
foreach ($ symfonyRequirements ->getRequirements () as $ req ) {
25
- /** @var $req Requirement */
26
25
if ($ helpText = get_error_message ($ req , $ lineSize )) {
27
26
echo_style ('red ' , 'E ' );
28
27
$ messages ['error ' ][] = $ helpText ;
@@ -43,9 +42,9 @@ foreach ($symfonyRequirements->getRecommendations() as $req) {
43
42
}
44
43
45
44
if ($ checkPassed ) {
46
- echo_block ('success ' , 'OK ' , 'Your system is ready to run Symfony2 projects ' );
45
+ echo_block ('success ' , 'OK ' , 'Your system is ready to run Symfony projects ' );
47
46
} else {
48
- echo_block ('error ' , 'ERROR ' , 'Your system is not ready to run Symfony2 projects ' );
47
+ echo_block ('error ' , 'ERROR ' , 'Your system is not ready to run Symfony projects ' );
49
48
50
49
echo_title ('Fix the following mandatory requirements ' , 'red ' );
51
50
@@ -121,10 +120,14 @@ function echo_block($style, $title, $message)
121
120
122
121
echo PHP_EOL .PHP_EOL ;
123
122
124
- echo_style ($ style , str_repeat ('' , $ width ).PHP_EOL );
125
- echo_style ($ style , str_pad (' [ ' .$ title .'] ' , $ width , '' , STR_PAD_RIGHT ).PHP_EOL );
126
- echo_style ($ style , str_pad ($ message , $ width , '' , STR_PAD_RIGHT ).PHP_EOL );
127
- echo_style ($ style , str_repeat ('' , $ width ).PHP_EOL );
123
+ echo_style ($ style , str_repeat ('' , $ width ));
124
+ echo PHP_EOL ;
125
+ echo_style ($ style , str_pad (' [ ' .$ title .'] ' , $ width , '' , STR_PAD_RIGHT ));
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
130
133
function has_color_support ()
0 commit comments