Completed
Push — develop ( b9059c...aba1ed )
by Oyebanji Jacob
02:10
created
test/ModelTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,17 +4,17 @@  discard block
 block discarded – undo
4 4
 
5 5
 class ModelTest extends PHPUnit_Framework_TestCase
6 6
 {
7
-	protected $model;
7
+    protected $model;
8 8
 
9
-	public function setUp(){
10
-		$this->model =  $this->getMockForAbstractClass('Pyjac\ORM\Model');
11
-	}
9
+    public function setUp(){
10
+        $this->model =  $this->getMockForAbstractClass('Pyjac\ORM\Model');
11
+    }
12 12
 
13
-	public function testGetTableNameReturnsCorrectTableName()
13
+    public function testGetTableNameReturnsCorrectTableName()
14 14
     {
15 15
         $this->model->expects($this->any())
16
-             ->method('getTableName')
17
-             ->will($this->returnValue(strtolower(get_class($this->model).'s')));
16
+                ->method('getTableName')
17
+                ->will($this->returnValue(strtolower(get_class($this->model).'s')));
18 18
 
19 19
         $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model).'s'));
20 20
     }
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
     public function testGetTableNameReturnsCorrectTableName2()
23 23
     {
24 24
         $this->model->expects($this->any())
25
-             ->method('getTableName')
26
-             ->will($this->returnValue(strtolower(get_class($this->model).'s')));
25
+                ->method('getTableName')
26
+                ->will($this->returnValue(strtolower(get_class($this->model).'s')));
27 27
 
28 28
         $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model).'s'));
29 29
     }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,26 +6,26 @@
 block discarded – undo
6 6
 {
7 7
 	protected $model;
8 8
 
9
-	public function setUp(){
10
-		$this->model =  $this->getMockForAbstractClass('Pyjac\ORM\Model');
9
+	public function setUp() {
10
+		$this->model = $this->getMockForAbstractClass('Pyjac\ORM\Model');
11 11
 	}
12 12
 
13 13
 	public function testGetTableNameReturnsCorrectTableName()
14 14
     {
15 15
         $this->model->expects($this->any())
16 16
              ->method('getTableName')
17
-             ->will($this->returnValue(strtolower(get_class($this->model).'s')));
17
+             ->will($this->returnValue(strtolower(get_class($this->model) . 's')));
18 18
 
19
-        $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model).'s'));
19
+        $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model) . 's'));
20 20
     }
21 21
 
22 22
     public function testGetTableNameReturnsCorrectTableName2()
23 23
     {
24 24
         $this->model->expects($this->any())
25 25
              ->method('getTableName')
26
-             ->will($this->returnValue(strtolower(get_class($this->model).'s')));
26
+             ->will($this->returnValue(strtolower(get_class($this->model) . 's')));
27 27
 
28
-        $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model).'s'));
28
+        $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model) . 's'));
29 29
     }
30 30
 
31 31
 }
32 32
\ No newline at end of file
Please login to merge, or discard this patch.
src/DatabaseConnectionInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 interface DatabaseConnectionInterface 
6 6
 {
7
-	/**
7
+    /**
8 8
      * Get the instance of the class.
9 9
      *     
10 10
      * @return Pyjac\ORM\DatabaseConnection
Please login to merge, or discard this patch.