@@ -1,4 +1,4 @@ |
||
| 1 | -<?= form_open( current_url(), ['id' => 'login_form']); ?> |
|
| 1 | +<?= form_open(current_url(), ['id' => 'login_form']); ?> |
|
| 2 | 2 | |
| 3 | 3 | <h2 class="form-signin-heading"><?= lang('auth.signin') ?></h2> |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?= form_open( current_url(), ['id' => 'join_form'] ) ?> |
|
| 1 | +<?= form_open(current_url(), ['id' => 'join_form']) ?> |
|
| 2 | 2 | |
| 3 | 3 | <h2 class="form-signin-heading"><?= lang('auth.register') ?></h2> |
| 4 | 4 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | parent::__construct(); |
| 63 | 63 | |
| 64 | 64 | // Load our tasks into the sytem. |
| 65 | - require APPPATH .'config/cron.php'; |
|
| 65 | + require APPPATH.'config/cron.php'; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | //-------------------------------------------------------------------- |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * @param string $alias |
| 74 | 74 | * @return mixed |
| 75 | 75 | */ |
| 76 | - public function run($alias=null) |
|
| 76 | + public function run($alias = null) |
|
| 77 | 77 | { |
| 78 | 78 | // Has the system been disabled? |
| 79 | 79 | if (Settings::get('is_disabled', 'cron') == 'y') |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $force_run = false; |
| 85 | 85 | |
| 86 | 86 | // Run one task or all? |
| 87 | - if (! empty($alias)) |
|
| 87 | + if ( ! empty($alias)) |
|
| 88 | 88 | { |
| 89 | 89 | $tasks = \Myth\Cron\CronManager::task($alias); |
| 90 | 90 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | return CLI::error("Unable to find the task: '{$alias}'."); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - $tasks = [ $alias => $tasks]; |
|
| 96 | + $tasks = [$alias => $tasks]; |
|
| 97 | 97 | $force_run = true; |
| 98 | 98 | } |
| 99 | 99 | else |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | // We need to be able to check against suspended tasks. |
| 110 | 110 | $suspended = Settings::get('suspended_tasks', 'cron'); |
| 111 | 111 | |
| 112 | - if (! is_array($suspended)) |
|
| 112 | + if ( ! is_array($suspended)) |
|
| 113 | 113 | { |
| 114 | 114 | $suspended = array($suspended); |
| 115 | 115 | } |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | * @param null $task |
| 155 | 155 | * @return mixed |
| 156 | 156 | */ |
| 157 | - public function show($task=null) |
|
| 157 | + public function show($task = null) |
|
| 158 | 158 | { |
| 159 | 159 | if (empty($task)) |
| 160 | 160 | { |
@@ -170,15 +170,15 @@ discard block |
||
| 170 | 170 | $tasks = \Myth\Cron\CronManager::task($task); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - if (! is_array($tasks)) |
|
| 173 | + if ( ! is_array($tasks)) |
|
| 174 | 174 | { |
| 175 | - $tasks = [ $task => [ |
|
| 175 | + $tasks = [$task => [ |
|
| 176 | 176 | 'next_run' => $tasks->nextRunDate(), |
| 177 | 177 | 'prev_run' => $tasks->previousRunDate() |
| 178 | 178 | ]]; |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | - if (! count($tasks)) |
|
| 181 | + if ( ! count($tasks)) |
|
| 182 | 182 | { |
| 183 | 183 | return CLI::found('No tasks found.', 'red'); |
| 184 | 184 | } |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * Headers |
| 194 | 194 | */ |
| 195 | 195 | echo CLI::write("Task\t\t\t\tNext Run\t\tPrevious Run"); |
| 196 | - echo CLI::write( str_repeat('-', 80) ); |
|
| 196 | + echo CLI::write(str_repeat('-', 80)); |
|
| 197 | 197 | |
| 198 | 198 | foreach ($tasks as $alias => $task) |
| 199 | 199 | { |
@@ -201,14 +201,14 @@ discard block |
||
| 201 | 201 | $color = 'yellow'; |
| 202 | 202 | $extra = ''; |
| 203 | 203 | |
| 204 | - if (in_array($alias, $suspended) ) |
|
| 204 | + if (in_array($alias, $suspended)) |
|
| 205 | 205 | { |
| 206 | 206 | $color = 'blue'; |
| 207 | 207 | $extra = "\t[Suspended]"; |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | // Alias can only be 24 chars long. |
| 211 | - $alias = strlen($alias) >= 32 ? substr($alias, 0, 28) .'... ' : $alias . str_repeat(" ", 32 - strlen($alias)); |
|
| 211 | + $alias = strlen($alias) >= 32 ? substr($alias, 0, 28).'... ' : $alias.str_repeat(" ", 32 - strlen($alias)); |
|
| 212 | 212 | |
| 213 | 213 | $next = date('D Y-m-d H:i', $task['next_run']); |
| 214 | 214 | $prev = date('D Y-m-d H:i', $task['prev_run']); |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | $suspended[] = $alias; |
| 246 | 246 | |
| 247 | - if (Settings::save('suspended_tasks', $suspended, 'cron') ) |
|
| 247 | + if (Settings::save('suspended_tasks', $suspended, 'cron')) |
|
| 248 | 248 | { |
| 249 | 249 | return CLI::write('Done'); |
| 250 | 250 | } |
@@ -273,11 +273,11 @@ discard block |
||
| 273 | 273 | // Update the existing setting. |
| 274 | 274 | $suspended = Settings::get('suspended_tasks', 'cron'); |
| 275 | 275 | |
| 276 | - if (! empty($suspended)) |
|
| 276 | + if ( ! empty($suspended)) |
|
| 277 | 277 | { |
| 278 | - unset($suspended[ array_search($alias, $suspended) ]); |
|
| 278 | + unset($suspended[array_search($alias, $suspended)]); |
|
| 279 | 279 | |
| 280 | - if (! Settings::save('suspended_tasks', $suspended, 'cron') ) |
|
| 280 | + if ( ! Settings::save('suspended_tasks', $suspended, 'cron')) |
|
| 281 | 281 | { |
| 282 | 282 | return CLI::error('Unkown problem saving the settings.'); |
| 283 | 283 | } |
@@ -294,9 +294,9 @@ discard block |
||
| 294 | 294 | */ |
| 295 | 295 | public function disable() |
| 296 | 296 | { |
| 297 | - if (! Settings::save('is_disabled', 'y', 'cron')) |
|
| 297 | + if ( ! Settings::save('is_disabled', 'y', 'cron')) |
|
| 298 | 298 | { |
| 299 | - return CLI::error('Unknown problem saving the setting. '. CLI::color('Cron jobs will still run!', 'yellow')); |
|
| 299 | + return CLI::error('Unknown problem saving the setting. '.CLI::color('Cron jobs will still run!', 'yellow')); |
|
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | CLI::write('Done'); |
@@ -310,9 +310,9 @@ discard block |
||
| 310 | 310 | */ |
| 311 | 311 | public function enable() |
| 312 | 312 | { |
| 313 | - if (! Settings::save('is_disabled', 'n', 'cron')) |
|
| 313 | + if ( ! Settings::save('is_disabled', 'n', 'cron')) |
|
| 314 | 314 | { |
| 315 | - return CLI::error('Unknown problem saving the setting. '. CLI::color('Cron jobs will NOT run!', 'yellow')); |
|
| 315 | + return CLI::error('Unknown problem saving the setting. '.CLI::color('Cron jobs will NOT run!', 'yellow')); |
|
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | CLI::write('Done'); |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | $color = 'yellow'; |
| 347 | 347 | $extra = ''; |
| 348 | 348 | |
| 349 | - if (in_array($alias, $suspended) ) |
|
| 349 | + if (in_array($alias, $suspended)) |
|
| 350 | 350 | { |
| 351 | 351 | $color = 'blue'; |
| 352 | 352 | $extra = "[Suspended]"; |
@@ -36,11 +36,11 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | |
| 38 | 38 | protected $descriptions = [ |
| 39 | - 'migrate' => ['migrate [$to]', 'Runs the migrations up or down until schema at version \$to'], |
|
| 40 | - 'quietMigrate' => ['quiteMigrate [$to]', 'Same as migrate but without any feedback.'], |
|
| 41 | - 'refresh' => ['refresh', 'Runs migrations back to version 0 (uninstall) and then back to the most recent migration.'], |
|
| 39 | + 'migrate' => ['migrate [$to]', 'Runs the migrations up or down until schema at version \$to'], |
|
| 40 | + 'quietMigrate' => ['quiteMigrate [$to]', 'Same as migrate but without any feedback.'], |
|
| 41 | + 'refresh' => ['refresh', 'Runs migrations back to version 0 (uninstall) and then back to the most recent migration.'], |
|
| 42 | 42 | 'newMigration' => ['newMigration [$name]', 'Creates a new migration file.'], |
| 43 | - 'seed' => ['seed [$name]', 'Runs the named database seeder.'] |
|
| 43 | + 'seed' => ['seed [$name]', 'Runs the named database seeder.'] |
|
| 44 | 44 | ]; |
| 45 | 45 | |
| 46 | 46 | protected $long_descriptions = [ |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * @param bool $silent If TRUE, will NOT display any prompts for verification. |
| 70 | 70 | * @return bool|void |
| 71 | 71 | */ |
| 72 | - public function migrate($type=null, $to = null, $silent = false) |
|
| 72 | + public function migrate($type = null, $to = null, $silent = false) |
|
| 73 | 73 | { |
| 74 | 74 | $this->load->library('migration'); |
| 75 | 75 | |
@@ -90,11 +90,11 @@ discard block |
||
| 90 | 90 | $groups = array_keys($groups); |
| 91 | 91 | |
| 92 | 92 | // If it's not in the groups list, then assume it's a module. |
| 93 | - if (! in_array($type, $groups)) |
|
| 93 | + if ( ! in_array($type, $groups)) |
|
| 94 | 94 | { |
| 95 | 95 | if (strpos($type, 'mod:') !== 0) |
| 96 | 96 | { |
| 97 | - $type = 'mod:'. $type; |
|
| 97 | + $type = 'mod:'.$type; |
|
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $current = $this->migration->get_version($type); |
| 112 | 112 | |
| 113 | 113 | // Already at the desired version? |
| 114 | - if ((! is_null($to) && $current == $to) OR (is_null($to) && $current == $latest)) |
|
| 114 | + if (( ! is_null($to) && $current == $to) OR (is_null($to) && $current == $latest)) |
|
| 115 | 115 | { |
| 116 | 116 | return $silent ? true : CLI::write("\tDatabase is already at the desired version ({$current})", 'yellow'); |
| 117 | 117 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | // to the latest version. |
| 123 | 123 | if (is_null($to)) { |
| 124 | 124 | // If we're in silent mode, don't prompt, just go to the latest... |
| 125 | - if (! $silent) { |
|
| 125 | + if ( ! $silent) { |
|
| 126 | 126 | $go_ahead = CLI::prompt('Migrate to the latest available version?', array('y', 'n')); |
| 127 | 127 | |
| 128 | 128 | if ($go_ahead == 'n') { |
@@ -130,17 +130,16 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - if (! $this->migration->latest($type)) { |
|
| 134 | - return CLI::error("\n\tERROR: " . $this->migration->error_string() . "\n"); |
|
| 133 | + if ( ! $this->migration->latest($type)) { |
|
| 134 | + return CLI::error("\n\tERROR: ".$this->migration->error_string()."\n"); |
|
| 135 | 135 | } |
| 136 | 136 | } else { |
| 137 | 137 | if ($this->migration->version($type, $to) === false) { |
| 138 | - return CLI::error("\n\tERROR: " . $this->migration->error_string() . "\n"); |
|
| 138 | + return CLI::error("\n\tERROR: ".$this->migration->error_string()."\n"); |
|
| 139 | 139 | } |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | - return $silent ? true : |
|
| 143 | - CLI::write("\n\tSuccessfully migrated database from version {$current} to {$target}.\n", 'green'); |
|
| 142 | + return $silent ? true : CLI::write("\n\tSuccessfully migrated database from version {$current} to {$target}.\n", 'green'); |
|
| 144 | 143 | } |
| 145 | 144 | |
| 146 | 145 | //-------------------------------------------------------------------- |
@@ -154,7 +153,7 @@ discard block |
||
| 154 | 153 | * @param null $to |
| 155 | 154 | * @return bool|void |
| 156 | 155 | */ |
| 157 | - public function quietMigrate($type='app', $to = null) |
|
| 156 | + public function quietMigrate($type = 'app', $to = null) |
|
| 158 | 157 | { |
| 159 | 158 | return $this->migrate($type, $to, true); |
| 160 | 159 | } |
@@ -168,7 +167,7 @@ discard block |
||
| 168 | 167 | * @param string $type The group or module to refresh. |
| 169 | 168 | * @return mixed |
| 170 | 169 | */ |
| 171 | - public function refresh($type=null) |
|
| 170 | + public function refresh($type = null) |
|
| 172 | 171 | { |
| 173 | 172 | $this->load->library('migration'); |
| 174 | 173 | |
@@ -183,13 +182,13 @@ discard block |
||
| 183 | 182 | } |
| 184 | 183 | |
| 185 | 184 | if ($this->migration->version($type, 0) === false) { |
| 186 | - return CLI::error("\tERROR: " . $this->migration->error_string()); |
|
| 185 | + return CLI::error("\tERROR: ".$this->migration->error_string()); |
|
| 187 | 186 | } |
| 188 | 187 | |
| 189 | 188 | CLI::write(CLI::color("\tCleared the database.", 'green')); |
| 190 | 189 | |
| 191 | 190 | if ($this->migration->latest($type) === false) { |
| 192 | - return CLI::error("\tERROR: " . $this->migration->error_string()); |
|
| 191 | + return CLI::error("\tERROR: ".$this->migration->error_string()); |
|
| 193 | 192 | } |
| 194 | 193 | |
| 195 | 194 | CLI::write("\tRe-installed the database to the latest migration.", 'green'); |
@@ -217,23 +216,23 @@ discard block |
||
| 217 | 216 | $path = $this->migration->determine_migration_path($type); |
| 218 | 217 | |
| 219 | 218 | // Does the alias path exist in our config? |
| 220 | - if (! $path) { |
|
| 219 | + if ( ! $path) { |
|
| 221 | 220 | return CLI::error("\tThe migration path for '{$type}' does not exist.'"); |
| 222 | 221 | } |
| 223 | 222 | |
| 224 | 223 | // Does the path really exist? |
| 225 | - if (! is_dir($path)) { |
|
| 224 | + if ( ! is_dir($path)) { |
|
| 226 | 225 | return CLI::error("\tThe path for '{$type}' is not a directory."); |
| 227 | 226 | } |
| 228 | 227 | |
| 229 | 228 | // Is the folder writeable? |
| 230 | - if (! is_writeable($path)) { |
|
| 229 | + if ( ! is_writeable($path)) { |
|
| 231 | 230 | return CLI::error("\tThe folder for '{$type}' migrations is not writeable."); |
| 232 | 231 | } |
| 233 | 232 | |
| 234 | 233 | $file = $this->migration->make_name($name); |
| 235 | 234 | |
| 236 | - $path = rtrim($path, '/') .'/'. $file; |
|
| 235 | + $path = rtrim($path, '/').'/'.$file; |
|
| 237 | 236 | |
| 238 | 237 | $contents = <<<EOT |
| 239 | 238 | <?php |
@@ -269,7 +268,7 @@ discard block |
||
| 269 | 268 | $this->load->helper('file'); |
| 270 | 269 | |
| 271 | 270 | if (write_file($path, $contents)) { |
| 272 | - return CLI::write("\tNew migration created: " . CLI::color($file, 'yellow'), 'green'); |
|
| 271 | + return CLI::write("\tNew migration created: ".CLI::color($file, 'yellow'), 'green'); |
|
| 273 | 272 | } |
| 274 | 273 | |
| 275 | 274 | return CLI::error("\tUnkown error trying to create migration: {$file}", 'red'); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | class Seeder { |
| 41 | 41 | |
| 42 | - public $error_string = ''; |
|
| 42 | + public $error_string = ''; |
|
| 43 | 43 | |
| 44 | 44 | protected $ci; |
| 45 | 45 | |
@@ -50,9 +50,9 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | //-------------------------------------------------------------------- |
| 52 | 52 | |
| 53 | - public function __construct () |
|
| 53 | + public function __construct() |
|
| 54 | 54 | { |
| 55 | - $this->ci =& get_instance(); |
|
| 55 | + $this->ci = & get_instance(); |
|
| 56 | 56 | |
| 57 | 57 | $this->is_cli = $this->ci->input->is_cli_request(); |
| 58 | 58 | |
@@ -65,8 +65,8 @@ discard block |
||
| 65 | 65 | $this->ci->load->dbforge(); |
| 66 | 66 | |
| 67 | 67 | // Setup some convenience vars. |
| 68 | - $this->db =& $this->ci->db; |
|
| 69 | - $this->dbforge =& $this->ci->dbforge; |
|
| 68 | + $this->db = & $this->ci->db; |
|
| 69 | + $this->dbforge = & $this->ci->dbforge; |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | //-------------------------------------------------------------------- |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * Run the database seeds. It's where the magic happens. |
| 77 | 77 | * This method MUST be overridden by child classes. |
| 78 | 78 | */ |
| 79 | - public function run () |
|
| 79 | + public function run() |
|
| 80 | 80 | { |
| 81 | 81 | |
| 82 | 82 | } |
@@ -89,23 +89,23 @@ discard block |
||
| 89 | 89 | * |
| 90 | 90 | * @param $class |
| 91 | 91 | */ |
| 92 | - public function call ($class) |
|
| 92 | + public function call($class) |
|
| 93 | 93 | { |
| 94 | 94 | if (empty($class)) |
| 95 | 95 | { |
| 96 | 96 | // Ask the user... |
| 97 | - $class = trim( CLI::prompt("Seeder name") ); |
|
| 97 | + $class = trim(CLI::prompt("Seeder name")); |
|
| 98 | 98 | |
| 99 | 99 | if (empty($class)) { |
| 100 | 100 | return CLI::error("\tNo Seeder was specified."); |
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - $path = APPPATH .'database/seeds/'. str_replace('.php', '', $class) .'.php'; |
|
| 104 | + $path = APPPATH.'database/seeds/'.str_replace('.php', '', $class).'.php'; |
|
| 105 | 105 | |
| 106 | 106 | if ( ! is_file($path)) |
| 107 | 107 | { |
| 108 | - return CLI::error("\tUnable to find seed class: ". $class); |
|
| 108 | + return CLI::error("\tUnable to find seed class: ".$class); |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | try { |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | | if realpath cannot find/read the folder. |
| 58 | 58 | */ |
| 59 | 59 | $config['docs.folders'] = [ |
| 60 | - 'application' => APPPATH .'docs', |
|
| 61 | - 'developer' => APPPATH .'../myth/_docs_src' |
|
| 60 | + 'application' => APPPATH.'docs', |
|
| 61 | + 'developer' => APPPATH.'../myth/_docs_src' |
|
| 62 | 62 | ]; |
| 63 | 63 | |
| 64 | 64 | /* |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | | If you change it, ensure that it includes the period (.). |
| 90 | 90 | */ |
| 91 | 91 | |
| 92 | -$config['docs.extension'] = '.md'; |
|
| 92 | +$config['docs.extension'] = '.md'; |
|
| 93 | 93 | |
| 94 | 94 | /* |
| 95 | 95 | * If true, the 'developer' docs will be displayed in environments other than |
@@ -75,9 +75,9 @@ discard block |
||
| 75 | 75 | $this->load->helper('form'); |
| 76 | 76 | $this->load->helper('language'); |
| 77 | 77 | |
| 78 | - $this->docbuilder = new \Myth\Docs\Builder( array('apppath' => APPPATH) ); |
|
| 78 | + $this->docbuilder = new \Myth\Docs\Builder(array('apppath' => APPPATH)); |
|
| 79 | 79 | |
| 80 | - $formatter = function ($str) { |
|
| 80 | + $formatter = function($str) { |
|
| 81 | 81 | $converter = new \League\CommonMark\CommonMarkConverter(); |
| 82 | 82 | return $converter->convertToHtml($str); |
| 83 | 83 | }; |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | { |
| 163 | 163 | // Is displaying docs permitted for this environment? |
| 164 | 164 | if (config_item('docs.permitted_environments') |
| 165 | - && !in_array(ENVIRONMENT, config_item('docs.permitted_environments')) |
|
| 165 | + && ! in_array(ENVIRONMENT, config_item('docs.permitted_environments')) |
|
| 166 | 166 | ) { |
| 167 | 167 | $this->setMessage(lang('docs_env_disabled'), 'error'); |
| 168 | 168 | redirect(); |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $this->current_group = false; |
| 178 | 178 | } // Are we allowed to show developer docs in this environment? |
| 179 | 179 | elseif ($current_group == 'developer' |
| 180 | - && !$this->showDevDocs |
|
| 180 | + && ! $this->showDevDocs |
|
| 181 | 181 | && ENVIRONMENT != 'development' |
| 182 | 182 | ) { |
| 183 | 183 | if ($this->showAppDocs) { |
@@ -216,8 +216,8 @@ discard block |
||
| 216 | 216 | |
| 217 | 217 | // If nothing left, then assign the default group and redirect to |
| 218 | 218 | // a page we can do something with... |
| 219 | - if (!count($segments)) { |
|
| 220 | - redirect('docs/' . config_item('docs.default_group')); |
|
| 219 | + if ( ! count($segments)) { |
|
| 220 | + redirect('docs/'.config_item('docs.default_group')); |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | // Do we have a group specified? Bonfire Docs requires that a group |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | $data = []; |
| 249 | 249 | |
| 250 | 250 | // Set the remaining data for the view |
| 251 | - $data['docsDir'] = 'docs/' . $this->current_group . '/'; |
|
| 251 | + $data['docsDir'] = 'docs/'.$this->current_group.'/'; |
|
| 252 | 252 | $data['docsExt'] = config_item('docs.extension'); |
| 253 | 253 | |
| 254 | 254 | $data['docMap'] = $this->docbuilder->buildDocumentMap($content); |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | */ |
| 268 | 268 | private function buildTOC() |
| 269 | 269 | { |
| 270 | - $folder = $this->doc_folders[$this->current_group] . '/'; |
|
| 270 | + $folder = $this->doc_folders[$this->current_group].'/'; |
|
| 271 | 271 | |
| 272 | 272 | $map = $this->docbuilder->buildTOC($folder); |
| 273 | 273 | |
@@ -291,11 +291,11 @@ discard block |
||
| 291 | 291 | $docs_modules = array(); |
| 292 | 292 | foreach (\Bonfire\Modules::list_modules() as $module) { |
| 293 | 293 | $ignored_folders = array(); |
| 294 | - $path = \Bonfire\Modules::path($module) . $this->docsDir; |
|
| 294 | + $path = \Bonfire\Modules::path($module).$this->docsDir; |
|
| 295 | 295 | |
| 296 | 296 | // If these are developer docs, add the folder to the path. |
| 297 | 297 | if ($this->current_group == $this->docsTypeBf) { |
| 298 | - $path .= '/' . $this->docsTypeBf; |
|
| 298 | + $path .= '/'.$this->docsTypeBf; |
|
| 299 | 299 | } // For Application docs, ignore the 'developers' folder. |
| 300 | 300 | else { |
| 301 | 301 | $ignored_folders[] = $this->docsTypeBf; |
@@ -7,12 +7,12 @@ discard block |
||
| 7 | 7 | <div class="nav-header"><?php echo $file; ?></div> |
| 8 | 8 | <ul class="nav"> |
| 9 | 9 | <?php foreach ($name as $line => $namer) : ?> |
| 10 | - <li><?php echo anchor($docsDir . str_replace($docsExt, '', $line), $namer); ?></li> |
|
| 10 | + <li><?php echo anchor($docsDir.str_replace($docsExt, '', $line), $namer); ?></li> |
|
| 11 | 11 | <?php endforeach; ?> |
| 12 | 12 | </ul> |
| 13 | 13 | </li> |
| 14 | 14 | <?php else : ?> |
| 15 | - <li><?php echo anchor($docsDir . str_replace($docsExt, '', $file), $name); ?></li> |
|
| 15 | + <li><?php echo anchor($docsDir.str_replace($docsExt, '', $file), $name); ?></li> |
|
| 16 | 16 | <?php endif ?> |
| 17 | 17 | <?php endforeach ?> |
| 18 | 18 | <?php else : ?> |
@@ -29,12 +29,12 @@ discard block |
||
| 29 | 29 | <div class='nav-header'><?php echo $module; ?></div> |
| 30 | 30 | <ul class='nav'> |
| 31 | 31 | <?php foreach ($mod_files as $fileName => $title) : ?> |
| 32 | - <li><?php echo anchor(site_url($docsDir . '/' . str_replace($docsExt, '', $fileName)), ucwords($title)); ?></li> |
|
| 32 | + <li><?php echo anchor(site_url($docsDir.'/'.str_replace($docsExt, '', $fileName)), ucwords($title)); ?></li> |
|
| 33 | 33 | <?php endforeach; ?> |
| 34 | 34 | </ul> |
| 35 | 35 | </li> |
| 36 | 36 | <?php else : ?> |
| 37 | - <li class='parent'><?php echo anchor(site_url($docsDir . '/' . str_replace($docsExt, '', $module)), ucwords(str_replace('_', ' ', $module))); ?></li> |
|
| 37 | + <li class='parent'><?php echo anchor(site_url($docsDir.'/'.str_replace($docsExt, '', $module)), ucwords(str_replace('_', ' ', $module))); ?></li> |
|
| 38 | 38 | <?php endif ?> |
| 39 | 39 | <?php endforeach ?> |
| 40 | 40 | <?php endif ?> |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | <h1><?php echo lang('docs_search_results') ?></h1> |
| 3 | 3 | |
| 4 | 4 | <div class="well"> |
| 5 | - <?php echo form_open( current_url(), 'class="form-inline"'); ?> |
|
| 5 | + <?php echo form_open(current_url(), 'class="form-inline"'); ?> |
|
| 6 | 6 | <input type="text" name="search_terms" class="form-control" style="width: 85%" value="<?php echo set_value('search_terms', $search_terms) ?>" /> |
| 7 | 7 | <input type="submit" name="submit" class="btn btn-primary" value="<?php echo lang('docs_search'); ?>"/> |
| 8 | 8 | <?php echo form_close(); ?> |