Completed
Branch master (024767)
by Henry Stivens
02:30
created
core/libs/cache/drivers/sqlite_cache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param string $group
63 63
      * @return string
64 64
      */
65
-    public function get($id, $group='default')
65
+    public function get($id, $group = 'default')
66 66
     {
67 67
         $this->_id = $id;
68 68
         $this->_group = $group;
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @param int $lifetime tiempo de vida en forma timestamp de unix
88 88
      * @return boolean
89 89
      */
90
-    public function save($value, $lifetime='', $id='', $group='default')
90
+    public function save($value, $lifetime = '', $id = '', $group = 'default')
91 91
     {
92 92
         if (!$id) {
93 93
             $id = $this->_id;
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param string $group
123 123
      * @return boolean
124 124
      */
125
-    public function clean($group='')
125
+    public function clean($group = '')
126 126
     {
127 127
         if ($group) {
128 128
             $group = addslashes($group);
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      * @param string $group
139 139
      * @return boolean
140 140
      */
141
-    public function remove($id, $group='default')
141
+    public function remove($id, $group = 'default')
142 142
     {
143 143
         $id = addslashes($id);
144 144
         $group = addslashes($group);
Please login to merge, or discard this patch.
core/libs/cache/drivers/file_cache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param string $group
49 49
      * @return string
50 50
      */
51
-    public function get($id, $group='default')
51
+    public function get($id, $group = 'default')
52 52
     {
53 53
         $this->_id = $id;
54 54
         $this->_group = $group;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param int $lifetime tiempo de vida en forma timestamp de unix
79 79
      * @return bool
80 80
      */
81
-    public function save($value, $lifetime='', $id='', $group='default')
81
+    public function save($value, $lifetime = '', $id = '', $group = 'default')
82 82
     {
83 83
         if (!$id) {
84 84
             $id = $this->_id;
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param string $group
101 101
      * @return boolean
102 102
      */
103
-    public function clean($group='')
103
+    public function clean($group = '')
104 104
     {
105 105
         $pattern = $group ? APP_PATH . 'temp/cache/' . '*.' . md5($group) : APP_PATH . 'temp/cache/*';
106 106
         foreach (glob($pattern) as $filename) {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @param string $group
119 119
      * @return bool
120 120
      */
121
-    public function remove($id, $group='default')
121
+    public function remove($id, $group = 'default')
122 122
     {
123 123
         return unlink(APP_PATH . 'temp/cache/' . $this->_getFilename($id, $group));
124 124
     }
Please login to merge, or discard this patch.
core/libs/cache/drivers/APC_cache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param string $group
37 37
      * @return string
38 38
      */
39
-    public function get($id, $group='default')
39
+    public function get($id, $group = 'default')
40 40
     {
41 41
         $this->_id = $id;
42 42
         $this->_group = $group;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param string $group No se usa con APC
79 79
      * @return boolean
80 80
      */
81
-    public function clean($group=false)
81
+    public function clean($group = false)
82 82
     {
83 83
         return apc_clear_cache('user');
84 84
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * @param string $group
91 91
      * @return boolean
92 92
      */
93
-    public function remove($id, $group='default')
93
+    public function remove($id, $group = 'default')
94 94
     {
95 95
         return apc_delete("$id.$group");
96 96
     }
Please login to merge, or discard this patch.
core/libs/benchmark/benchmark.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     public static function memory_usage($name)
83 83
     {
84 84
         if (self::$_benchmark[$name]) {
85
-            self::$_benchmark[$name]['memory_usage'] = number_format((self::$_benchmark[$name]['memory_stop'] - self::$_benchmark[$name]['memory_start']) / 1048576, 2);
85
+            self::$_benchmark[$name]['memory_usage'] = number_format((self::$_benchmark[$name]['memory_stop'] - self::$_benchmark[$name]['memory_start'])/1048576, 2);
86 86
             return self::$_benchmark[$name]['memory_usage'];
87 87
         }
88 88
         throw new KumbiaException("No existe el Benchmark para el nombre: '$name', especificado");
Please login to merge, or discard this patch.
core/libs/session/session.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param string $namespace
53 53
      * @return mixed
54 54
      */
55
-    public static function get($index, $namespace='default')
55
+    public static function get($index, $namespace = 'default')
56 56
     {
57 57
         if (isset($_SESSION[SESSION][APP_PATH][$namespace][$index])) {
58 58
             return $_SESSION[SESSION][APP_PATH][$namespace][$index];
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * @param string $index
66 66
      * @param string $namespace
67 67
      */
68
-    public static function delete($index, $namespace='default')
68
+    public static function delete($index, $namespace = 'default')
69 69
     {
70 70
         unset($_SESSION[SESSION][APP_PATH][$namespace][$index]);
71 71
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      * @param string $namespace
78 78
      * @return boolean
79 79
      */
80
-    public static function has($index, $namespace='default')
80
+    public static function has($index, $namespace = 'default')
81 81
     {
82 82
         return isset($_SESSION[SESSION][APP_PATH][$namespace][$index]);
83 83
     }
Please login to merge, or discard this patch.
core/tests/classes/extensions/helpers/FlashTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,37 +30,37 @@
 block discarded – undo
30 30
 
31 31
     public function testShowTypeTest()
32 32
     {
33
-        $this->expectOutputString('<div class="test flash">Test Content</div>'.PHP_EOL);
33
+        $this->expectOutputString('<div class="test flash">Test Content</div>' . PHP_EOL);
34 34
         Flash::show('test', 'Test Content');
35 35
     }
36 36
 
37 37
     public function testShowTypeSuccess()
38 38
     {
39
-        $this->expectOutputString('<div class="success flash">Test Content</div>'.PHP_EOL);
39
+        $this->expectOutputString('<div class="success flash">Test Content</div>' . PHP_EOL);
40 40
         Flash::show('success', 'Test Content');
41 41
     }
42 42
 
43 43
     public function testValid()
44 44
     {
45
-        $this->expectOutputString('<div class="valid flash">Test content for valid</div>'.PHP_EOL);
45
+        $this->expectOutputString('<div class="valid flash">Test content for valid</div>' . PHP_EOL);
46 46
         Flash::valid('Test content for valid');
47 47
     }
48 48
 
49 49
     public function testError()
50 50
     {
51
-        $this->expectOutputString('<div class="error flash">Test content for error</div>'.PHP_EOL);
51
+        $this->expectOutputString('<div class="error flash">Test content for error</div>' . PHP_EOL);
52 52
         Flash::error('Test content for error');
53 53
     }
54 54
 
55 55
     public function testInfo()
56 56
     {
57
-        $this->expectOutputString('<div class="info flash">Test content for info</div>'.PHP_EOL);
57
+        $this->expectOutputString('<div class="info flash">Test content for info</div>' . PHP_EOL);
58 58
         Flash::info('Test content for info');
59 59
     }
60 60
 
61 61
     public function testWarning()
62 62
     {
63
-        $this->expectOutputString('<div class="warning flash">Test content for warning</div>'.PHP_EOL);
63
+        $this->expectOutputString('<div class="warning flash">Test content for warning</div>' . PHP_EOL);
64 64
         Flash::warning('Test content for warning');
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
core/tests/classes/extensions/helpers/TagTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $scriptPattern = '<script type="text/javascript" src="%sjavascript/%s"></script>';
41 41
         $response = Tag::js($file);
42
-        $expected = sprintf($scriptPattern, PUBLIC_PATH, $file.'.js');
42
+        $expected = sprintf($scriptPattern, PUBLIC_PATH, $file . '.js');
43 43
 
44 44
         $this->assertSame($expected, $response);
45 45
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $scriptPattern = '<script type="text/javascript" src="%sjavascript/%s?nocache=';
53 53
 
54 54
         $response = Tag::js($file, false);
55
-        $expected = sprintf($scriptPattern, PUBLIC_PATH, $file.'.js');
55
+        $expected = sprintf($scriptPattern, PUBLIC_PATH, $file . '.js');
56 56
 
57 57
         $this->assertStringStartsWith($expected, $response);
58 58
         $this->assertStringEndsWith('"></script>', $response);
Please login to merge, or discard this patch.
core/tests/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 defined('APP_PATH') || define('APP_PATH', __DIR__ . '/');
25 25
 defined('PUBLIC_PATH') || define('PUBLIC_PATH', 'http://127.0.0.1/');
26 26
 
27
-require_once CORE_PATH.'kumbia/autoload.php';
28
-require_once __DIR__.'/../../vendor/autoload.php';
27
+require_once CORE_PATH . 'kumbia/autoload.php';
28
+require_once __DIR__ . '/../../vendor/autoload.php';
29 29
 
30 30
 spl_autoload_register('kumbia_autoload_helper', true, true);
Please login to merge, or discard this patch.
core/kumbia/router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         try {
128 128
             $reflectionMethod = new ReflectionMethod($cont, $cont->action_name);
129 129
         } catch (ReflectionException $e) {
130
-            throw new KumbiaException($cont->action_name, 'no_action');//TODO: enviar a un método del controller
130
+            throw new KumbiaException($cont->action_name, 'no_action'); //TODO: enviar a un método del controller
131 131
         }
132 132
 
133 133
         //k_callback y __constructor metodo reservado
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         try {
147 147
             $reflectionMethod->invokeArgs($cont, $cont->parameters);
148 148
         } catch (ReflectionException $e) {
149
-            throw new KumbiaException(null, 'no_action');//TODO: mejor no_public
149
+            throw new KumbiaException(null, 'no_action'); //TODO: mejor no_public
150 150
         }
151 151
 
152 152
         //Corre los filtros after y finalize
Please login to merge, or discard this patch.