Completed
Push — master ( 50d24f...812ecb )
by judicael
03:47
created
bundles/lib/Cache/File.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @access public
98 98
      * @param  string $sName name of the session
99
-     * @return mixed
99
+     * @return boolean
100 100
      */
101 101
     public function delete(string $sName)
102 102
     {
@@ -107,7 +107,6 @@  discard block
 block discarded – undo
107 107
      * flush the cache
108 108
      *
109 109
      * @access public
110
-     * @param  string $sName name of the session
111 110
      * @return mixed
112 111
      */
113 112
     public function flush()
@@ -120,7 +119,7 @@  discard block
 block discarded – undo
120 119
      *
121 120
      * @access public
122 121
      * @param  string $sName name of the session
123
-     * @return mixed
122
+     * @return string
124 123
      */
125 124
     private function _getSubDirectory($sName)
126 125
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param  int $iTimeout expiration of cache
75 75
      * @return mixed
76 76
      */
77
-    public function get(string $sName, int &$iFlags = null, int $iTimeout = 0)
77
+    public function get(string $sName, int&$iFlags = null, int $iTimeout = 0)
78 78
     {
79 79
         if ($iTimeout > 0 && file_exists($this->_sFolder.$this->_getSubDirectory($sName).md5($sName).'.fil.cac')
80 80
             && time() - filemtime($this->_sFolder.$this->_getSubDirectory($sName).md5($sName).'.fil.cac') > $iTimeout) {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         if (file_exists($this->_sFolder.$this->_getSubDirectory($sName).md5($sName).'.fil.cac')) {
86 86
 
87
-            return unserialize(file_get_contents($this->_sFolder . $this->_getSubDirectory($sName) . md5($sName) . '.fil.cac'));
87
+            return unserialize(file_get_contents($this->_sFolder.$this->_getSubDirectory($sName).md5($sName).'.fil.cac'));
88 88
         } else {
89 89
 
90 90
             return false;
Please login to merge, or discard this patch.
bundles/lib/Cache/Redis.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * flush the cache
94 94
      *
95 95
      * @access public
96
-     * @return mixed
96
+     * @return boolean
97 97
      */
98 98
     public function flush()
99 99
     {
@@ -129,9 +129,8 @@  discard block
 block discarded – undo
129 129
      * @access public
130 130
      * @param  string $sName name of the session
131 131
      * @param  mixed $mValue value of this sesion var
132
-     * @param  int $iFlag unused
133 132
      * @param  int $iExpire expiration of cache
134
-     * @return mixed
133
+     * @return Apc
135 134
      */
136 135
     public function add(string $sName, $mValue, int $iExpire = false)
137 136
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * @param  int $iTimeout expiration of cache
63 63
      * @return mixed
64 64
      */
65
-    public function get(string $sName, int &$iFlags = null, int $iTimeout = 0)
65
+    public function get(string $sName, int&$iFlags = null, int $iTimeout = 0)
66 66
     {
67 67
         return parent::get($sName);
68 68
     }
Please login to merge, or discard this patch.
bundles/lib/Debug.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         error_reporting($iLevel);
153 153
 
154
-        set_error_handler(function ($iErrNo, $sErrStr, $sErrFile, $iErrLine)
154
+        set_error_handler(function($iErrNo, $sErrStr, $sErrFile, $iErrLine)
155 155
         {
156 156
             $aContext = array('file' => $sErrFile, 'line' => $iErrLine);
157 157
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         self::_initLogFile();
217 217
         self::$_bActivateException = true;
218 218
 
219
-        set_exception_handler(function (\Exception $oException)
219
+        set_exception_handler(function(\Exception $oException)
220 220
         {
221 221
             $aContext = array('file' => $oException->getFile(), 'line' => $oException->getLine());
222 222
             self::getInstance()->critical($oException->getMessage(), $aContext);
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
         else {
413 413
 
414 414
             if (isset($_SERVER['HTTP_HOST']) && isset($_SERVER['REQUEST_URI'])) {
415
-                error_log(Bash::setColor('############### ' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . ' ###############', 'cyan'));
415
+                error_log(Bash::setColor('############### '.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].' ###############', 'cyan'));
416 416
             }
417 417
         }
418 418
     }
Please login to merge, or discard this patch.
bundles/lib/Bash.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,6 +148,6 @@
 block discarded – undo
148 148
      */
149 149
     private static function _applyCode(string $sContent, string $sCode) : string
150 150
     {
151
-        return "\033[" . $sCode . "m" . $sContent . "\033[0m\n";
151
+        return "\033[".$sCode."m".$sContent."\033[0m\n";
152 152
     }
153 153
 }
Please login to merge, or discard this patch.