Passed
Push — 1.0.0-dev ( 8edc19...2b6704 )
by nguereza
03:32
created
classes/controllers/Home.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,25 +1,25 @@
 block discarded – undo
1 1
 <?php
2
-	defined('ROOT_PATH') || exit('Access denied');
2
+    defined('ROOT_PATH') || exit('Access denied');
3 3
 
4
-	/**
5
-	 * 
6
-	 */
7
-	class Home extends Controller {
4
+    /**
5
+     * 
6
+     */
7
+    class Home extends Controller {
8 8
 
9
-		/**
10
-		 * the class constructor
11
-		 */
12
-		public function __construct() {
13
-			parent::__construct();
14
-		}
9
+        /**
10
+         * the class constructor
11
+         */
12
+        public function __construct() {
13
+            parent::__construct();
14
+        }
15 15
 
16
-		/**
17
-		 * The default method
18
-		 * @return null
19
-		 */
20
-		public function index() {
21
-			Loader::library('Assets');
22
-			Loader::library('Html');
23
-			$this->response->render('home');
24
-		}
25
-	}
16
+        /**
17
+         * The default method
18
+         * @return null
19
+         */
20
+        public function index() {
21
+            Loader::library('Assets');
22
+            Loader::library('Html');
23
+            $this->response->render('home');
24
+        }
25
+    }
Please login to merge, or discard this patch.
tests/hmvc/models/DBSessionModel.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@
 block discarded – undo
1 1
 <?php
2
-	class DBSessionModel extends DBSessionHandlerModel{
2
+    class DBSessionModel extends DBSessionHandlerModel{
3 3
 		
4
-		protected $_table = 'ses';
5
-		protected $primary_key = 's_id';
4
+        protected $_table = 'ses';
5
+        protected $primary_key = 's_id';
6 6
 		
7
-		protected $sessionTableColumns = array(
8
-			'sid' => 's_id', //VARCHAR(255)
9
-			'sdata' => 's_data', //TEXT
10
-			'stime' => 's_time', //unix timestamp (INT|BIGINT)
11
-			'shost' => 's_host', //VARCHAR(255)
12
-			'sip' => 's_ip', //VARCHAR(255) 
13
-			'sbrowser' => 's_browser', //VARCHAR(255) 
14
-			'skey' => 'test_id' //VARCHAR(255) 
15
-		);
7
+        protected $sessionTableColumns = array(
8
+            'sid' => 's_id', //VARCHAR(255)
9
+            'sdata' => 's_data', //TEXT
10
+            'stime' => 's_time', //unix timestamp (INT|BIGINT)
11
+            'shost' => 's_host', //VARCHAR(255)
12
+            'sip' => 's_ip', //VARCHAR(255) 
13
+            'sbrowser' => 's_browser', //VARCHAR(255) 
14
+            'skey' => 'test_id' //VARCHAR(255) 
15
+        );
16 16
 		
17
-		public function deleteByTime($time){
18
-			$this->getQueryBuilder()->from($this->_table)
19
-									->where('s_time', '<', $time);
20
-			$this->_database->delete();
21
-		}
17
+        public function deleteByTime($time){
18
+            $this->getQueryBuilder()->from($this->_table)
19
+                                    ->where('s_time', '<', $time);
20
+            $this->_database->delete();
21
+        }
22 22
 
23 23
 		
24
-		public function getKeyValue(){
25
-			$user_id = 0;
26
-			return $user_id;
27
-		}
28
-	}
29 24
\ No newline at end of file
25
+        public function getKeyValue(){
26
+            $user_id = 0;
27
+            return $user_id;
28
+        }
29
+    }
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
tests/tnhfw/classes/RequestTest.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-	use PHPUnit\Framework\TestCase;
3
+    use PHPUnit\Framework\TestCase;
4 4
 
5
-	class RequestTest extends TestCase
6
-	{	
5
+    class RequestTest extends TestCase
6
+    {	
7 7
 	
8
-		public static function setUpBeforeClass()
9
-		{
8
+        public static function setUpBeforeClass()
9
+        {
10 10
 		
11
-		}
11
+        }
12 12
 		
13
-		public static function tearDownAfterClass()
14
-		{
13
+        public static function tearDownAfterClass()
14
+        {
15 15
 			
16
-		}
16
+        }
17 17
 		
18
-		protected function setUp()
19
-		{
20
-		}
18
+        protected function setUp()
19
+        {
20
+        }
21 21
 
22
-		protected function tearDown()
23
-		{
24
-		}
22
+        protected function tearDown()
23
+        {
24
+        }
25 25
 		
26
-		public function testNotYet()
27
-		{
28
-			$this->markTestSkipped();
29
-		}
26
+        public function testNotYet()
27
+        {
28
+            $this->markTestSkipped();
29
+        }
30 30
 
31
-	}
32 31
\ No newline at end of file
32
+    }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
tests/tnhfw/classes/LoaderTest.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-	use PHPUnit\Framework\TestCase;
3
+    use PHPUnit\Framework\TestCase;
4 4
 
5
-	class LoaderTest extends TestCase
6
-	{	
5
+    class LoaderTest extends TestCase
6
+    {	
7 7
 	
8
-		public static function setUpBeforeClass()
9
-		{
8
+        public static function setUpBeforeClass()
9
+        {
10 10
 		
11
-		}
11
+        }
12 12
 		
13
-		public static function tearDownAfterClass()
14
-		{
13
+        public static function tearDownAfterClass()
14
+        {
15 15
 			
16
-		}
16
+        }
17 17
 		
18
-		protected function setUp()
19
-		{
20
-		}
18
+        protected function setUp()
19
+        {
20
+        }
21 21
 
22
-		protected function tearDown()
23
-		{
24
-		}
22
+        protected function tearDown()
23
+        {
24
+        }
25 25
 		
26
-		public function testNotYet()
27
-		{
28
-			$this->markTestSkipped();
29
-		}
26
+        public function testNotYet()
27
+        {
28
+            $this->markTestSkipped();
29
+        }
30 30
 
31
-	}
32 31
\ No newline at end of file
32
+    }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
tests/tnhfw/classes/SessionTest.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,33 +1,33 @@
 block discarded – undo
1 1
 <?php 
2
-	use PHPUnit\Framework\TestCase;
2
+    use PHPUnit\Framework\TestCase;
3 3
 
4
-	class SessionTest extends TestCase
5
-	{
4
+    class SessionTest extends TestCase
5
+    {
6 6
 		
7
-		public static function setUpBeforeClass()
8
-		{
7
+        public static function setUpBeforeClass()
8
+        {
9 9
 		
10
-		}
10
+        }
11 11
 		
12
-		public static function tearDownAfterClass()
13
-		{
12
+        public static function tearDownAfterClass()
13
+        {
14 14
 			
15
-		}
15
+        }
16 16
 	   
17 17
 		
18
-		protected function setUp()
19
-		{
20
-		}
18
+        protected function setUp()
19
+        {
20
+        }
21 21
 
22
-		protected function tearDown()
23
-		{
24
-		}
22
+        protected function tearDown()
23
+        {
24
+        }
25 25
 
26
-		// tests
27
-		public function testSomeFeature()
28
-		{
29
-			Session::set('foo', 'bar');
30
-			$this->assertEquals('bar', Session::get('foo'));
31
-			//$this->expectException(InvalidArgumentException::class);
32
-		}
33
-	}
34 26
\ No newline at end of file
27
+        // tests
28
+        public function testSomeFeature()
29
+        {
30
+            Session::set('foo', 'bar');
31
+            $this->assertEquals('bar', Session::get('foo'));
32
+            //$this->expectException(InvalidArgumentException::class);
33
+        }
34
+    }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
tests/tnhfw/classes/UrlTest.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-	use PHPUnit\Framework\TestCase;
3
+    use PHPUnit\Framework\TestCase;
4 4
 
5
-	class UrlTest extends TestCase
6
-	{	
5
+    class UrlTest extends TestCase
6
+    {	
7 7
 	
8
-		public static function setUpBeforeClass()
9
-		{
8
+        public static function setUpBeforeClass()
9
+        {
10 10
 		
11
-		}
11
+        }
12 12
 		
13
-		public static function tearDownAfterClass()
14
-		{
13
+        public static function tearDownAfterClass()
14
+        {
15 15
 			
16
-		}
16
+        }
17 17
 		
18
-		protected function setUp()
19
-		{
20
-		}
18
+        protected function setUp()
19
+        {
20
+        }
21 21
 
22
-		protected function tearDown()
23
-		{
24
-		}
22
+        protected function tearDown()
23
+        {
24
+        }
25 25
 		
26
-		public function testNotYet()
27
-		{
28
-			$this->markTestSkipped();
29
-		}
26
+        public function testNotYet()
27
+        {
28
+            $this->markTestSkipped();
29
+        }
30 30
 
31
-	}
32 31
\ No newline at end of file
32
+    }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
tests/tnhfw/classes/EventInfoTest.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -1,59 +1,59 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-	use PHPUnit\Framework\TestCase;
3
+    use PHPUnit\Framework\TestCase;
4 4
 
5
-	class EventInfoTest extends TestCase
6
-	{	
5
+    class EventInfoTest extends TestCase
6
+    {	
7 7
 	
8
-		public static function setUpBeforeClass()
9
-		{
8
+        public static function setUpBeforeClass()
9
+        {
10 10
 		
11
-		}
11
+        }
12 12
 		
13
-		public static function tearDownAfterClass()
14
-		{
13
+        public static function tearDownAfterClass()
14
+        {
15 15
 			
16
-		}
16
+        }
17 17
 		
18
-		protected function setUp()
19
-		{
20
-		}
18
+        protected function setUp()
19
+        {
20
+        }
21 21
 
22
-		protected function tearDown()
23
-		{
24
-		}
22
+        protected function tearDown()
23
+        {
24
+        }
25 25
 
26 26
 		
27 27
 		
28
-		public function testDefaultValue(){
29
-			$e = new EventInfo('foo');
30
-			$this->assertSame($e->name, 'foo');
31
-			$this->assertSame($e->payload, array());
32
-			$this->assertFalse($e->returnBack);
33
-			$this->assertFalse($e->stop);
34
-		}
35
-		
36
-		public function testPayloadValueIsSet(){
37
-			$e = new EventInfo('foo', array('bar'));
38
-			$this->assertSame($e->name, 'foo');
39
-			$this->assertSame($e->payload, array('bar'));
40
-			$this->assertFalse($e->returnBack);
41
-			$this->assertFalse($e->stop);
42
-		}
43
-		
44
-		public function testReturnBackValueIsSetToTrue(){
45
-			$e = new EventInfo('foo', array('bar'), true);
46
-			$this->assertSame($e->name, 'foo');
47
-			$this->assertSame($e->payload, array('bar'));
48
-			$this->assertTrue($e->returnBack);
49
-			$this->assertFalse($e->stop);
50
-		}
51
-		
52
-		public function testStopValueIsSetToTue(){
53
-			$e = new EventInfo('foo', array('bar'), true, true);
54
-			$this->assertSame($e->name, 'foo');
55
-			$this->assertSame($e->payload, array('bar'));
56
-			$this->assertTrue($e->returnBack);
57
-			$this->assertTrue($e->stop);
58
-		}
59
-	}
60 28
\ No newline at end of file
29
+        public function testDefaultValue(){
30
+            $e = new EventInfo('foo');
31
+            $this->assertSame($e->name, 'foo');
32
+            $this->assertSame($e->payload, array());
33
+            $this->assertFalse($e->returnBack);
34
+            $this->assertFalse($e->stop);
35
+        }
36
+		
37
+        public function testPayloadValueIsSet(){
38
+            $e = new EventInfo('foo', array('bar'));
39
+            $this->assertSame($e->name, 'foo');
40
+            $this->assertSame($e->payload, array('bar'));
41
+            $this->assertFalse($e->returnBack);
42
+            $this->assertFalse($e->stop);
43
+        }
44
+		
45
+        public function testReturnBackValueIsSetToTrue(){
46
+            $e = new EventInfo('foo', array('bar'), true);
47
+            $this->assertSame($e->name, 'foo');
48
+            $this->assertSame($e->payload, array('bar'));
49
+            $this->assertTrue($e->returnBack);
50
+            $this->assertFalse($e->stop);
51
+        }
52
+		
53
+        public function testStopValueIsSetToTue(){
54
+            $e = new EventInfo('foo', array('bar'), true, true);
55
+            $this->assertSame($e->name, 'foo');
56
+            $this->assertSame($e->payload, array('bar'));
57
+            $this->assertTrue($e->returnBack);
58
+            $this->assertTrue($e->stop);
59
+        }
60
+    }
61 61
\ No newline at end of file
Please login to merge, or discard this patch.
tests/tnhfw/classes/ModuleTest.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-	use PHPUnit\Framework\TestCase;
3
+    use PHPUnit\Framework\TestCase;
4 4
 
5
-	class LogTest extends TestCase
6
-	{	
5
+    class LogTest extends TestCase
6
+    {	
7 7
 	
8
-		public static function setUpBeforeClass()
9
-		{
8
+        public static function setUpBeforeClass()
9
+        {
10 10
 		
11
-		}
11
+        }
12 12
 		
13
-		public static function tearDownAfterClass()
14
-		{
13
+        public static function tearDownAfterClass()
14
+        {
15 15
 			
16
-		}
16
+        }
17 17
 		
18
-		protected function setUp()
19
-		{
20
-		}
18
+        protected function setUp()
19
+        {
20
+        }
21 21
 
22
-		protected function tearDown()
23
-		{
24
-		}
22
+        protected function tearDown()
23
+        {
24
+        }
25 25
 		
26
-		public function testNotYet()
27
-		{
28
-			$this->markTestSkipped();
29
-		}
26
+        public function testNotYet()
27
+        {
28
+            $this->markTestSkipped();
29
+        }
30 30
 
31
-	}
32 31
\ No newline at end of file
32
+    }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
tests/tnhfw/classes/models/ModelTest.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,31 +1,31 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-	use PHPUnit\Framework\TestCase;
3
+    use PHPUnit\Framework\TestCase;
4 4
 
5
-	class ModelTest extends TestCase
6
-	{	
5
+    class ModelTest extends TestCase
6
+    {	
7 7
 	
8
-		public static function setUpBeforeClass()
9
-		{
8
+        public static function setUpBeforeClass()
9
+        {
10 10
 		
11
-		}
11
+        }
12 12
 		
13
-		public static function tearDownAfterClass()
14
-		{
13
+        public static function tearDownAfterClass()
14
+        {
15 15
 			
16
-		}
16
+        }
17 17
 		
18
-		protected function setUp()
19
-		{
20
-		}
18
+        protected function setUp()
19
+        {
20
+        }
21 21
 
22
-		protected function tearDown()
23
-		{
24
-		}
22
+        protected function tearDown()
23
+        {
24
+        }
25 25
 		
26
-		public function testNotYet()
27
-		{
28
-			$this->markTestSkipped();
29
-		}
26
+        public function testNotYet()
27
+        {
28
+            $this->markTestSkipped();
29
+        }
30 30
 
31
-	}
32 31
\ No newline at end of file
32
+    }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.