Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 1405643

Browse files
committed
Fixed CS
1 parent b3580a8 commit 1405643

File tree

5 files changed

+28
-32
lines changed

5 files changed

+28
-32
lines changed

src/Behat/YiiExtension/Context/Initializer/YiiAwareInitializer.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?php
22

3-
namespace Behat\YiiExtension\Context\Initializer;
4-
5-
use Behat\Behat\Context\Initializer\InitializerInterface,
6-
Behat\Behat\Context\ContextInterface;
7-
8-
use Behat\YiiExtension\Context\YiiAwareContextInterface;
9-
103
/*
11-
* This file is part of the Behat\YiiExtension.
4+
* This file is part of the Behat\YiiExtension
5+
*
126
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
137
*
14-
* For the full copyright and license information, please view the LICENSE
15-
* file that was distributed with this source code.
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
1610
*/
1711

12+
namespace Behat\YiiExtension\Context\Initializer;
13+
14+
use Behat\Behat\Context\Initializer\InitializerInterface;
15+
use Behat\Behat\Context\ContextInterface;
16+
use Behat\YiiExtension\Context\YiiAwareContextInterface;
17+
1818
/**
1919
* Yii aware contexts initializer.
2020
* Sets Yii web app instance to the YiiAware contexts.

src/Behat/YiiExtension/Context/YiiAwareContextInterface.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22

3-
namespace Behat\YiiExtension\Context;
4-
53
/*
6-
* This file is part of the Behat\YiiExtension.
4+
* This file is part of the Behat\YiiExtension
5+
*
76
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
87
*
9-
* For the full copyright and license information, please view the LICENSE
10-
* file that was distributed with this source code.
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
1110
*/
1211

12+
namespace Behat\YiiExtension\Context;
13+
1314
/**
1415
* Yii aware interface for contexts.
1516
*

src/Behat/YiiExtension/Extension.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
<?php
22

3-
namespace Behat\YiiExtension;
4-
5-
use Symfony\Component\Config\FileLocator,
6-
Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition,
7-
Symfony\Component\DependencyInjection\ContainerBuilder,
8-
Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
9-
10-
use Behat\Behat\Extension\Extension as BaseExtension;
11-
123
/*
134
* This file is part of the Behat\YiiExtension
145
*
@@ -18,6 +9,14 @@
189
* with this source code in the file LICENSE.
1910
*/
2011

12+
namespace Behat\YiiExtension;
13+
14+
use Behat\Behat\Extension\Extension as BaseExtension;
15+
use Symfony\Component\Config\FileLocator;
16+
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
17+
use Symfony\Component\DependencyInjection\ContainerBuilder;
18+
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
19+
2120
/**
2221
* Yii extension for Behat class.
2322
*

src/Behat/YiiExtension/services/sessions/wunit.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
<container xmlns="http://symfony.com/schema/dic/services"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
5-
<parameters>
65

6+
<parameters>
77
<parameter key="behat.mink.driver.wunit.class">Behat\Mink\Driver\WUnitDriver</parameter>
88
<parameter key="behat.yii_extension.web_application_factory">\WUnit\WUnit</parameter>
9-
109
</parameters>
11-
<services>
1210

11+
<services>
1312
<service id="behat.mink.session.wunit" class="%behat.mink.session.class%">
1413
<argument type="service">
1514
<service class="%behat.mink.driver.wunit.class%">
@@ -18,6 +17,5 @@
1817
<argument type="service" id="behat.mink.selector.handler" />
1918
<tag name="behat.mink.session" alias="wunit" />
2019
</service>
21-
2220
</services>
2321
</container>

src/Behat/YiiExtension/services/yii.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@
22
<container xmlns="http://symfony.com/schema/dic/services"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
5-
<parameters>
65

6+
<parameters>
77
<parameter key="behat.yii_extension.context.initializer.class">Behat\YiiExtension\Context\Initializer\YiiAwareInitializer</parameter>
88
<parameter key="behat.yii_extension.framework_script"></parameter>
99
<parameter key="behat.yii_extension.config_script"></parameter>
1010
<parameter key="behat.yii_extension.web_application_factory">\Yii</parameter>
11-
1211
</parameters>
13-
<services>
1412

13+
<services>
1514
<service id="behat.yii_extension.context.initializer" class="%behat.yii_extension.context.initializer.class%">
1615
<argument>%behat.yii_extension.framework_script%</argument>
1716
<argument>%behat.yii_extension.config_script%</argument>
1817
<argument>%behat.yii_extension.web_application_factory%</argument>
1918
<tag name="behat.context.initializer" />
2019
</service>
21-
2220
</services>
2321
</container>

0 commit comments

Comments
 (0)