Passed
Pull Request — master (#18)
by Kris
07:04
created
demo/demo.progress.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 Console::log("   - you may need to use " . Console::text("php str_pad()", 'lightblue', 'underlined') . " method to be sure all previous text is overwritten.");
12 12
 Console::log("   - You can customize colors (foreground and background) and some styles in same way than ");
13 13
 Console::log('     with ' . Console::text("Console::text()", 'lightblue', 'underlined') . 
14
-                 ' and ' .  Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.');
14
+                    ' and ' .  Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.');
15 15
 Console::log();
16 16
 Console::log(' '. Console::text('Sample code:', 'underlined', 'bold'));
17 17
 Console::log();
Please login to merge, or discard this patch.
demo/demo.progress3.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 Console::log("   - " . Console::text('No need', 'underlined', 'bold') ." to use " . Console::text("php str_pad()", 'lightblue', 'underlined') . " method like with " .Console::text("Console::relog()", 'lightblue', 'underlined') );
13 13
 Console::log("   - You can customize colors (foreground and background) and some styles in same way than ");
14 14
 Console::log('   ' .Console::text("Console::text()", 'lightblue', 'underlined') . 
15
-                 ' and ' .  Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.');
15
+                    ' and ' .  Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.');
16 16
 Console::log();
17 17
 Console::log(' '. Console::text('Basic usage:', 'underlined', 'bold'));
18 18
 Console::log();
Please login to merge, or discard this patch.
demo/demo.progress2.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 Console::log("   - " . Console::text('No need', 'underlined', 'bold') ." to use " . Console::text("php str_pad()", 'lightblue', 'underlined') . " method like with " .Console::text("Console::relog()", 'lightblue', 'underlined') );
12 12
 Console::log("   - You can customize colors (foreground and background) and some styles in same way than ");
13 13
 Console::log('   ' .Console::text("Console::text()", 'lightblue', 'underlined') . 
14
-                 ' and ' .  Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.');
14
+                    ' and ' .  Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.');
15 15
 Console::log();
16 16
 Console::log(' '. Console::text('Basic usage:', 'underlined', 'bold'));
17 17
 Console::log();
Please login to merge, or discard this patch.
demo/index.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -27,19 +27,19 @@  discard block
 block discarded – undo
27 27
 }
28 28
 
29 29
 function shutdown(){
30
-   //     echo "\033c";                                        // Clear terminal
31
-   //     echo PHP_EOL;                                        // New line
32
-   Console::clear();
33
-   Console::clear();
34
-   Console::clear();
35
-   Console::clear();
36
-   Console::clear();
37
-   Console::log('SIGINT signal detected, terminate script...');
38
-   sleep(1);
30
+    //     echo "\033c";                                        // Clear terminal
31
+    //     echo PHP_EOL;                                        // New line
32
+    Console::clear();
33
+    Console::clear();
34
+    Console::clear();
35
+    Console::clear();
36
+    Console::clear();
37
+    Console::log('SIGINT signal detected, terminate script...');
38
+    sleep(1);
39 39
    
40
-   // ..
41
-   // Console::restoreWindow();
42
-   exit(0);
40
+    // ..
41
+    // Console::restoreWindow();
42
+    exit(0);
43 43
 }  
44 44
 
45 45
 function printLoader($introDelay = 75000, $printAll = true)
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
     Console::log('  '.Console::text("-----------------------------------------------------------------", "green"));
59 59
     Console::log('  '.Console::text("kristuff/mishell: A mini PHP library to build CLI app and reports", "green"));
60 60
     Console::log('  '.Console::text('Made with ', 'green') . Console::text('♥', 'red').
61
-                      Console::text(' ', 'green').
62
-                      Console::text(" | © 2017-2024 kri157uff", "green"));
61
+                        Console::text(' ', 'green').
62
+                        Console::text(" | © 2017-2024 kri157uff", "green"));
63 63
     Console::log('  '.Console::text("-----------------------------------------------------------------", "green"));
64 64
     Console::log();
65 65
     usleep($introDelay  * random_int(7, 11)); 
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
         $msg3 = Console::text('      [*]', $i==100 ? $hareColor : 'blue').Console::text(' 
Please login to merge, or discard this patch.