Commit 9e15dba5 authored by speedprogs_de's avatar speedprogs_de

code cleanup

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@45942 735d13b6-9817-0410-8766-e36946ffe9aa
parent 2c275ecf
......@@ -70,8 +70,8 @@
/**
* Displays a form for creating a new Tag
*
* @param Tx_TerFe2_Domain_Model_Extension $extension The extension to add the new tag
* @param Tx_TerFe2_Domain_Model_Tag $newTag A fresh Tag object taken as a basis for the rendering
* @param Tx_TerFe2_Domain_Model_Extension $extension The extension to add this new tag
* @return void
* @dontvalidate $newTag
*/
......@@ -85,6 +85,7 @@
* Creates a new Tag and forwards to the index action
*
* @param Tx_TerFe2_Domain_Model_Tag $newTag A fresh Tag object which has not yet been added to the repository
* @param Tx_TerFe2_Domain_Model_Extension $extension The extension to add the new tag
* @return void
*/
public function createAction(Tx_TerFe2_Domain_Model_Tag $newTag, Tx_TerFe2_Domain_Model_Extension $extension) {
......
......@@ -140,7 +140,7 @@
/**
* Setter for forgeLink
*
* @param string $name Link to forge profile
* @param string $forgeLink Link to forge profile
* @return void
*/
public function setForgeLink($forgeLink) {
......@@ -171,7 +171,7 @@
/**
* Adds a version
*
* @param Tx_TerFe2_Domain_Model_Version The Version to be added
* @param Tx_TerFe2_Domain_Model_Version $version The Version to be added
* @return void
*/
public function addVersion(Tx_TerFe2_Domain_Model_Version $version) {
......@@ -182,7 +182,7 @@
/**
* Removes a version
*
* @param Tx_TerFe2_Domain_Model_Version The Version to be removed
* @param Tx_TerFe2_Domain_Model_Version $version The Version to be removed
* @return void
*/
public function removeVersion(Tx_TerFe2_Domain_Model_Version $version) {
......
......@@ -218,7 +218,7 @@
/**
* Adds a category
*
* @param Tx_TerFe2_Domain_Model_Category The Category to be added
* @param Tx_TerFe2_Domain_Model_Category $category The Category to be added
* @return void
*/
public function addCategory(Tx_TerFe2_Domain_Model_Category $category) {
......@@ -229,7 +229,7 @@
/**
* Removes a category
*
* @param Tx_TerFe2_Domain_Model_Category The Category to be removed
* @param Tx_TerFe2_Domain_Model_Category $category The Category to be removed
* @return void
*/
public function removeCategory(Tx_TerFe2_Domain_Model_Category $category) {
......@@ -250,7 +250,7 @@
/**
* Adds a Tag
*
* @param Tx_TerFe2_Domain_Model_Tag The Tag to be added
* @param Tx_TerFe2_Domain_Model_Tag $tag The Tag to be added
* @return void
*/
public function addTag(Tx_TerFe2_Domain_Model_Tag $tag) {
......@@ -261,7 +261,7 @@
/**
* Removes a Tag
*
* @param Tx_TerFe2_Domain_Model_Tag The Tag to be removed
* @param Tx_TerFe2_Domain_Model_Tag $tag The Tag to be removed
* @return void
*/
public function removeTag(Tx_TerFe2_Domain_Model_Tag $tag) {
......@@ -282,7 +282,7 @@
/**
* Adds a Version
*
* @param Tx_TerFe2_Domain_Model_Version The Version to be added
* @param Tx_TerFe2_Domain_Model_Version $version The Version to be added
* @return void
*/
public function addVersion(Tx_TerFe2_Domain_Model_Version $version) {
......
......@@ -790,7 +790,7 @@
/**
* Adds a Media
*
* @param Tx_TerFe2_Domain_Model_Media The Media to be added
* @param Tx_TerFe2_Domain_Model_Media $medium The Media to be added
* @return void
*/
public function addMedia(Tx_TerFe2_Domain_Model_Media $medium) {
......@@ -801,7 +801,7 @@
/**
* Removes a Media
*
* @param Tx_TerFe2_Domain_Model_Media The Media to be removed
* @param Tx_TerFe2_Domain_Model_Media $medium The Media to be removed
* @return void
*/
public function removeMedia(Tx_TerFe2_Domain_Model_Media $medium) {
......@@ -833,7 +833,7 @@
/**
* Adds a Experience
*
* @param Tx_TerFe2_Domain_Model_Experience The Experience to be added
* @param Tx_TerFe2_Domain_Model_Experience $experience The Experience to be added
* @return void
*/
public function addExperience(Tx_TerFe2_Domain_Model_Experience $experience) {
......@@ -844,7 +844,7 @@
/**
* Removes a Experience
*
* @param Tx_TerFe2_Domain_Model_Experience The Experience to be removed
* @param Tx_TerFe2_Domain_Model_Experience $experience The Experience to be removed
* @return void
*/
public function removeExperience(Tx_TerFe2_Domain_Model_Experience $experience) {
......@@ -876,7 +876,7 @@
/**
* Adds a Relation
*
* @param Tx_TerFe2_Domain_Model_Relation The Relation to be added
* @param Tx_TerFe2_Domain_Model_Relation $softwareRelation The Relation to be added
* @return void
*/
public function addSoftwareRelation(Tx_TerFe2_Domain_Model_Relation $softwareRelation) {
......@@ -887,7 +887,7 @@
/**
* Removes a Relation
*
* @param Tx_TerFe2_Domain_Model_Relation The Relation to be removed
* @param Tx_TerFe2_Domain_Model_Relation $softwareRelation The Relation to be removed
* @return void
*/
public function removeSoftwareRelation(Tx_TerFe2_Domain_Model_Relation $softwareRelation) {
......
......@@ -89,7 +89,7 @@
/**
* Returns URL to a cached or new Extension icon
*
* @param Tx_TerFe2_Domain_Model_Version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string URL to icon file
*/
......@@ -115,7 +115,7 @@
/**
* Returns URL to an Extension file
*
* @param Tx_TerFe2_Domain_Model_Version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string URL to file
*/
......@@ -128,7 +128,7 @@
/**
* Returns name of an Extension file
*
* @param Tx_TerFe2_Domain_Model_Version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string File name
*/
......
......@@ -82,7 +82,7 @@
/**
* Returns an array with information about all updated Extensions
*
* @param integer $lastUpdate Last update of the extension list
* @param integer $lastRunTime Last update of the extension list
* @return array Update information
*/
public function getUpdateInfo($lastRunTime) {
......@@ -110,7 +110,7 @@
/**
* Returns URL to an Extension icon
*
* @param Tx_TerFe2_Domain_Model_Version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string URL to icon file
*/
......@@ -123,7 +123,7 @@
/**
* Returns URL to an Extension file
*
* @param Tx_TerFe2_Domain_Model_Version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string URL to file
*/
......@@ -136,7 +136,7 @@
/**
* Returns name of an Extension file
*
* @param Tx_TerFe2_Domain_Model_Version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string File name
*/
......@@ -184,7 +184,7 @@
* Add Extension Provider to Extension information array
*
* @param array $extensionInfo Extension information
* @param string $key Array key
* @param string $key Array key (never used, but required for array_walk)
* @param string $providerIdent Ident of the Extension Provider
* @return void
*/
......
......@@ -35,7 +35,7 @@
/**
* Injects the DataMap Factory
*
* @param Tx_Extbase_Persistence_Mapper_DataMapFactory
* @param Tx_Extbase_Persistence_Mapper_DataMapFactory $dataMapFactory
* @return void
*/
public function injectDataMapFactory(Tx_Extbase_Persistence_Mapper_DataMapFactory $dataMapFactory);
......@@ -44,7 +44,7 @@
/**
* Injects the Reflection Service
*
* @param Tx_Extbase_Reflection_Service
* @param Tx_Extbase_Reflection_Service $reflectionService
* @return void
*/
public function injectReflectionService(Tx_Extbase_Reflection_Service $reflectionService);
......@@ -62,7 +62,7 @@
/**
* Returns URL to a cached or new Extension icon
*
* @param Tx_TerFe2_Domain_Model_Version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string URL to icon file
*/
......@@ -72,7 +72,7 @@
/**
* Returns URL to an Extension file
*
* @param Tx_TerFe2_Domain_Model_Version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string URL to file
*/
......@@ -81,7 +81,7 @@
/**
* Returns name of an Extension file
*
* @param Tx_TerFe2_Domain_Model_Version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string File name
*/
......
......@@ -49,10 +49,9 @@
$this->configuration['username'],
$this->configuration['password']
);
return;
} else {
Tx_TerFe2_Utility_Soap::connect($this->configuration['wsdlUrl']);
}
Tx_TerFe2_Utility_Soap::connect($this->configuration['wsdlUrl']);
}
......
......@@ -35,7 +35,7 @@
/**
* Get extension information from module getters
*
* @param Tx_TerFe2_Domain_Model_Extension Extension object
* @param Tx_TerFe2_Domain_Model_Extension $extension Extension object
* @return array Extension information
*/
static public function discloseExtension(Tx_TerFe2_Domain_Model_Extension $extension) {
......
......@@ -93,7 +93,7 @@
/**
* Add multiple values to session
*
* @param array Key <-> value pairs
* @param array $value Key <-> value pairs
* @return void
*/
static public function addValues(array $values) {
......
......@@ -41,6 +41,7 @@
/**
* Inject extension settings
*
* @param array $settings View settings
* @return void
*/
public function injectSettings(array $settings) {
......
......@@ -41,6 +41,7 @@
/**
* Inject extension settings
*
* @param array $settings View settings
* @return void
*/
public function injectSettings(array $settings) {
......
......@@ -44,8 +44,8 @@
* @return void
*/
public function initialize() {
$ddmmyy = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'];
$hhmm = $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
$ddmmyy = trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy']);
$hhmm = trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm']);
$this->defaultFormat = trim($ddmmyy . ' ' . $hhmm);
}
......
......@@ -69,11 +69,11 @@
/**
* Renders an extension icon for given Version object
*
* @param $version Version object
* @param Tx_TerFe2_Domain_Model_Version $version Version object
* @param string $fileType File type
* @return string Rendered image tag
*/
public function render($version = NULL, $fileType = 'gif') {
public function render(Tx_TerFe2_Domain_Model_Version $version = NULL, $fileType = 'gif') {
if ($version === NULL) {
$version = $this->renderChildren();
}
......
......@@ -43,7 +43,7 @@
),
'l18n_diffsource' => array(
'config' => array(
'type' =>'passthrough',
'type' => 'passthrough',
),
),
't3ver_label' => array(
......
......@@ -50,7 +50,7 @@
'displayCond' => 'FIELD:t3ver_label:REQ:true',
'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
'config' => array(
'type' =>'none',
'type' => 'none',
'cols' => 27,
),
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment