@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $this->setContext($context); |
| 174 | 174 | $this->setField($field); |
| 175 | 175 | $this->setOperator($operator); |
| 176 | - $this->negate = (boolean)$negate; |
|
| 176 | + $this->negate = (boolean) $negate; |
|
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | /** |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | throw new ArgumentNotNumericException($errMsg); |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | - $this->context = (integer)$context; |
|
| 227 | + $this->context = (integer) $context; |
|
| 228 | 228 | |
| 229 | 229 | return $this; |
| 230 | 230 | } |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | throw new ArgumentNotNumericException($errMsg); |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | - $this->field = (integer)$field; |
|
| 256 | + $this->field = (integer) $field; |
|
| 257 | 257 | |
| 258 | 258 | return $this; |
| 259 | 259 | } |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | throw new ArgumentNotNumericException($errMsg); |
| 283 | 283 | } |
| 284 | 284 | |
| 285 | - $this->operator = (integer)$operator; |
|
| 285 | + $this->operator = (integer) $operator; |
|
| 286 | 286 | |
| 287 | 287 | return $this; |
| 288 | 288 | } |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/old-town-workflow |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/old-town-workflow |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\PhpUnit\Utils; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | throw new ArgumentNotNumericException($errMsg); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - $this->expressionOperator = (integer)$expressionOperator; |
|
| 92 | + $this->expressionOperator = (integer) $expressionOperator; |
|
| 93 | 93 | |
| 94 | 94 | return $this; |
| 95 | 95 | } |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/old-town-workflow |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/old-town-workflow |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\PhpUnit\Utils; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | public function setOrderBy($orderBy) |
| 90 | 90 | { |
| 91 | - $this->orderBy = (integer)$orderBy; |
|
| 91 | + $this->orderBy = (integer) $orderBy; |
|
| 92 | 92 | |
| 93 | 93 | return $this; |
| 94 | 94 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function setSortOrder($sortOrder) |
| 109 | 109 | { |
| 110 | - $this->sortOrder = (integer)$sortOrder; |
|
| 110 | + $this->sortOrder = (integer) $sortOrder; |
|
| 111 | 111 | |
| 112 | 112 | return $this; |
| 113 | 113 | } |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/old-town-workflow |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/old-town-workflow |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\PhpUnit\Utils; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $actionId); |
| 108 | 108 | throw new ArgumentNotNumericException($errMsg); |
| 109 | 109 | } |
| 110 | - $this->actionId = (integer)$actionId; |
|
| 110 | + $this->actionId = (integer) $actionId; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | return $this; |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | public function setCaller($caller = null) |
| 133 | 133 | { |
| 134 | - $this->caller = (null !== $caller) ? (string)$caller : null; |
|
| 134 | + $this->caller = (null !== $caller) ? (string) $caller : null; |
|
| 135 | 135 | |
| 136 | 136 | return $this; |
| 137 | 137 | } |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | throw new ArgumentNotNumericException($errMsg); |
| 185 | 185 | } |
| 186 | 186 | |
| 187 | - $this->entryId = (integer)$entryId; |
|
| 187 | + $this->entryId = (integer) $entryId; |
|
| 188 | 188 | |
| 189 | 189 | return $this; |
| 190 | 190 | } |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $id); |
| 236 | 236 | throw new ArgumentNotNumericException($errMsg); |
| 237 | 237 | } |
| 238 | - $this->id = (integer)$id; |
|
| 238 | + $this->id = (integer) $id; |
|
| 239 | 239 | return $this; |
| 240 | 240 | } |
| 241 | 241 | |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | */ |
| 258 | 258 | public function setOwner($owner) |
| 259 | 259 | { |
| 260 | - $this->owner = (string)$owner; |
|
| 260 | + $this->owner = (string) $owner; |
|
| 261 | 261 | return $this; |
| 262 | 262 | } |
| 263 | 263 | |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | */ |
| 326 | 326 | public function setStatus($status) |
| 327 | 327 | { |
| 328 | - $this->status = (string)$status; |
|
| 328 | + $this->status = (string) $status; |
|
| 329 | 329 | |
| 330 | 330 | return $this; |
| 331 | 331 | } |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $stepId); |
| 355 | 355 | throw new ArgumentNotNumericException($errMsg); |
| 356 | 356 | } |
| 357 | - $this->stepId = (integer)$stepId; |
|
| 357 | + $this->stepId = (integer) $stepId; |
|
| 358 | 358 | |
| 359 | 359 | return $this; |
| 360 | 360 | } |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/old-town-workflow |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/old-town-workflow |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\PhpUnit\Utils; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -49,9 +49,9 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function __construct($id, $workflowName, $state) |
| 51 | 51 | { |
| 52 | - $this->id = (integer)$id; |
|
| 53 | - $this->state = (integer)$state; |
|
| 54 | - $this->workflowName = (string)$workflowName; |
|
| 52 | + $this->id = (integer) $id; |
|
| 53 | + $this->state = (integer) $state; |
|
| 54 | + $this->workflowName = (string) $workflowName; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $id); |
| 80 | 80 | throw new ArgumentNotNumericException($errMsg); |
| 81 | 81 | } |
| 82 | - $this->id = (integer)$id; |
|
| 82 | + $this->id = (integer) $id; |
|
| 83 | 83 | |
| 84 | 84 | return $this; |
| 85 | 85 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function setInitialized($initialized) |
| 94 | 94 | { |
| 95 | - $this->initialized = (boolean)$initialized; |
|
| 95 | + $this->initialized = (boolean) $initialized; |
|
| 96 | 96 | |
| 97 | 97 | return $this; |
| 98 | 98 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $state); |
| 132 | 132 | throw new ArgumentNotNumericException($errMsg); |
| 133 | 133 | } |
| 134 | - $this->state = (integer)$state; |
|
| 134 | + $this->state = (integer) $state; |
|
| 135 | 135 | |
| 136 | 136 | return $this; |
| 137 | 137 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | public function setWorkflowName($workflowName) |
| 157 | 157 | { |
| 158 | - $this->workflowName = (string)$workflowName; |
|
| 158 | + $this->workflowName = (string) $workflowName; |
|
| 159 | 159 | |
| 160 | 160 | return $this; |
| 161 | 161 | } |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/old-town-workflow |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/old-town-workflow |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\TransientVars; |
| 7 | 7 | |
| 8 | 8 | use ArrayObject; |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/old-town-workflow |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/old-town-workflow |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\Spi; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\Exception\StoreException; |
@@ -19,13 +19,13 @@ discard block |
||
| 19 | 19 | interface WorkflowStoreInterface |
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | - * Устанавливает состояние для текущего workflow |
|
| 23 | - * |
|
| 24 | - * @param integer $entryId id workflow |
|
| 25 | - * @param integer $state id состояния в которое переводится сущность workflow |
|
| 26 | - * @return void |
|
| 27 | - * @throws StoreException |
|
| 28 | - */ |
|
| 22 | + * Устанавливает состояние для текущего workflow |
|
| 23 | + * |
|
| 24 | + * @param integer $entryId id workflow |
|
| 25 | + * @param integer $state id состояния в которое переводится сущность workflow |
|
| 26 | + * @return void |
|
| 27 | + * @throws StoreException |
|
| 28 | + */ |
|
| 29 | 29 | public function setEntryState($entryId, $state); |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | if (null === $className) { |
| 108 | - $type = (string)$type; |
|
| 108 | + $type = (string) $type; |
|
| 109 | 109 | $errMsg = sprintf( |
| 110 | 110 | 'Нет типа(%s) или аргумента class.name', |
| 111 | 111 | $type |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | if (null === $className) { |
| 155 | - $type = (string)$type; |
|
| 155 | + $type = (string) $type; |
|
| 156 | 156 | $errMsg = sprintf( |
| 157 | 157 | 'Нет типа(%s) или аргумента class.name', |
| 158 | 158 | $type |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | if (null === $className) { |
| 203 | - $type = (string)$type; |
|
| 203 | + $type = (string) $type; |
|
| 204 | 204 | $errMsg = sprintf( |
| 205 | 205 | 'Нет типа(%s) или аргумента class.name', |
| 206 | 206 | $type |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | if (null === $className) { |
| 251 | - $type = (string)$type; |
|
| 251 | + $type = (string) $type; |
|
| 252 | 252 | $errMsg = sprintf( |
| 253 | 253 | 'Нет типа(%s) или аргумента class.name', |
| 254 | 254 | $type |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/old-town-workflow |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/old-town-workflow |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\PhpUnitTest\Loader; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: shirshov |
|
| 5 | - * Date: 11.11.15 |
|
| 6 | - * Time: 16:24 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: shirshov |
|
| 5 | + * Date: 11.11.15 |
|
| 6 | + * Time: 16:24 |
|
| 7 | + */ |
|
| 8 | 8 | namespace OldTown\Workflow\Util; |
| 9 | 9 | |
| 10 | 10 | use OldTown\PropertySet\PropertySetInterface; |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | return null; |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - $property = (string)$property; |
|
| 133 | + $property = (string) $property; |
|
| 134 | 134 | |
| 135 | 135 | $st = explode('.', $property); |
| 136 | 136 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/old-town-workflow |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/old-town-workflow |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\PhpUnitTest\Loader; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |