Skip to content

Commit 627b69b

Browse files
committed
Code cleanup (PSR-2) and some refactoring
- Basic syntax checking and cleanup - Changed code for a little more consistency
1 parent f4de5b5 commit 627b69b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Codeception/Module/Redis.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Codeception\Module;
44

5+
use Codeception\Module as CodeceptionModule;
6+
use Codeception\TestCase;
57
use Codeception\Exception\ModuleException as ModuleException;
68
use Codeception\Lib\Driver\Redis as RedisDriver;
79

@@ -32,7 +34,7 @@
3234
*
3335
* @author judgedim
3436
*/
35-
class Redis extends \Codeception\Module
37+
class Redis extends CodeceptionModule
3638
{
3739
protected $config = [
3840
'cleanup' => true
@@ -53,18 +55,17 @@ public function _initialize()
5355
} catch (\Exception $e) {
5456
throw new ModuleException(__CLASS__, $e->getMessage());
5557
}
56-
5758
}
5859

59-
public function _before(\Codeception\TestCase $test)
60+
public function _before(TestCase $test)
6061
{
6162
if ($this->config['cleanup']) {
6263
$this->cleanup();
6364
}
6465
parent::_before($test);
6566
}
6667

67-
public function _after(\Codeception\TestCase $test)
68+
public function _after(TestCase $test)
6869
{
6970
parent::_after($test);
7071
}
@@ -85,5 +86,4 @@ protected function cleanup()
8586
throw new ModuleException(__CLASS__, $e->getMessage());
8687
}
8788
}
88-
8989
}

0 commit comments

Comments
 (0)