@@ -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\PhpUnit\Utils; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -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; |
@@ -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; |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $categoryName = 'OSWorkflow'; |
53 | 53 | |
54 | 54 | if (array_key_exists('Category', $args)) { |
55 | - $categoryName = (string)$args['Category']; |
|
55 | + $categoryName = (string) $args['Category']; |
|
56 | 56 | } |
57 | 57 | $category = "{$categoryName}.{$workflowName}"; |
58 | 58 |
@@ -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; |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | */ |
254 | 254 | public function setContextParam($name, $contextParam) |
255 | 255 | { |
256 | - $name = (string)$name; |
|
256 | + $name = (string) $name; |
|
257 | 257 | $this->contextParams[$name] = $contextParam; |
258 | 258 | |
259 | 259 | return $this; |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | |
383 | 383 | |
384 | 384 | $source = $this->source; |
385 | - $executor = function (array $args = []) use ($source) { |
|
385 | + $executor = function(array $args = []) use ($source) { |
|
386 | 386 | extract($args); |
387 | 387 | ob_start(); |
388 | 388 | $result = eval($source); |
@@ -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; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $script = array_key_exists(static::PHP_SCRIPT, $args) ? $args[static::PHP_SCRIPT] : ''; |
34 | 34 | |
35 | 35 | /**@var WorkflowContextInterface $context */ |
36 | - $context = $transientVars->offsetExists('context') ? $transientVars['context'] : null; |
|
36 | + $context = $transientVars->offsetExists('context') ? $transientVars['context'] : null; |
|
37 | 37 | |
38 | 38 | /**@var WorkflowEntryInterface $entry */ |
39 | 39 | $entry = $transientVars->offsetExists('entry') ? $transientVars['entry'] : null; |
@@ -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; |