Passed
Push — master ( f8af17...9a58b8 )
by Francis
01:20
created
phpunit/RESTTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
    * @covers JWT::__construct
24 24
    */
25 25
   public static function setUpBeforeClass(): void {
26
-    self::$ci =& get_instance();
26
+    self::$ci = & get_instance();
27 27
     self::$ci->load->database('mysqli://root@localhost/test_db');
28 28
     self::$ci->load->helper("url");
29
-    $queries = explode("#@@@", file_get_contents(FCPATH . 'application/splints/' . self::PACKAGE . '/phpunit/database.sql'));
29
+    $queries = explode("#@@@", file_get_contents(FCPATH.'application/splints/'.self::PACKAGE.'/phpunit/database.sql'));
30 30
     self::assertTrue(count($queries) > 0);
31 31
     self::$ci->load->database();
32 32
     foreach ($queries as $query) {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     // However, for the purpose of this test, we are going to Hack Code CodeIgniter
43 43
     // with a Splint Config variable to allow us load config files from where
44 44
     // ever we want. This happens below.
45
-    self::$ci->load->add_package_path(APPPATH . 'splints/' . self::PACKAGE . "/phpunit/");
45
+    self::$ci->load->add_package_path(APPPATH.'splints/'.self::PACKAGE."/phpunit/");
46 46
     //self::$ci->config->set_item('st_config_path_prefix', '../splints/' . self::PACKAGE . "/phpunit/config/");
47 47
   }
48 48
   /**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     // Simulate Basic Authorization
55 55
     $_SERVER['PHP_AUTH_USER'] = "francis94c";
56 56
     $_SERVER['PHP_AUTH_PW'] = "0123456789";
57
-    self::$ci->load->splint(self::PACKAGE, '+REST', null, 'rest_' . $this->obj_count++);
57
+    self::$ci->load->splint(self::PACKAGE, '+REST', null, 'rest_'.$this->obj_count++);
58 58
     $this->assertEquals(1, self::$ci->{'rest_'.($this->obj_count - 1)}->userId);
59 59
   }
60 60
   /**
Please login to merge, or discard this patch.