Minor - format code, fix flint issues

pull/2495/head
jmontoyaa 8 years ago
parent 7c9159a066
commit 3c9c2601a0
  1. 7
      main/inc/lib/fileUpload.lib.php
  2. 4
      main/inc/lib/template.lib.php
  3. 4
      main/inc/lib/userportal.lib.php

@ -1312,9 +1312,9 @@ function filter_extension(&$filename)
* @param string $comment
* @param int $readonly
* @param bool $saveVisibility
* @param int $group_id group.id
* @param int $sessionId Session ID, if any
* @param int $userId creator user id
* @param int $group_id group.id
* @param int $sessionId Session ID, if any
* @param int $userId creator user id
* @param bool $sendNotification
*
* @return int id if inserted document
@ -1599,6 +1599,7 @@ function search_img_from_html($html_file)
* @param int $visibility (0 for invisible, 1 for visible, 2 for deleted)
* @param bool $generateNewNameIfExists
* @param bool $sendNotification depends in conf setting "send_notification_when_document_added"
*
* @return string actual directory name if it succeeds,
* boolean false otherwise
*/

@ -173,8 +173,8 @@ class Template
],
[
'name' => 'get_template',
'callable' => 'Template::findTemplateFilePath'
]
'callable' => 'Template::findTemplateFilePath',
],
];
foreach ($filters as $filter) {

@ -267,7 +267,9 @@ class IndexManager
/**
* Includes a created page.
*
* @param bool $getIncludedFile Whether to include a file as provided in URL GET or simply the homepage
*
* @return string
*/
public function return_home_page($getIncludedFile = false)
@ -277,7 +279,7 @@ class IndexManager
$html = '';
if ($getIncludedFile === true) {
if (!empty($_GET['include']) && preg_match('/^[a-zA-Z0-9_-]*\.html$/', $_GET['include'])) {
$open = @(string)file_get_contents($this->home.$_GET['include']);
$open = @(string) file_get_contents($this->home.$_GET['include']);
$html = api_to_system_encoding($open, api_detect_encoding(strip_tags($open)));
}
} else {

Loading…
Cancel
Save