|  | @@ -56,7 +56,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 56 | 56 |       */ | 
                                                                                                            
                                                            | 57 | 57 |      protected function execute(InputInterface $input, OutputInterface $output) | 
                                                                                                            
                                                            | 58 | 58 |      { | 
                                                                                                            
                                                            | 59 |  | -        $layoutPath = APPPATH . 'views/layout'; | 
                                                                                                            
                                                            |  | 59 | +        $layoutPath = APPPATH.'views/layout'; | 
                                                                                                            
                                                            | 60 | 60 |   | 
                                                                                                            
                                                            | 61 | 61 |          $data = []; | 
                                                                                                            
                                                            | 62 | 62 |   | 
                                                                                                                                                        
                                                        |  | @@ -66,7 +66,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 66 | 66 |   | 
                                                                                                            
                                                            | 67 | 67 |          $css = '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'; | 
                                                                                                            
                                                            | 68 | 68 |   | 
                                                                                                            
                                                            | 69 |  | -        if (! is_dir('bower_components/font-awesome') && system('bower install font-awesome --save')) { | 
                                                                                                            
                                                            |  | 69 | +        if ( ! is_dir('bower_components/font-awesome') && system('bower install font-awesome --save')) { | 
                                                                                                            
                                                            | 70 | 70 |              $css = '<?php echo base_url(\'bower_components/font-awesome/css/font-awesome.min.css\'); ?>'; | 
                                                                                                            
                                                            | 71 | 71 |          } | 
                                                                                                            
                                                            | 72 | 72 |   | 
                                                                                                                                                        
                                                        |  | @@ -79,7 +79,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 79 | 79 |              $js = 'https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.js'; | 
                                                                                                            
                                                            | 80 | 80 |              $jquery = 'https://code.jquery.com/jquery-2.1.1.min.js'; | 
                                                                                                            
                                                            | 81 | 81 |   | 
                                                                                                            
                                                            | 82 |  | -            if (! is_dir('bower_components/bootstrap') && system('bower install bootstrap#3.3.7 --save')) { | 
                                                                                                            
                                                            |  | 82 | +            if ( ! is_dir('bower_components/bootstrap') && system('bower install bootstrap#3.3.7 --save')) { | 
                                                                                                            
                                                            | 83 | 83 |                  $css = '<?php echo base_url(\'bower_components/bootstrap/dist/css/bootstrap.min.css\'); ?>'; | 
                                                                                                            
                                                            | 84 | 84 |                  $js = '<?php echo base_url(\'bower_components/bootstrap/dist/js/bootstrap.min.js\'); ?>'; | 
                                                                                                            
                                                            | 85 | 85 |                  $jquery = '<?php echo base_url(\'bower_components/jquery/dist/jquery.min.js\'); ?>'; | 
                                                                                                                                                        
                                                        |  | @@ -90,17 +90,17 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 90 | 90 |              array_push($data['scripts'], $js); | 
                                                                                                            
                                                            | 91 | 91 |          } | 
                                                                                                            
                                                            | 92 | 92 |   | 
                                                                                                            
                                                            | 93 |  | -        if (! @mkdir($layoutPath, 0777, true)) { | 
                                                                                                            
                                                            |  | 93 | +        if ( ! @mkdir($layoutPath, 0777, true)) { | 
                                                                                                            
                                                            | 94 | 94 |              $message = 'The layout directory already exists!'; | 
                                                                                                            
                                                            | 95 | 95 |   | 
                                                                                                            
                                                            | 96 |  | -            return $output->writeln('<error>' . $message . '</error>'); | 
                                                                                                            
                                                            |  | 96 | +            return $output->writeln('<error>'.$message.'</error>'); | 
                                                                                                            
                                                            | 97 | 97 |          } | 
                                                                                                            
                                                            | 98 | 98 |   | 
                                                                                                            
                                                            | 99 | 99 |          $header = $this->renderer->render('Views/Layout/header.tpl', $data); | 
                                                                                                            
                                                            | 100 | 100 |          $footer = $this->renderer->render('Views/Layout/footer.tpl', $data); | 
                                                                                                            
                                                            | 101 | 101 |   | 
                                                                                                            
                                                            | 102 |  | -        $headerFile = new File($layoutPath . '/header.php'); | 
                                                                                                            
                                                            | 103 |  | -        $footerFile = new File($layoutPath . '/footer.php'); | 
                                                                                                            
                                                            |  | 102 | +        $headerFile = new File($layoutPath.'/header.php'); | 
                                                                                                            
                                                            |  | 103 | +        $footerFile = new File($layoutPath.'/footer.php'); | 
                                                                                                            
                                                            | 104 | 104 |   | 
                                                                                                            
                                                            | 105 | 105 |          $headerFile->putContents($header); | 
                                                                                                            
                                                            | 106 | 106 |          $footerFile->putContents($footer); | 
                                                                                                                                                        
                                                        |  | @@ -110,6 +110,6 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 110 | 110 |   | 
                                                                                                            
                                                            | 111 | 111 |          $message = 'The layout folder has been created successfully!'; | 
                                                                                                            
                                                            | 112 | 112 |   | 
                                                                                                            
                                                            | 113 |  | -        return $output->writeln('<info>' . $message . '</info>'); | 
                                                                                                            
                                                            |  | 113 | +        return $output->writeln('<info>'.$message.'</info>'); | 
                                                                                                            
                                                            | 114 | 114 |      } | 
                                                                                                            
                                                            | 115 | 115 |  } |