Completed
Push — master ( 2a34d4...10baf1 )
by Adriel
08:49
created
Core/Config.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
     private $config_path;
10 10
 
11 11
     public function __construct() {
12
-		$this->config_array = [];
13
-		$this->config_path = ROOT_APP.'Config'.DS;
14
-		$this->make();
12
+        $this->config_array = [];
13
+        $this->config_path = ROOT_APP.'Config'.DS;
14
+        $this->make();
15 15
     }
16 16
     /**
17 17
      * @return Config
@@ -23,20 +23,20 @@  discard block
 block discarded – undo
23 23
         return self::$instance;
24 24
     }
25 25
 
26
-	/**
27
-	 * @param $key
28
-	 * @param $value
29
-	 */
30
-	public function set($key, $value) {
26
+    /**
27
+     * @param $key
28
+     * @param $value
29
+     */
30
+    public function set($key, $value) {
31 31
         $this->config_array[$key] = $value;
32 32
     }
33 33
 
34
-	/**
35
-	 * @param $keys
36
-	 *
37
-	 * @return array|mixed|null
38
-	 */
39
-	public static function get($keys) {
34
+    /**
35
+     * @param $keys
36
+     *
37
+     * @return array|mixed|null
38
+     */
39
+    public static function get($keys) {
40 40
         $keys = explode('.', $keys);
41 41
         $tmp = self::getInstance()->config_array;
42 42
         foreach ($keys as $key) {
@@ -45,19 +45,19 @@  discard block
 block discarded – undo
45 45
         return $tmp;
46 46
     }
47 47
 
48
-	/**
49
-	 * @param $array
50
-	 */
51
-	public function addConfigs($array) {
48
+    /**
49
+     * @param $array
50
+     */
51
+    public function addConfigs($array) {
52 52
         foreach ($array as $key => $value) {
53 53
             $this->config_array[$key] = $value;
54 54
         }
55 55
     }
56 56
 
57
-	/**
58
-	 * @return array
59
-	 */
60
-	public function make() {
57
+    /**
58
+     * @return array
59
+     */
60
+    public function make() {
61 61
         $view 		= include $this->config_path.'views.php';
62 62
         $app 		= include $this->config_path.'app.php';
63 63
         $database 	= include $this->config_path.'database.php';
@@ -66,6 +66,6 @@  discard block
 block discarded – undo
66 66
         $this->config_array['app'] = $app;
67 67
         $this->config_array['database'] = $database;
68 68
         $this->config_array['mail'] = $mail;
69
-		return $this->config_array;
69
+        return $this->config_array;
70 70
     }
71 71
 }
72 72
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@
 block discarded – undo
59 59
 	 */
60 60
 	public function make() {
61 61
         $view 		= include $this->config_path.'views.php';
62
-        $app 		= include $this->config_path.'app.php';
63
-        $database 	= include $this->config_path.'database.php';
62
+        $app = include $this->config_path.'app.php';
63
+        $database = include $this->config_path.'database.php';
64 64
         $mail 		= include $this->config_path.'mail.php';
65 65
         $this->config_array['views'] = $view;
66 66
         $this->config_array['app'] = $app;
Please login to merge, or discard this patch.
Core/Database/DB.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -11,24 +11,24 @@
 block discarded – undo
11 11
 class DB extends Capsule
12 12
 {
13 13
 
14
-	/**
15
-	 * @param $function
16
-	 * @param $arguments
17
-	 *
18
-	 * @return mixed
19
-	 */
20
-	public static function __callStatic($function, $arguments){
21
-		return call_user_func_array(array(static::instance(), $function), $arguments);
22
-	}
14
+    /**
15
+     * @param $function
16
+     * @param $arguments
17
+     *
18
+     * @return mixed
19
+     */
20
+    public static function __callStatic($function, $arguments){
21
+        return call_user_func_array(array(static::instance(), $function), $arguments);
22
+    }
23 23
 
24
-	/**
25
-	 * @return Capsule
26
-	 */
27
-	public static function instance(){
28
-		if(!self::$instance){
29
-			self::$instance = (new Capsule);
30
-		}
31
-		return self::$instance;
32
-	}
24
+    /**
25
+     * @return Capsule
26
+     */
27
+    public static function instance(){
28
+        if(!self::$instance){
29
+            self::$instance = (new Capsule);
30
+        }
31
+        return self::$instance;
32
+    }
33 33
 
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 block discarded – undo
17 17
 	 *
18 18
 	 * @return mixed
19 19
 	 */
20
-	public static function __callStatic($function, $arguments){
20
+	public static function __callStatic($function, $arguments) {
21 21
 		return call_user_func_array(array(static::instance(), $function), $arguments);
22 22
 	}
23 23
 
24 24
 	/**
25 25
 	 * @return Capsule
26 26
 	 */
27
-	public static function instance(){
28
-		if(!self::$instance){
27
+	public static function instance() {
28
+		if (!self::$instance) {
29 29
 			self::$instance = (new Capsule);
30 30
 		}
31 31
 		return self::$instance;
Please login to merge, or discard this patch.
Core/Database/Model.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
 
11 11
 class Model extends EloquetModel {
12 12
 
13
-	/**
14
-	 * Indicates if the model should be timestamped.
15
-	 *
16
-	 * @var bool
17
-	 */
18
-	public $timestamps = true;
13
+    /**
14
+     * Indicates if the model should be timestamped.
15
+     *
16
+     * @var bool
17
+     */
18
+    public $timestamps = true;
19 19
 
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
Core/Database/Migration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 
8 8
 class Migration extends MigrationDatabase {
9 9
 
10
-    public $schema , $application;
10
+    public $schema, $application;
11 11
 
12
-    public function __construct(){
12
+    public function __construct() {
13 13
         $this->application = new Application();
14 14
         $this->schema = $this->application->db->getSchemaBuilder();
15 15
     }
Please login to merge, or discard this patch.
App/Config/mail.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	'smtp' => [
5
-		'server' => 'smtp.umbler.com',
4
+    'smtp' => [
5
+        'server' => 'smtp.umbler.com',
6 6
 
7
-		'port' => 587,
7
+        'port' => 587,
8 8
 
9
-		'username' => '[email protected]',
9
+        'username' => '[email protected]',
10 10
 
11
-		'password' => 'adriel007'
12
-	]
11
+        'password' => 'adriel007'
12
+    ]
13 13
 ];
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
App/Config/middlewares.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	'auth' => [
5
-		'\App\Middlewares\AuthMiddleware',
6
-	]
4
+    'auth' => [
5
+        '\App\Middlewares\AuthMiddleware',
6
+    ]
7 7
 ];
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
App/Config/app.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	'title' => 'Sephy',
4
+    'title' => 'Sephy',
5 5
 
6
-	'assets' => 'http://framework.com.br/assets',
6
+    'assets' => 'http://framework.com.br/assets',
7 7
 
8
-	'timezone' => 'America/Sao_Paulo',
8
+    'timezone' => 'America/Sao_Paulo',
9 9
 	
10
-	'cache' => true
10
+    'cache' => true
11 11
 ];
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
App/Config/views.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-	/*
5
+    /*
6 6
      * To render your views, you can use the engines: blade, twig
7 7
      */
8
-	'engine' => 'blade', // use blade or twig
8
+    'engine' => 'blade', // use blade or twig
9 9
 
10
-	/**
11
-	 * Folder where you stored the views
12
-	 */
13
-	'path_views' => ROOT_APP . 'Views',
10
+    /**
11
+     * Folder where you stored the views
12
+     */
13
+    'path_views' => ROOT_APP . 'Views',
14 14
 
15
-	/**
16
-	 * Folder where you stored the views caches
17
-	 */
18
-	'path_cache' => ROOT_APP . 'Cache'
15
+    /**
16
+     * Folder where you stored the views caches
17
+     */
18
+    'path_cache' => ROOT_APP . 'Cache'
19 19
 ];
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 	/**
11 11
 	 * Folder where you stored the views
12 12
 	 */
13
-	'path_views' => ROOT_APP . 'Views',
13
+	'path_views' => ROOT_APP.'Views',
14 14
 
15 15
 	/**
16 16
 	 * Folder where you stored the views caches
17 17
 	 */
18
-	'path_cache' => ROOT_APP . 'Cache'
18
+	'path_cache' => ROOT_APP.'Cache'
19 19
 ];
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
App/Config/database.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	'providers' => [
5
-		'pdo' => [
6
-			'driver' => 'mysql',
7
-			'host' => 'localhost',
8
-			'database' => 'sephy',
9
-			'username' => 'root',
10
-			'password' => '',
11
-			'charset' => 'utf8',
12
-			'collation' => 'utf8_unicode_ci',
13
-			'prefix' => 'spy_'
14
-		]
15
-	]
4
+    'providers' => [
5
+        'pdo' => [
6
+            'driver' => 'mysql',
7
+            'host' => 'localhost',
8
+            'database' => 'sephy',
9
+            'username' => 'root',
10
+            'password' => '',
11
+            'charset' => 'utf8',
12
+            'collation' => 'utf8_unicode_ci',
13
+            'prefix' => 'spy_'
14
+        ]
15
+    ]
16 16
 ];
17 17
\ No newline at end of file
Please login to merge, or discard this patch.