QA:
- removed unnecessary brackets in case statements
Dieser Commit ist enthalten in:
Ursprung
ae87af916f
Commit
2c0641c348
8 geänderte Dateien mit 35 neuen und 35 gelöschten Zeilen
|
@ -53,9 +53,9 @@ class Msd_Form_Decorator_Default extends Msd_Form_Decorator_Abstract
|
||||||
$separator = $this->getSeparator();
|
$separator = $this->getSeparator();
|
||||||
$placement = $this->getPlacement();
|
$placement = $this->getPlacement();
|
||||||
switch ($placement) {
|
switch ($placement) {
|
||||||
case (self::PREPEND):
|
case self::PREPEND:
|
||||||
return $output . $separator . $content;
|
return $output . $separator . $content;
|
||||||
case (self::APPEND):
|
case self::APPEND:
|
||||||
default:
|
default:
|
||||||
return $content . $separator . $output;
|
return $content . $separator . $output;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,9 +56,9 @@ class Msd_Form_Decorator_DisplayGroup extends Msd_Form_Decorator_Abstract
|
||||||
$placement = $this->getPlacement();
|
$placement = $this->getPlacement();
|
||||||
$separator = $this->getSeparator();
|
$separator = $this->getSeparator();
|
||||||
switch ($placement) {
|
switch ($placement) {
|
||||||
case (self::PREPEND):
|
case self::PREPEND:
|
||||||
return $sElements . $separator . $content;
|
return $sElements . $separator . $content;
|
||||||
case (self::APPEND):
|
case self::APPEND:
|
||||||
default:
|
default:
|
||||||
return $content . $separator . $sElements;
|
return $content . $separator . $sElements;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,9 +85,9 @@ class Msd_Form_Decorator_DoubleLabel extends Msd_Form_Decorator_Abstract
|
||||||
</tr>';
|
</tr>';
|
||||||
$output = sprintf($output, $label, $input, $secondLabel);
|
$output = sprintf($output, $label, $input, $secondLabel);
|
||||||
switch ($placement) {
|
switch ($placement) {
|
||||||
case (self::PREPEND):
|
case self::PREPEND:
|
||||||
return $output . $separator . $content;
|
return $output . $separator . $content;
|
||||||
case (self::APPEND):
|
case self::APPEND:
|
||||||
default:
|
default:
|
||||||
return $content . $separator . $output;
|
return $content . $separator . $output;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,9 +33,9 @@ class Msd_Form_Decorator_LineEnd extends Msd_Form_Decorator_Abstract
|
||||||
$separator = $this->getSeparator();
|
$separator = $this->getSeparator();
|
||||||
$placement = $this->getPlacement();
|
$placement = $this->getPlacement();
|
||||||
switch ($placement) {
|
switch ($placement) {
|
||||||
case (self::PREPEND):
|
case self::PREPEND:
|
||||||
return $output . $separator . $content;
|
return $output . $separator . $content;
|
||||||
case (self::APPEND):
|
case self::APPEND:
|
||||||
default:
|
default:
|
||||||
return $content . $separator . $output;
|
return $content . $separator . $output;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,9 +34,9 @@ class Msd_Form_Decorator_LineMiddle extends Msd_Form_Decorator_Abstract
|
||||||
$separator = $this->getSeparator();
|
$separator = $this->getSeparator();
|
||||||
$placement = $this->getPlacement();
|
$placement = $this->getPlacement();
|
||||||
switch ($placement) {
|
switch ($placement) {
|
||||||
case (self::PREPEND):
|
case self::PREPEND:
|
||||||
return $output . $separator . $content;
|
return $output . $separator . $content;
|
||||||
case (self::APPEND):
|
case self::APPEND:
|
||||||
default:
|
default:
|
||||||
return $content . $separator . $output;
|
return $content . $separator . $output;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,9 +38,9 @@ class Msd_Form_Decorator_LineStart extends Msd_Form_Decorator_Abstract
|
||||||
$input = $this->buildInput();
|
$input = $this->buildInput();
|
||||||
$output = '<tr><td>' . $label . '</td>' . '<td>' . $input;
|
$output = '<tr><td>' . $label . '</td>' . '<td>' . $input;
|
||||||
switch ($placement) {
|
switch ($placement) {
|
||||||
case (self::PREPEND):
|
case self::PREPEND:
|
||||||
return $output . $separator . $content;
|
return $output . $separator . $content;
|
||||||
case (self::APPEND):
|
case self::APPEND:
|
||||||
default:
|
default:
|
||||||
return $content . $separator . $output;
|
return $content . $separator . $output;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,9 +43,9 @@ class Msd_Form_Decorator_SubForm extends Msd_Form_Decorator_Abstract
|
||||||
$separator = $this->getSeparator();
|
$separator = $this->getSeparator();
|
||||||
$placement = $this->getPlacement();
|
$placement = $this->getPlacement();
|
||||||
switch ($placement) {
|
switch ($placement) {
|
||||||
case (self::PREPEND):
|
case self::PREPEND:
|
||||||
return $htmlOutput . $separator . $content;
|
return $htmlOutput . $separator . $content;
|
||||||
case (self::APPEND):
|
case self::APPEND:
|
||||||
default:
|
default:
|
||||||
return $content . $separator . $htmlOutput;
|
return $content . $separator . $htmlOutput;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,6 @@ class Msd_Log
|
||||||
$this->handle[self::PERL_COMPLETE] = false;
|
$this->handle[self::PERL_COMPLETE] = false;
|
||||||
$this->handle[self::ERROR] = false;
|
$this->handle[self::ERROR] = false;
|
||||||
|
|
||||||
// get config
|
|
||||||
$config = Msd_Registry::getConfig();
|
$config = Msd_Registry::getConfig();
|
||||||
$this->_paths = (object)$config->getParam('paths');
|
$this->_paths = (object)$config->getParam('paths');
|
||||||
}
|
}
|
||||||
|
@ -162,7 +161,7 @@ class Msd_Log
|
||||||
/**
|
/**
|
||||||
* Delete a log file and recreate it.
|
* Delete a log file and recreate it.
|
||||||
*
|
*
|
||||||
* @param string $file Filename
|
* @param string $type Filename
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
@ -174,13 +173,14 @@ class Msd_Log
|
||||||
$translator = Msd_Language::getInstance()->getTranslator();
|
$translator = Msd_Language::getInstance()->getTranslator();
|
||||||
$this->write($type, $translator->_('L_LOG_CREATED'));
|
$this->write($type, $translator->_('L_LOG_CREATED'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read a logfile and return content as array.
|
* Read a logfile and return content as array.
|
||||||
*
|
*
|
||||||
* If $revers is set to true the ordering of lines is reversed.
|
* If $revers is set to true the ordering of lines is reversed.
|
||||||
*
|
*
|
||||||
* @param parent::const $type The type of logfile to read
|
* @param string $type The type of logfile to read
|
||||||
* @param boolean $reverse Wether to place latest entries first
|
* @param bool $reverse Whether to place latest entries first
|
||||||
*
|
*
|
||||||
* @return array Log data from file as array
|
* @return array Log data from file as array
|
||||||
*/
|
*/
|
||||||
|
|
Laden …
In neuem Issue referenzieren