Passed
Push — master ( 89b6bf...2d90d2 )
by Glegrith
03:08
created
bootstrap/helper.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,9 @@
 block discarded – undo
78 78
         function getStringBetween($string, $start, $end) {
79 79
             $string = ' ' . $string;
80 80
             $ini = strpos($string, $start);
81
-            if ($ini == 0) return '';
81
+            if ($ini == 0) {
82
+                return '';
83
+            }
82 84
             $ini += strlen($start);
83 85
             $len = strpos($string, $end, $ini) - $ini;
84 86
             return substr($string, $ini, $len);
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2
-    if(! function_exists("dd")) {
2
+    if (!function_exists("dd")) {
3 3
         /**
4 4
          * Little helper called dump and die
5 5
          * @param $val
6 6
          */
7 7
         function dd($val) {
8
-            var_dump($val);die;
8
+            var_dump($val); die;
9 9
         }
10 10
     }
11 11
 
12
-    if(! function_exists("pathTo")) {
12
+    if (!function_exists("pathTo")) {
13 13
         /**
14 14
          * Easy function to get the path to the project + if you want an directory in it.
15 15
          *
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         }
22 22
     }
23 23
 
24
-    if(! function_exists("view")) {
24
+    if (!function_exists("view")) {
25 25
         /**
26 26
          * Get the evaluated view contents for the given view.
27 27
          *
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
          * @param  array   $mergeData   Some shit I don't know yet
31 31
          * @return \app\framework\Component\View\View
32 32
          */
33
-        function view($view = null, $data = [], $mergeData = []) {
33
+        function view($view = null, $data = [ ], $mergeData = [ ]) {
34 34
             $View = new \app\framework\Component\View\View($view, $data);
35 35
             return $View->render();
36 36
         }
37 37
     }
38 38
 
39
-    if(! function_exists("app")) {
39
+    if (!function_exists("app")) {
40 40
         /**
41 41
          * Used to easily call Methods from classes without manually set
42 42
          * locally Instances of them.
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
          * @param string $classMethod The class name(if in \app\custom\ namespace) or the "namespace+className@methodToCall"
45 45
          */
46 46
         function app($classMethod, $param = null) {
47
-            return $GLOBALS["App"]->call($classMethod, $param);
47
+            return $GLOBALS[ "App" ]->call($classMethod, $param);
48 48
         }
49 49
     }
50 50
 
51
-    if(! function_exists("url")) {
51
+    if (!function_exists("url")) {
52 52
         /**
53 53
          * Basically completes just the the url
54 54
          * e.g. /test to yourexample.site/test
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
          * @return string
61 61
          */
62 62
         function url($path) {
63
-            return $_SERVER['HTTP_HOST'].$path;
63
+            return $_SERVER[ 'HTTP_HOST' ].$path;
64 64
         }
65 65
     }
66 66
 
67
-    if(! function_exists("getStringBetween")) {
67
+    if (!function_exists("getStringBetween")) {
68 68
         /**
69 69
          * This is a handy little function to strip out a string between
70 70
          * two specified pieces of text. This could be used to parse
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
          * @return bool|string
77 77
          */
78 78
         function getStringBetween($string, $start, $end) {
79
-            $string = ' ' . $string;
79
+            $string = ' '.$string;
80 80
             $ini = strpos($string, $start);
81 81
             if ($ini == 0) return '';
82 82
             $ini += strlen($start);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         }
86 86
     }
87 87
 
88
-    if(! function_exists("handle")) {
88
+    if (!function_exists("handle")) {
89 89
         function handle(\Exception $e) {
90 90
             \app\framework\Component\Exception\Handler::getInstance()->handler($e);
91 91
         }
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
     $klein = new Klein();
15 15
 
16
-    $klein->get("/", function(){
16
+    $klein->get("/", function() {
17 17
         view("welcome");
18 18
     });
19 19
 
Please login to merge, or discard this patch.