mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
fix line indenting
This commit is contained in:
parent
b5ef570ea5
commit
cd08883c55
|
@ -150,8 +150,13 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
||||||
return $this->_transitions;
|
return $this->_transitions;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array
|
* Get all states this workflow at some point may reach
|
||||||
|
*
|
||||||
|
* It basically iterates through all transistions and makes a unique
|
||||||
|
* list of the start and end state.
|
||||||
|
*
|
||||||
|
* @return array list of states
|
||||||
*/
|
*/
|
||||||
function getStates() { /* {{{ */
|
function getStates() { /* {{{ */
|
||||||
/** @noinspection PhpUnusedLocalVariableInspection */
|
/** @noinspection PhpUnusedLocalVariableInspection */
|
||||||
|
@ -161,7 +166,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
||||||
$this->getTransitions();
|
$this->getTransitions();
|
||||||
|
|
||||||
$states = array();
|
$states = array();
|
||||||
foreach($this->_transitions as $transition) {
|
foreach($this->_transitions as $transition) {
|
||||||
if(!isset($states[$transition->getState()->getID()]))
|
if(!isset($states[$transition->getState()->getID()]))
|
||||||
$states[$transition->getState()->getID()] = $transition->getState();
|
$states[$transition->getState()->getID()] = $transition->getState();
|
||||||
if(!isset($states[$transition->getNextState()->getID()]))
|
if(!isset($states[$transition->getNextState()->getID()]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user