Test Failed
Push — master ( 16012d...8ab042 )
by Daniel
02:47
created
app/core/bootstrap.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
 use Whoops\Handler\PrettyPageHandler;
31 31
 use Whoops\Run as Whoops;
32 32
 use Vertex\Core\Router;
33
-use Vertex\Core\View;
34 33
 use Dotenv\Dotenv;
35 34
 
36 35
 /*
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 */
80 80
 
81 81
 $router = new Router(
82
-    FastRoute\simpleDispatcher(function (FastRoute\RouteCollector $route) {
82
+    FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $route) {
83 83
         require __DIR__.'/../routes.php';
84 84
     })
85 85
 );
Please login to merge, or discard this patch.
app/core/traits/SingletonTrait.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,23 +4,23 @@
 block discarded – undo
4 4
 
5 5
 trait SingletonTrait
6 6
 {
7
-	/**
8
-	 * The instance of the class.
9
-	 * 
10
-	 * @var object
11
-	 */
7
+    /**
8
+     * The instance of the class.
9
+     * 
10
+     * @var object
11
+     */
12 12
     protected static $instance;
13 13
   	
14
-  	/**
15
-  	 * Fetch the instance of the class.
16
-  	 *
17
-	 * @var mixed $parameters
18
-  	 * @return object
19
-  	 */
14
+        /**
15
+         * Fetch the instance of the class.
16
+         *
17
+         * @var mixed $parameters
18
+         * @return object
19
+         */
20 20
     public static function singleton(...$parameters)
21 21
     {
22 22
         if (!isset(self::$instance)) {
23
-        	$class = __CLASS__;
23
+            $class = __CLASS__;
24 24
             self::$instance = new $class(...$parameters);
25 25
         }
26 26
         return self::$instance;
Please login to merge, or discard this patch.
app/core/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
         /* its a class */
81 81
         list($class, $method) = explode("@", $handler, 2);
82
-        $class = $this->namespace . $class;
82
+        $class = $this->namespace.$class;
83 83
         return $this->handle([new $class, $method], $parameters);        
84 84
     }
85 85
 
Please login to merge, or discard this patch.
app/core/Model.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 
5 5
 abstract class Model
6 6
 {
7
-	/**
8
-	 * The database instance
7
+    /**
8
+     * The database instance
9 9
      * 
10
-	 * @var PDO
11
-	 */
10
+     * @var PDO
11
+     */
12 12
     protected $database;
13 13
 
14 14
     /**
Please login to merge, or discard this patch.
app/core/Redirect.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public static function to($url)
14 14
     {
15
-	self::createRedirect($url);
15
+    self::createRedirect($url);
16 16
     }
17 17
 
18 18
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public static function createRedirect($location)
35 35
     {
36
-        header('location:' . $location);
36
+        header('location:'.$location);
37 37
         die;	
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
app/core/Database.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             return false;
25 25
         }
26 26
 
27
-        try{
27
+        try {
28 28
             $instance = new PDO($this->loadConfig($config), $config['mysql']['username'], $config['mysql']['password']);
29 29
             $instance->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
30 30
             $instance->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
     {
45 45
         switch ($config['connection']) {
46 46
             case 'mysql':
47
-                return $connection = 'mysql:host=' . $config['mysql']['host'] . ';dbname=' . $config['mysql']['database'];
47
+                return $connection = 'mysql:host='.$config['mysql']['host'].';dbname='.$config['mysql']['database'];
48 48
             case 'sqlite':
49
-                return $connection = 'sqlite:' . __DIR__ . '/database/' . $config['sqlite']['database'] . '.sqlite';
49
+                return $connection = 'sqlite:'.__DIR__.'/database/'.$config['sqlite']['database'].'.sqlite';
50 50
             default:
51 51
                 throw new Exception('Connection type not supported');
52 52
         }
Please login to merge, or discard this patch.
app/core/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
      */
14 14
     public static function get(string $file)
15 15
     {
16
-        return require __DIR__.'/../config/' . $file . '.php';
16
+        return require __DIR__.'/../config/'.$file.'.php';
17 17
     }
18 18
 }
Please login to merge, or discard this patch.