From 0c954fc204a182b70e5a7bc22a65c61869b488a6 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 13 Aug 2013 00:10:04 +0200 Subject: Coding style fixes Signed-off-by: Florian Pritz --- application/controllers/file.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'application/controllers') diff --git a/application/controllers/file.php b/application/controllers/file.php index e931e4078..573d1a5b3 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -36,7 +36,6 @@ class File extends CI_Controller { $this->var->latest_client = trim(file_get_contents(FCPATH.'data/client/latest')); } - if (is_cli_client()) { $this->var->view_dir = "file_plaintext"; } else { @@ -63,7 +62,7 @@ class File extends CI_Controller { } // Try to guess what the user would like to do. $id = $this->uri->segment(1); - if(!empty($_FILES)) { + if (!empty($_FILES)) { $this->do_upload(); } elseif ($id != "file" && $this->mfile->id_exists($id)) { $this->_download(); @@ -331,7 +330,7 @@ class File extends CI_Controller { $this->data['client_link_deb'] = base_url().'data/client/deb/'; $this->data['client_link_slackware'] = base_url().'data/client/slackware/'; - if(preg_match('#^https?://(.*?)/.*$#', site_url(), $matches) === 1) { + if (preg_match('#^https?://(.*?)/.*$#', site_url(), $matches) === 1) { $this->data["domain"] = $matches[1]; } else { $this->data["domain"] = "unknown domain"; @@ -589,7 +588,7 @@ class File extends CI_Controller { $filesize = strlen($content); $filename = "stdin"; - if(!$content) { + if (!$content) { $this->output->set_status_header(400); $this->data["msg"] = "Nothing was pasted, content is empty."; $this->load->view('header', $this->data); -- cgit v1.2.3-24-g4f1b