mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +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 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() { /* {{{ */
|
||||
/** @noinspection PhpUnusedLocalVariableInspection */
|
||||
|
@ -161,7 +166,7 @@ class SeedDMS_Core_Workflow { /* {{{ */
|
|||
$this->getTransitions();
|
||||
|
||||
$states = array();
|
||||
foreach($this->_transitions as $transition) {
|
||||
foreach($this->_transitions as $transition) {
|
||||
if(!isset($states[$transition->getState()->getID()]))
|
||||
$states[$transition->getState()->getID()] = $transition->getState();
|
||||
if(!isset($states[$transition->getNextState()->getID()]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user