Permalink
Browse files

Some PSR fixes in vendor directory

  • Loading branch information...
philwareham committed Feb 11, 2019
1 parent e94a0bd commit 9be2d2198ad180f56423885499892ae255a7620a
@@ -98,7 +98,7 @@ public function __construct($evt = null, $prefix = null)
/**
* Renders a widget to select various amounts to page lists by.
*
* @param int $val Current pagination setting
* @param int $val Current pagination setting
* @return string HTML
*/
@@ -43,7 +43,7 @@ class Table
/**
* Constructor.
*
* @param string $evt Textpattern event (panel)
* @param string $evt Textpattern event (panel)
*/
public function __construct($evt = null)
@@ -60,7 +60,7 @@ public function __construct($evt = null)
/**
* Renders a widget to display lists.
*
* @param array $data Current search/pagination settings
* @param array $data Current search/pagination settings
* @return string HTML
*/
@@ -183,7 +183,7 @@ public static function init($name = '')
/**
* Get a list of all theme names.
*
* @param int $format
* @param int $format
* 0 - names
* 1 - name => title Used for selectInput
* 2 - name => manifest(array) Now not used, reserved
@@ -251,10 +251,10 @@ public static function based_on($name)
* Sets Textpatterns menu structure, message contents and other application
* states.
*
* @param string $area Currently active top level menu
* @param string $event Currently active second level menu
* @param bool $is_popup Just a popup window for tag builder et cetera
* @param array $message The contents of the notification message pane
* @param string $area Currently active top level menu
* @param string $event Currently active second level menu
* @param bool $is_popup Just a popup window for tag builder et cetera
* @param array $message The contents of the notification message pane
* @return \Textpattern\Admin\Theme This theme object
*/
@@ -340,7 +340,6 @@ public function set_state($area, $event, $is_popup, $message)
/**
* HTML <head> custom section.
*
*/
public function html_head_custom()
@@ -404,9 +403,9 @@ public function html_head_custom()
/**
* Output notification message for synchronous HTML views.
*
* @param array $thing Message text and status flag
* @param bool $modal If TRUE, immediate user interaction suggested
* @return string HTML
* @param array $thing Message text and status flag
* @param bool $modal If TRUE, immediate user interaction suggested
* @return string HTML
* @example
* global $theme;
* echo $theme->announce(array('my_message', E_ERROR));
@@ -420,10 +419,10 @@ public function announce($thing = array('', 0), $modal = false)
/**
* Output notification message for asynchronous JavaScript views.
*
* @param array $thing Message text and status flag
* @param bool $modal If TRUE, immediate user interaction suggested
* @return string JavaScript
* @since 4.5.0
* @param array $thing Message text and status flag
* @param bool $modal If TRUE, immediate user interaction suggested
* @return string JavaScript
* @since 4.5.0
* @example
* global $theme;
* echo script_js(
@@ -438,7 +437,6 @@ public function announce_async($thing = array('', 0), $modal = false)
/**
* Output notification message for synchronous HTML and asynchronous JavaScript views.
*
*/
private function _announce($thing, $async, $modal)
@@ -56,7 +56,7 @@ public function __construct()
/**
* Removes files and directories.
*
* @param string $root The parent directory
* @param string $root The parent directory
* @param array $files Files to remove
* @return bool The result
*/
@@ -45,7 +45,6 @@ class Core
/**
* Constructor.
*
*/
public function __construct()
@@ -57,7 +56,7 @@ public function __construct()
/**
* getStructure
*
* @param table name or empty
* @param table name or empty
*/
public function getStructure($table='')
@@ -75,7 +74,6 @@ public function getStructure($table='')
/**
* Create All Tables
*
*/
public function createAllTables()
@@ -88,7 +86,7 @@ public function createAllTables()
/**
* Create Table
*
* @param table name
* @param table name
*/
public function createTable($table)
@@ -100,7 +98,6 @@ public function createTable($table)
/**
* Initial mandatory data
*
*/
public function initData()
@@ -114,7 +111,6 @@ public function initData()
/**
* Create core prefs
*
*/
public function initPrefs()
@@ -205,7 +201,6 @@ public function getPrefsDefault()
/**
* Checks prefs integrity and AutoCreate missing prefs.
*
*/
public function checkPrefsIntegrity()
@@ -91,7 +91,6 @@ public function setArticleOptionalFields($articleOptionalFields)
*
* Allowed a mix of different data types in one xml file.
* Import articles after the creation of all categories and sections.
*
*/
public function importXml($data, $importAllow = '')
@@ -128,7 +127,6 @@ public function importXml($data, $importAllow = '')
/**
* importXmlArticles
*
*/
private function importXmlArticles($xml)
@@ -203,7 +201,6 @@ private function importXmlArticles($xml)
/**
* replaceUrls
* Used in importXmlArticles()
*
*/
private function replaceUrls($txt)
@@ -221,7 +218,6 @@ private function replaceUrls($txt)
/**
* Make sql set string from array
*
*/
public function makeSqlSet($array)
@@ -49,7 +49,7 @@ class RecFilterIterator extends \RecursiveFilterIterator
* Constructor
*
* @param object RecDirIterator $iterator Instance of RecDirIterator.
* @param mixed $filter Array of filenames or regEx as a string.
* @param mixed $filter Array of filenames or regEx as a string.
*/
public function __construct(RecDirIterator $iterator, $filter)
@@ -98,7 +98,7 @@ public function isValid()
/**
* $filter property setter
*
* @param mixed $filter Array of filenames or regEx as a string.
* @param mixed $filter Array of filenames or regEx as a string.
* @return object $this.
*/
@@ -131,7 +131,7 @@ public function installed()
/**
* Return all language files in the lang directory.
*
* @param array $extensions Language files extensions
* @param array $extensions Language files extensions
* @return array Available language filenames
*/
@@ -233,8 +233,8 @@ public function fetchMeta($file)
* Depending on the flags, the returned array can contain active,
* installed or available language metadata.
*
* @param int $flags Determine which type of information to return
* @param int $force Force update the given information, even if it's already populated
* @param int $flags Determine which type of information to return
* @param int $force Force update the given information, even if it's already populated
* @return array
*/
@@ -393,7 +393,7 @@ public function getPack($lang_code, $group = null)
/**
* Install a language pack from a file.
*
* @param string $lang_code The lang identifier to load
* @param string $lang_code The lang identifier to load
*/
public function installFile($lang_code)
@@ -467,8 +467,8 @@ public function installTextpack($textpack, $addNewLangs = false)
/**
* Insert or update a language pack.
*
* @param array $langpack The language pack to store
* @param string $langpack The owner to use if not in the pack
* @param array $langpack The language pack to store
* @param string $langpack The owner to use if not in the pack
* @return result set
*/
@@ -512,9 +512,9 @@ public function upsertPack($langpack, $owner_ref = '')
* the degree of translation that's taken place in the desired $lang code.
* Any holes can be mopped up by the default language.
*
* @param string $lang_code The language code
* @param array|string $events A list of loaded events to extract
* @return array
* @param string $lang_code The language code
* @param array|string $events A list of loaded events to extract
* @return array
*/
public function extract($lang_code, $events = null)
@@ -569,10 +569,10 @@ public function extract($lang_code, $events = null)
* the degree of translation that's taken place in the desired $lang code.
* Any holes can be mopped up by the default language.
*
* @param string $lang_code The language code
* @param array|string $events A list of loaded events to load
* @see extract()
* @return array
* @param string $lang_code The language code
* @param array|string $events A list of loaded events to load
* @see extract()
* @return array
*/
public function load($lang_code, $events = null)
@@ -640,10 +640,10 @@ public function txt($var, $atts = array(), $escape = 'html')
/**
* Generate an array of languages and their localised names.
*
* @param int $flags Logical OR list of flags indiacting the type of list to return:
* TEXTPATTERN_LANG_ACTIVE: the active language
* TEXTPATTERN_LANG_INSTALLED: all installed languages
* TEXTPATTERN_LANG_AVAILABLE: all available languages in the file system
* @param int $flags Logical OR list of flags indiacting the type of list to return:
* TEXTPATTERN_LANG_ACTIVE: the active language
* TEXTPATTERN_LANG_INSTALLED: all installed languages
* TEXTPATTERN_LANG_AVAILABLE: all available languages in the file system
* @return array
*/
@@ -43,7 +43,6 @@ class HelpAdmin
/**
* Constructor.
*
*/
public static function init()
@@ -65,7 +64,7 @@ public static function init()
*
* Also load fallback file if it's not the same language.
*
* @param string $lang
* @param string $lang
*/
private static function pophelp_load($lang)
@@ -93,7 +92,7 @@ private static function pophelp_load($lang)
/**
* Get pophelp group keys
*
* @param string $group
* @param string $group
*/
public static function pophelp_keys($group)
@@ -176,7 +175,6 @@ public static function pophelp($string = '')
/**
* Stub, waiting Txp 4.8
*
*/
public static function dashboard()
@@ -48,8 +48,8 @@ public function __construct()
* the following callback is raised upon installation:
* plugin_lifecycle.{plugin_name} > installed
*
* @param string $plugin Plugin_base64
* @param int $status Plugin status
* @param string $plugin Plugin_base64
* @param int $status Plugin status
*
* @return string|array
*/
@@ -172,7 +172,7 @@ public function extract($plugin, $normalize = true)
* plugin_lifecycle.{plugin_name} > disabled
* plugin_lifecycle.{plugin_name} > deleted
*
* @param string $name Plugin name
* @param string $name Plugin name
*/
public function delete($name)
@@ -199,8 +199,8 @@ public function delete($name)
* plugin_lifecycle.{plugin_name} > disabled
* plugin_lifecycle.{plugin_name} > enabled
*
* @param string $name Plugin name
* @param int $setStatus Plugin status. Toggle status, if null
* @param string $name Plugin name
* @param int $setStatus Plugin status. Toggle status, if null
*/
public function changeStatus($name, $setStatus = null)
@@ -234,8 +234,8 @@ public function changeStatus($name, $setStatus = null)
*
* Plugins with a lower nunber are loaded first.
*
* @param string $name Plugin name
* @param int $order Plugin load priority
* @param string $name Plugin name
* @param int $order Plugin load priority
*/
public function changeOrder($name, $order)
@@ -250,8 +250,8 @@ public function changeOrder($name, $order)
* The process may be intercepted (for example, to fetch data from the
* filesystem) via the "txp.plugin > textpack.fetch" callback.
*
* @param string $name Plugin name
* @param boolean $reset Delete old strings
* @param string $name Plugin name
* @param boolean $reset Delete old strings
*/
public function installTextpack($name, $reset = false)
Oops, something went wrong.

0 comments on commit 9be2d21

Please sign in to comment.