@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function isEnabled() |
| 36 | 36 | { |
| 37 | - $file = APPPATH . 'libraries/' . $this->library . '.php'; |
|
| 37 | + $file = APPPATH.'libraries/'.$this->library.'.php'; |
|
| 38 | 38 | |
| 39 | 39 | return file_exists($file); |
| 40 | 40 | } |
@@ -47,8 +47,8 @@ discard block |
||
| 47 | 47 | protected function configure() |
| 48 | 48 | { |
| 49 | 49 | $this |
| 50 | - ->setName('remove:' . $this->library) |
|
| 51 | - ->setDescription('Removes ' . ucfirst($this->library)); |
|
| 50 | + ->setName('remove:'.$this->library) |
|
| 51 | + ->setDescription('Removes '.ucfirst($this->library)); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | /** |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | protected function execute(InputInterface $input, OutputInterface $output) |
| 62 | 62 | { |
| 63 | - $autoload = new Config('autoload', APPPATH . 'config'); |
|
| 63 | + $autoload = new Config('autoload', APPPATH.'config'); |
|
| 64 | 64 | |
| 65 | 65 | $libraries = $autoload->get('libraries', 60, 'array'); |
| 66 | 66 | |
@@ -77,10 +77,10 @@ discard block |
||
| 77 | 77 | system('composer remove doctrine/orm'); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - unlink(APPPATH . 'libraries/' . ucfirst($this->library) . '.php'); |
|
| 80 | + unlink(APPPATH.'libraries/'.ucfirst($this->library).'.php'); |
|
| 81 | 81 | |
| 82 | - $message = ucfirst($this->library) . ' is now successfully removed!'; |
|
| 82 | + $message = ucfirst($this->library).' is now successfully removed!'; |
|
| 83 | 83 | |
| 84 | - return $output->writeln('<info>' . $message . '</info>'); |
|
| 84 | + return $output->writeln('<info>'.$message.'</info>'); |
|
| 85 | 85 | } |
| 86 | 86 | } |
@@ -19,8 +19,8 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public static function hasLayout() |
| 21 | 21 | { |
| 22 | - $header = APPPATH . 'views/layout/header.php'; |
|
| 23 | - $footer = APPPATH . 'views/layout/footer.php'; |
|
| 22 | + $header = APPPATH.'views/layout/header.php'; |
|
| 23 | + $footer = APPPATH.'views/layout/footer.php'; |
|
| 24 | 24 | |
| 25 | 25 | return file_exists($header) && file_exists($footer); |
| 26 | 26 | } |
@@ -33,8 +33,8 @@ discard block |
||
| 33 | 33 | public static function ignite() |
| 34 | 34 | { |
| 35 | 35 | $autoloadPath = 'realpath(\'vendor\') . \'/autoload.php\''; |
| 36 | - $configPath = APPPATH . 'config'; |
|
| 37 | - $templatePath = __DIR__ . '/../Templates'; |
|
| 36 | + $configPath = APPPATH.'config'; |
|
| 37 | + $templatePath = __DIR__.'/../Templates'; |
|
| 38 | 38 | |
| 39 | 39 | // Gets data from application/config/config.php |
| 40 | 40 | $config = new Config('config', $configPath); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | // Gets the currently included helpers |
| 60 | - $defaultHelpers = [ 'form', 'url' ]; |
|
| 60 | + $defaultHelpers = ['form', 'url']; |
|
| 61 | 61 | $helpers = $autoload->get('helper', 91, 'array'); |
| 62 | 62 | |
| 63 | 63 | foreach ($defaultHelpers as $helper) { |
@@ -77,14 +77,14 @@ discard block |
||
| 77 | 77 | 'name' => 'Htaccess' |
| 78 | 78 | ], |
| 79 | 79 | [ |
| 80 | - 'file' => APPPATH . 'config/pagination.php', |
|
| 80 | + 'file' => APPPATH.'config/pagination.php', |
|
| 81 | 81 | 'name' => 'Pagination' |
| 82 | 82 | ] |
| 83 | 83 | ]; |
| 84 | 84 | |
| 85 | 85 | foreach ($templates as $template) { |
| 86 | 86 | $file = new File($template['file']); |
| 87 | - $path = $templatePath . '/' . $template['name'] . '.tpl'; |
|
| 87 | + $path = $templatePath.'/'.$template['name'].'.tpl'; |
|
| 88 | 88 | |
| 89 | 89 | if ($template['file'] == '.htaccess') { |
| 90 | 90 | $file->chmod(0777); |
@@ -102,8 +102,8 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | public static function isCommandEnabled() |
| 104 | 104 | { |
| 105 | - $doctrine = APPPATH . 'libraries/Doctrine.php'; |
|
| 106 | - $wildfire = APPPATH . 'libraries/Wildfire.php'; |
|
| 105 | + $doctrine = APPPATH.'libraries/Doctrine.php'; |
|
| 106 | + $wildfire = APPPATH.'libraries/Wildfire.php'; |
|
| 107 | 107 | |
| 108 | 108 | return file_exists($doctrine) || file_exists($wildfire); |
| 109 | 109 | } |