Passed
Pull Request — master (#12)
by Kris
05:47
created
demo/index.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     $i = 0;
128 128
     foreach (getIndex() as $key => $value){
129 129
        
130
-       if (file_exists( __DIR__ . '/'. $value[2])) {
130
+        if (file_exists( __DIR__ . '/'. $value[2])) {
131 131
             Console::log(' '.
132 132
                 Console::tableRow([
133 133
                     $key        => 10, 
@@ -136,9 +136,9 @@  discard block
 block discarded – undo
136 136
                 ], 
137 137
                 'white', 'black'
138 138
 
139
-                 //   ($i % 2 == 1) ? 'white' :  'white',  
140
-                 //   ($i % 2 == 1) ? 'cyan' :   'lightgrey',
141
-                 //   ($i % 2 == 1) ? ''      :  'bold'
139
+                    //   ($i % 2 == 1) ? 'white' :  'white',  
140
+                    //   ($i % 2 == 1) ? 'cyan' :   'lightgrey',
141
+                    //   ($i % 2 == 1) ? ''      :  'bold'
142 142
                 )
143 143
             );
144 144
             $i++;
@@ -183,23 +183,23 @@  discard block
 block discarded – undo
183 183
                 printSampleHeader($selectedIndex, $title);
184 184
 
185 185
                 Console::log($base . Console::text('Start running [', 'white') . 
186
-                                     Console::text( $title, 'lightcyan') . 
187
-                                     Console::text('] in file [', 'white')  .
188
-                                     Console::text( $fileName, 'lightcyan') . 
189
-                                     Console::text(']', 'white'));
186
+                                        Console::text( $title, 'lightcyan') . 
187
+                                        Console::text('] in file [', 'white')  .
188
+                                        Console::text( $fileName, 'lightcyan') . 
189
+                                        Console::text(']', 'white'));
190 190
 
191 191
                 if (file_exists($filePath)){
192 192
                     Console::log();
193 193
                     include $filePath;
194 194
                     Console::log();
195 195
                     Console::log($base . Console::text('End running [', 'white')  .
196
-                                     Console::text( $title, 'lightcyan') . 
197
-                                     Console::text(']', 'white')); 
196
+                                        Console::text( $title, 'lightcyan') . 
197
+                                        Console::text(']', 'white')); 
198 198
                     $response = Console::ask($base . Console::text('Do you want to see the code that has been executed? (type y/Y to see the code) > ', 'white'));
199
-                     if (strtoupper($response) === 'Y') {
199
+                        if (strtoupper($response) === 'Y') {
200 200
                         Console::log($base . Console::text('The code in file [', 'white')  .
201
-                                     Console::text( $fileName, 'lightcyan') . 
202
-                                     Console::text('] is:', 'white')); 
201
+                                        Console::text( $fileName, 'lightcyan') . 
202
+                                        Console::text('] is:', 'white')); 
203 203
                         Console::log();
204 204
 
205 205
                         $lines = file($filePath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
@@ -215,10 +215,10 @@  discard block
 block discarded – undo
215 215
                         }
216 216
                         Console::log();
217 217
                     }
218
-               } else {
218
+                } else {
219 219
                     Console::log($base . Console::text('Error' , 'red'));
220 220
                     Console::log($base . Console::text(' => File missing [' . $fileName . ']' , 'red'));
221
-               }
221
+                }
222 222
 
223 223
             } else {
224 224
                 Console::log($base . Console::text('Error:', 'red'));
Please login to merge, or discard this patch.