Completed
Push — master ( 8aa2a3...0dd344 )
by Greg
04:00
created
src/DataProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,12 +54,12 @@
 block discarded – undo
54 54
                         ]);
55 55
                         $dataTest->getMetadata()->setCurrent(['actor' => $testActor, 'example' => $example]);
56 56
                         $step = new Comment('', $dataTest->getMetadata()->getCurrent('example'));
57
-                        $dataTest->getScenario()->setFeature($dataTest->getSpecFromMethod() . ' | '. $step->getArgumentsAsString(100));
57
+                        $dataTest->getScenario()->setFeature($dataTest->getSpecFromMethod() . ' | ' . $step->getArgumentsAsString(100));
58 58
                         $groups = Annotation::forMethod($testClass, $testMethod)->fetchAll('group');
59 59
                         $dataProvider->addTest($dataTest, $groups);
60 60
                     }
61 61
                     $tests[$id] = $dataProvider;
62
-                } catch(\Exception $e) {
62
+                } catch (\Exception $e) {
63 63
                     throw new TestParseException(
64 64
                         $testFile, "DataProvider for ${testClass}->${testMethod} is invalid or not callable"
65 65
                         . PHP_EOL .
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@  discard block
 block discarded – undo
12 12
 
13 13
 class DataProvider extends \Codeception\Platform\Extension
14 14
 {
15
-  // list events to listen to
16
-  public static $events = array(
15
+    // list events to listen to
16
+    public static $events = array(
17 17
     //run before any test`
18 18
     'suite.before' => 'before'
19
-  );
19
+    );
20 20
 
21
-  public function before(\Codeception\Event\SuiteEvent $se)
22
-  {
21
+    public function before(\Codeception\Event\SuiteEvent $se)
22
+    {
23 23
     $suite = $se->getSuite();
24 24
     $tests = $suite->tests();
25 25
     foreach ($tests as $id => $test) {
@@ -70,6 +70,6 @@  discard block
 block discarded – undo
70 70
         }
71 71
     }
72 72
     $suite->setTests($tests);
73
-  }
73
+    }
74 74
 
75 75
 }
Please login to merge, or discard this patch.