Completed
Push — master ( ef1304...f41bb0 )
by Ingo
02:16
created
src/SilverStripe/BehatExtension/Context/SilverStripeContext.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 	 * When using the "data-title" attribute, ensure not to include double quotes.
135 135
 	 *
136 136
 	 * @param String $region Region name or CSS selector
137
-	 * @return MinkElement|null
137
+	 * @return \Behat\Mink\Element\NodeElement
138 138
 	 */
139 139
 	public function getRegionObj($region) {
140 140
 		// Try to find regions directly by CSS selector.
Please login to merge, or discard this patch.
Unused Use Statements   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,21 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\BehatExtension\Context;
4 4
 
5
-use Behat\Behat\Context\Step,
6
-	Behat\Behat\Event\FeatureEvent,
7
-	Behat\Behat\Event\ScenarioEvent,
8
-	Behat\Behat\Event\SuiteEvent;
9
-use Behat\Gherkin\Node\PyStringNode;
5
+use Behat\Behat\Context\Step;
6
+use Behat\Behat\Event\ScenarioEvent;
10 7
 use Behat\MinkExtension\Context\MinkContext;
11
-use Behat\Mink\Driver\GoutteDriver,
12
-	Behat\Mink\Driver\Selenium2Driver,
13
-	Behat\Mink\Exception\UnsupportedDriverActionException,
14
-	Behat\Mink\Exception\ElementNotFoundException;
15
-
8
+use Behat\Mink\Driver\GoutteDriver;
9
+use Behat\Mink\Driver\Selenium2Driver;
10
+use Behat\Mink\Exception\UnsupportedDriverActionException;
11
+use Behat\Mink\Exception\ElementNotFoundException;
16 12
 use SilverStripe\BehatExtension\Context\SilverStripeAwareContextInterface;
17 13
 
18
-use Symfony\Component\Yaml\Yaml;
19
-
20 14
 // Mink etc.
21 15
 require_once 'vendor/autoload.php';
22 16
 
Please login to merge, or discard this patch.
src/SilverStripe/BehatExtension/Extension.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-     * @return array
67
+     * @return Compiler\CoreInitializationPass[]
68 68
      */
69 69
     public function getCompilerPasses()
70 70
     {
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,11 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\BehatExtension;
4 4
 
5
-use Symfony\Component\Config\FileLocator,
6
-    Symfony\Component\DependencyInjection\ContainerBuilder,
7
-    Symfony\Component\DependencyInjection\Loader\YamlFileLoader,
8
-    Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
9
-
5
+use Symfony\Component\Config\FileLocator;
6
+use Symfony\Component\DependencyInjection\ContainerBuilder;
7
+use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
8
+use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
10 9
 use Behat\Behat\Extension\ExtensionInterface;
11 10
 
12 11
 /*
Please login to merge, or discard this patch.
src/SilverStripe/BehatExtension/Compiler/CoreInitializationPass.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\BehatExtension\Compiler;
4 4
 
5
-use Symfony\Component\DependencyInjection\ContainerBuilder,
6
-    Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
5
+use Symfony\Component\DependencyInjection\ContainerBuilder;
6
+use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
7 7
 
8 8
 /**
9 9
  * Behat\SilverStripe container compilation pass.
Please login to merge, or discard this patch.