mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-23 20:52:52 -05:00
Remove space after reference operators
This commit is contained in:
parent
8333846003
commit
144bcdf852
3 changed files with 9 additions and 9 deletions
|
|
@ -452,7 +452,7 @@ class AddNodeForm extends QuickForm
|
|||
* @param BpNode $node
|
||||
* @param BpNode[] $parents
|
||||
*/
|
||||
protected function collectAllParents(BpNode $node, array & $parents)
|
||||
protected function collectAllParents(BpNode $node, array &$parents)
|
||||
{
|
||||
foreach ($node->getParents() as $parent) {
|
||||
$parents[$parent->getName()] = $parent;
|
||||
|
|
|
|||
|
|
@ -375,7 +375,7 @@ class EditNodeForm extends QuickForm
|
|||
* @param BpNode $node
|
||||
* @param BpNode[] $parents
|
||||
*/
|
||||
protected function collectAllParents(BpNode $node, array & $parents)
|
||||
protected function collectAllParents(BpNode $node, array &$parents)
|
||||
{
|
||||
foreach ($node->getParents() as $parent) {
|
||||
$parents[$parent->getName()] = $parent;
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ class LegacyConfigParser
|
|||
return $metadata;
|
||||
}
|
||||
|
||||
public static function readMetadataFromString($name, & $string)
|
||||
public static function readMetadataFromString($name, &$string)
|
||||
{
|
||||
$metadata = new Metadata($name);
|
||||
|
||||
|
|
@ -201,7 +201,7 @@ class LegacyConfigParser
|
|||
* @param $line
|
||||
* @param BpConfig $bp
|
||||
*/
|
||||
protected function parseDisplay(& $line, BpConfig $bp)
|
||||
protected function parseDisplay(&$line, BpConfig $bp)
|
||||
{
|
||||
list($display, $name, $desc) = preg_split('~\s*;\s*~', substr($line, 8), 3);
|
||||
$bp->getBpNode($name)->setAlias($desc)->setDisplay($display);
|
||||
|
|
@ -214,26 +214,26 @@ class LegacyConfigParser
|
|||
* @param $line
|
||||
* @param BpConfig $bp
|
||||
*/
|
||||
protected function parseExternalInfo(& $line, BpConfig $bp)
|
||||
protected function parseExternalInfo(&$line, BpConfig $bp)
|
||||
{
|
||||
list($name, $script) = preg_split('~\s*;\s*~', substr($line, 14), 2);
|
||||
$bp->getBpNode($name)->setInfoCommand($script);
|
||||
}
|
||||
|
||||
protected function parseExtraInfo(& $line, BpConfig $bp)
|
||||
protected function parseExtraInfo(&$line, BpConfig $bp)
|
||||
{
|
||||
// TODO: Not yet
|
||||
// list($name, $script) = preg_split('~\s*;\s*~', substr($line, 14), 2);
|
||||
// $this->getNode($name)->setExtraInfo($script);
|
||||
}
|
||||
|
||||
protected function parseInfoUrl(& $line, BpConfig $bp)
|
||||
protected function parseInfoUrl(&$line, BpConfig $bp)
|
||||
{
|
||||
list($name, $url) = preg_split('~\s*;\s*~', substr($line, 9), 2);
|
||||
$bp->getBpNode($name)->setInfoUrl($url);
|
||||
}
|
||||
|
||||
protected function parseExtraLine(& $line, $typeLength, BpConfig $bp)
|
||||
protected function parseExtraLine(&$line, $typeLength, BpConfig $bp)
|
||||
{
|
||||
$type = substr($line, 0, $typeLength);
|
||||
if (substr($type, 0, 7) === 'display') {
|
||||
|
|
@ -270,7 +270,7 @@ class LegacyConfigParser
|
|||
*
|
||||
* @throws ConfigurationError
|
||||
*/
|
||||
protected function parseLine(& $line)
|
||||
protected function parseLine(&$line)
|
||||
{
|
||||
$bp = $this->config;
|
||||
$line = trim($line);
|
||||
|
|
|
|||
Loading…
Reference in a new issue