Test Setup Failed
Branch master (20b14b)
by Marcio
05:05
created
src/Ballybran/Helpers/Time/Timestamp.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 {
26 26
     private static $tempo_da_sessao;
27 27
 
28
-   public static function distanceOfTimeInWords($fromTime, $toTime = 0, $showLessThanAMinute = false)
29
-   {
28
+    public static function distanceOfTimeInWords($fromTime, $toTime = 0, $showLessThanAMinute = false)
29
+    {
30 30
     $distanceInSeconds = round(abs($toTime - strtotime($fromTime)));
31 31
     $distanceInMinutes = round($distanceInSeconds / 60);
32 32
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $now             = time();
128 128
         $unix_date         = strtotime($date);
129 129
 
130
-       // check validity of date
130
+        // check validity of date
131 131
         if(empty($unix_date)) {   
132 132
             return "Bad date";
133 133
         }
Please login to merge, or discard this patch.
src/Ballybran/Helpers/Utility/Ucfirst.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         }
88 88
         return $abbreviation;
89 89
     }
90
-	/*
90
+    /*
91 91
 	* $string string
92 92
 	* example removeAccentsIstring( "Õ") output "O"
93 93
 	*/
@@ -100,13 +100,13 @@  discard block
 block discarded – undo
100 100
     public static function removeAccents($string, $slug = false)
101 101
     {
102 102
         $string = strtolower($string);
103
-		// ASCII code of vowels
103
+        // ASCII code of vowels
104 104
         $ascii['a'] = range(224, 230);
105 105
         $ascii['e'] = range(232, 235);
106 106
         $ascii['i'] = range(236, 239);
107 107
         $ascii['o'] = array_merge(range(242, 246), array(240, 248));
108 108
         $ascii['u'] = range(249, 252);
109
-		// ASCII code for other characters
109
+        // ASCII code for other characters
110 110
         $ascii['b'] = array(223);
111 111
         $ascii['c'] = array(231);
112 112
         $ascii['d'] = array(208);
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
         $string = preg_replace(array_values($troca), array_keys($troca), $string);
121 121
         // Slug?
122 122
         if ($slug) {
123
-			// Swap anything that is not letter or number for a character ($slug)           
124
-			 $string = preg_replace('/[^a-z0-9]/i', $slug, $string);
125
-			// Removes repeated characters ($slug)             
126
-			$string = preg_replace('/' . $slug . '{2,}/i', $slug, $string);
123
+            // Swap anything that is not letter or number for a character ($slug)           
124
+                $string = preg_replace('/[^a-z0-9]/i', $slug, $string);
125
+            // Removes repeated characters ($slug)             
126
+            $string = preg_replace('/' . $slug . '{2,}/i', $slug, $string);
127 127
             $string = trim($string, $slug);
128 128
         }
129 129
         return $string;
Please login to merge, or discard this patch.
src/Ballybran/Helpers/Utility/Assets.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 return sprintf($template, $file) . "\n";
47 47
             }
48 48
         } else {
49
-             return sprintf($template, $files) . "\n";
49
+                return sprintf($template, $files) . "\n";
50 50
         }
51 51
     }
52 52
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         if (is_array($files)) {
56 56
             foreach ($files as $key => $value) {
57
-               echo static::resource($value, 'js');
57
+                echo static::resource($value, 'js');
58 58
             }
59 59
         } else {
60 60
             echo static::resource($files, 'js');
Please login to merge, or discard this patch.
src/Ballybran/Helpers/Http/Cookie.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@
 block discarded – undo
257 257
     }
258 258
 
259 259
     public function setValue($value){
260
-         $this->data['value']= $value;
260
+            $this->data['value']= $value;
261 261
 
262 262
     }
263 263
 
Please login to merge, or discard this patch.
src/Ballybran/Helpers/Routing/Routes.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 	
92 92
 
93
-     public function call()
93
+        public function call()
94 94
     {
95 95
             
96 96
             if (is_string($this->callable)) {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         return $path;
132 132
     }
133 133
 
134
-	/*
134
+    /*
135 135
 	*@deprecated
136 136
 	*/
137 137
     public static function route()
Please login to merge, or discard this patch.
src/Ballybran/Helpers/Routing/Map.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      * @param $name
77 77
      * @param $method
78 78
      * @return Routes
79
-  	* example $router->add( '/user/:id', function($id) {}, 'name')->with('id','[0-9]+');
79
+     * example $router->add( '/user/:id', function($id) {}, 'name')->with('id','[0-9]+');
80 80
      */
81 81
     public  function add($path, $callable, $name, $method) : Routes
82 82
     {
Please login to merge, or discard this patch.
src/Ballybran/Helpers/Event/Registry.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
  * Class Registry
23 23
  * @package Ballybran\Helpers\Event
24 24
  */
25
- class Registry
25
+    class Registry
26 26
 {
27 27
     private static $instance;
28 28
 
Please login to merge, or discard this patch.
src/Ballybran/Core/Model/Model.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 
84 84
         $this->model = new $className($this->obj);
85 85
 
86
-         $this->model;
86
+            $this->model;
87 87
     }
88 88
 
89 89
 }
Please login to merge, or discard this patch.
src/Ballybran/Core/Http/Request.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@
 block discarded – undo
35 35
  *
36 36
  * Quick Start:
37 37
  * @code
38
-
39 38
  * @endcode
40 39
  *
41 40
  * Minimum requirements: PHP 5.3.x, cURL.
Please login to merge, or discard this patch.