1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

PHPDoc fixes and code optimization.

This commit is contained in:
Cameron
2021-12-03 14:58:33 -08:00
parent aff6daf590
commit 0d8f3e9086
73 changed files with 241 additions and 210 deletions

View File

@@ -38,10 +38,10 @@ if(!class_exists("_blank_setup"))
'blank_folder' =>'Folder Value',
'blank_version' =>'1',
'blank_author' =>'1',
'blank_authorURL' =>'http://e107.org',
'blank_authorURL' =>'https://e107.org',
'blank_date' =>'1352871240',
'blank_compatibility' =>'2',
'blank_url' =>'http://e107.org',
'blank_url' =>'https://e107.org',
'blank_class' => 0
);

View File

@@ -28,7 +28,7 @@ class _blank_admin implements e_admin_addon_interface
return array(
3 => array('url'=>'http://myurl.com'),
3 => array('url'=>'https://myurl.com'),
);
@@ -48,7 +48,7 @@ class _blank_admin implements e_admin_addon_interface
$id = $ui->getId();
$config = array();
$defaultValue = 'http://';
$defaultValue = 'https://';
switch($type)
{

View File

@@ -95,7 +95,7 @@ class _blank_dashboard // include plugin-folder in the name.
{
list($yearNumber,$monthNumber,$day) = explode('-',$k);
$diz = date('D jS', mktime(1,1,1,$monthNumber,$day, $yearNumber));
$data[] = array($diz, $amt[$k]['other'], $amt[$k]['friend'], $amt[$k]['bing'], $amt[$k]['google'], $amt[$k]['facebook']); // $dateName[$i]
$data[] = array($diz, $v['other'], $v['friend'], $v['bing'], $v['google'], $v['facebook']); // $dateName[$i]
$ticks[] = $k;
// $c++;
}

View File

@@ -120,8 +120,8 @@ class _blank_library
$libraries['example'] = array(
// Only used in administrative UI of Libraries API.
'name' => 'Example library',
'vendor_url' => 'http://example.com',
'download_url' => 'http://example.com/download',
'vendor_url' => 'https://example.com',
'download_url' => 'https://example.com/download',
// Override default library location ({e_WEB}/lib).
'library_path' => e_PLUGIN . 'example',
// Optional: If, after extraction, the actual library files are contained in 'e107_web/lib/example/lib',
@@ -229,8 +229,8 @@ class _blank_library
// 'e107_web/lib/simple'.
$libraries['simple'] = array(
'name' => 'Simple library',
'vendor_url' => 'http://example.com/simple',
'download_url' => 'http://example.com/simple',
'vendor_url' => 'https://example.com/simple',
'download_url' => 'https://example.com/simple',
'version_arguments' => array(
'file' => 'readme.txt',
// Best practice: Document the actual version strings for later reference.
@@ -251,8 +251,8 @@ class _blank_library
// A library that (naturally) evolves over time with API changes.
$libraries['tinymce'] = array(
'name' => 'TinyMCE',
'vendor_url' => 'http://tinymce.moxiecode.com',
'download_url' => 'http://tinymce.moxiecode.com/download.php',
'vendor_url' => 'https://www.tiny.cloud/',
'download_url' => 'https://www.tiny.cloud/get-tiny/downloads/',
'path' => 'jscripts/tiny_mce',
// The regular expression catches two parts (the major and the minor version), which libraryGetVersion()
// doesn't allow.

View File

@@ -43,7 +43,7 @@ class _blank_user // plugin-folder + '_user'
/**
* Experimental and subject to change without notice.
* @return mixed
* @return array
*/
function delete()
{