@@ -111,7 +111,7 @@ |
||
111 | 111 | /** |
112 | 112 | * Returns base bundle list |
113 | 113 | * |
114 | - * @return array |
|
114 | + * @return \Symfony\Bundle\FrameworkBundle\FrameworkBundle[] |
|
115 | 115 | */ |
116 | 116 | protected function getBaseBundles() |
117 | 117 | { |
@@ -65,14 +65,14 @@ discard block |
||
65 | 65 | $this->setRootDir($rootDir); |
66 | 66 | |
67 | 67 | $this->configDir = realpath($configDir); |
68 | - if (!is_dir($this->configDir . '/' . $testCase)) { |
|
68 | + if (!is_dir($this->configDir.'/'.$testCase)) { |
|
69 | 69 | throw new \InvalidArgumentException(sprintf('The test case "%s" does not exist.', $testCase)); |
70 | 70 | } |
71 | 71 | $this->testCase = $testCase; |
72 | 72 | |
73 | 73 | $fs = new Filesystem(); |
74 | 74 | if (!$fs->isAbsolutePath($rootConfig) && |
75 | - !file_exists($rootConfig = $this->configDir . '/' . $testCase . '/' . $rootConfig)) { |
|
75 | + !file_exists($rootConfig = $this->configDir.'/'.$testCase.'/'.$rootConfig)) { |
|
76 | 76 | throw new \InvalidArgumentException(sprintf('The root config "%s" does not exist.', $rootConfig)); |
77 | 77 | } |
78 | 78 | $this->rootConfig = $rootConfig; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | { |
128 | 128 | $bundles = array(); |
129 | 129 | $baseBundles = $this->getBaseBundles(); |
130 | - if (file_exists($filename = $this->configDir . '/' . $this->testCase . '/bundles.php')) { |
|
130 | + if (file_exists($filename = $this->configDir.'/'.$this->testCase.'/bundles.php')) { |
|
131 | 131 | $bundles = include $filename; |
132 | 132 | } |
133 | 133 | return array_merge($baseBundles, $bundles); |
@@ -96,7 +96,7 @@ |
||
96 | 96 | |
97 | 97 | /** |
98 | 98 | * @param ContainerInterface $container |
99 | - * @param array|string|false $fixturesPath |
|
99 | + * @param string $fixturesPath |
|
100 | 100 | * @param string $em |
101 | 101 | * @param bool|true $append |
102 | 102 | * @return array |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | // load fixtures |
52 | 52 | $fixturesBundle = new ClientBundle(); |
53 | - $fixturesPath = $fixturesBundle->getPath() . '/DataFixtures/ORM'; |
|
53 | + $fixturesPath = $fixturesBundle->getPath().'/DataFixtures/ORM'; |
|
54 | 54 | $this->loadFixtures($this->client->getContainer(), $fixturesPath); |
55 | 55 | } |
56 | 56 | |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | "app_name" => "ScheduleCaseTest", |
68 | 68 | "test_case" => "ScheduleCase", |
69 | 69 | "root_config" => "config.yml", |
70 | - "config_dir" => __DIR__ . "/Configuration", |
|
71 | - "root_dir" => __DIR__ . "/Configuration/ScheduleCase", |
|
70 | + "config_dir" => __DIR__."/Configuration", |
|
71 | + "root_dir" => __DIR__."/Configuration/ScheduleCase", |
|
72 | 72 | "environment" => "test", |
73 | 73 | "debug" => false |
74 | 74 | ) |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $event->expects(self::never())->method("setBlocked"); |
77 | 77 | |
78 | 78 | $guard->registerGuardExpression("eventName", "workflow", "expression"); |
79 | - $guard->guardTransition($event ,"eventName"); |
|
79 | + $guard->guardTransition($event, "eventName"); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $logger->expects($this->exactly($loggerInvocationCount))->method("debug"); |
114 | 114 | |
115 | 115 | $guard->registerGuardExpression("eventName", "workflow", $expression); |
116 | - $guard->guardTransition($event ,"eventName"); |
|
116 | + $guard->guardTransition($event, "eventName"); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | public function expressionProvider() |
@@ -135,7 +135,7 @@ |
||
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
138 | - * @return \PHPUnit_Framework_MockObject_MockObject|Registry |
|
138 | + * @return Registry |
|
139 | 139 | */ |
140 | 140 | private function prepareValidWorkflowRegistryMock() |
141 | 141 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | "app_name" => "EventTriggerWithGuardsCaseTest", |
37 | 37 | "test_case" => "EventTriggerWithGuardsCase", |
38 | 38 | "root_config" => "config.yml", |
39 | - "config_dir" => __DIR__ . "/Configuration", |
|
39 | + "config_dir" => __DIR__."/Configuration", |
|
40 | 40 | "environment" => "test", |
41 | 41 | "debug" => false |
42 | 42 | ) |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * Workflow registry definition id |
27 | 27 | */ |
28 | - const WORKFLOW_REGISTRY_ID= 'workflow.registry'; |
|
28 | + const WORKFLOW_REGISTRY_ID = 'workflow.registry'; |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * Workflow id prefix used in main workflow bundle |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $workflowReference = $callArgs[0]; |
72 | 72 | $workflowSupportedClass = $callArgs[1]; |
73 | 73 | |
74 | - $workflowIdWithPrefix = (string) $workflowReference; |
|
74 | + $workflowIdWithPrefix = (string) $workflowReference; |
|
75 | 75 | if (substr($workflowIdWithPrefix, 0, strlen(self::WORKFLOW_ID_PREFIX)) != self::WORKFLOW_ID_PREFIX) { |
76 | 76 | throw new RuntimeException( |
77 | 77 | sprintf( |
@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | $configuration = $this->getConfiguration($config, $container); |
34 | 34 | $config = $this->processConfiguration($configuration, $config); |
35 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
35 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
36 | 36 | $loader->load('applier.xml'); |
37 | 37 | |
38 | 38 | $this->registerSubjectManipulatorConfiguration($loader, $container, $config['subject_manipulator']); |
@@ -20,8 +20,8 @@ |
||
20 | 20 | */ |
21 | 21 | class WorkflowExtensionsBundle extends Bundle |
22 | 22 | { /** |
23 | - * {@inheritdoc} |
|
24 | - */ |
|
23 | + * {@inheritdoc} |
|
24 | + */ |
|
25 | 25 | public function build(ContainerBuilder $container) |
26 | 26 | { |
27 | 27 | parent::build($container); |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Doctrine\ORM\EntityRepository; |
15 | 15 | use Gtt\Bundle\WorkflowExtensionsBundle\Entity\ScheduledJob; |
16 | 16 | use Gtt\Bundle\WorkflowExtensionsBundle\Exception\NonUniqueReschedulabeJobFoundException; |
17 | -use Gtt\Bundle\WorkflowExtensionsBundle\Schedule\Action\ScheduledAction; |
|
18 | 17 | use JMS\JobQueueBundle\Entity\Job; |
19 | 18 | |
20 | 19 | /** |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Gtt\Bundle\WorkflowExtensionsBundle\Action\Registry; |
18 | 18 | use Gtt\Bundle\WorkflowExtensionsBundle\Tests\Action\Reference\ContainerAwareActionReferenceInterface; |
19 | 19 | use Gtt\Bundle\WorkflowExtensionsBundle\WorkflowContext; |
20 | -use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
|
21 | 20 | use Symfony\Component\DependencyInjection\ContainerInterface; |
22 | 21 | use Symfony\Component\Workflow\Workflow; |
23 | 22 |