Completed
Pull Request — master (#443)
by
unknown
07:10
created
catalog/admin/includes/modules/security_check/session_auto_start.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
   Released under the GNU General Public License
11 11
 */
12 12
 
13
-  use OSC\OM\OSCOM;
14 13
   use OSC\OM\Registry;
15 14
 
16 15
   class cm_i_new_products {
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/Language.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -121,6 +121,9 @@  discard block
 block discarded – undo
121 121
         }
122 122
     }
123 123
 
124
+    /**
125
+     * @param string $data
126
+     */
124 127
     public function get($data = null, $language_code = null)
125 128
     {
126 129
         if (!isset($data)) {
@@ -246,6 +249,9 @@  discard block
 block discarded – undo
246 249
         $this->injectDefinitions($defs, $scope);
247 250
     }
248 251
 
252
+    /**
253
+     * @param string $pathname
254
+     */
249 255
     public function getDefinitions($group, $language_code, $pathname)
250 256
     {
251 257
         $defs = [];
@@ -331,6 +337,9 @@  discard block
 block discarded – undo
331 337
         }
332 338
     }
333 339
 
340
+    /**
341
+     * @param boolean $flag
342
+     */
334 343
     public function setUseCache($flag)
335 344
     {
336 345
         $this->use_cache = ($flag === true);
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/PagesAbstract.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 namespace OSC\Sites\Shop\Pages\Account\Actions;
10 10
 
11 11
 use OSC\OM\OSCOM;
12
-use OSC\OM\Registry;
13 12
 
14 13
 class LogIn extends \OSC\OM\PagesActionsAbstract
15 14
 {
Please login to merge, or discard this patch.
catalog/admin/includes/modules/dashboard/d_partner_news.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,7 @@
 block discarded – undo
11 11
 */
12 12
 
13 13
   use OSC\OM\Cache;
14
-  use OSC\OM\FileSystem;
15 14
   use OSC\OM\HTTP;
16
-  use OSC\OM\OSCOM;
17 15
   use OSC\OM\Registry;
18 16
 
19 17
   class d_partner_news {
Please login to merge, or discard this patch.
catalog/admin/online_update.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
   use OSC\OM\HTML;
14 14
   use OSC\OM\OSCOM;
15
-  use OSC\OM\Registry;
16 15
 
17 16
   require('includes/application_top.php');
18 17
 
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/Cache.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@  discard block
 block discarded – undo
50 50
         return false;
51 51
     }
52 52
 
53
+    /**
54
+     * @param integer $expire
55
+     */
53 56
     public function exists($expire = null)
54 57
     {
55 58
         $filename = static::$path . $this->key . '.cache';
@@ -139,6 +142,9 @@  discard block
 block discarded – undo
139 142
         return static::$path;
140 143
     }
141 144
 
145
+    /**
146
+     * @param string $key
147
+     */
142 148
     public static function clear($key)
143 149
     {
144 150
         if (!static::hasSafeName($key)) {
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/HTTP.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -37,6 +37,7 @@
 block discarded – undo
37 37
 
38 38
     /**
39 39
      * @param array $parameters url, headers, parameters, method, verify_ssl, cafile, certificate, proxy
40
+     * @return string
40 41
      */
41 42
 
42 43
     public static function getResponse(array $parameters)
Please login to merge, or discard this patch.
catalog/includes/OSC/OM/Hash.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 block discarded – undo
12 12
 
13 13
 class Hash
14 14
 {
15
+    /**
16
+     * @param string $plain
17
+     */
15 18
     public static function encrypt($plain, $algo = null)
16 19
     {
17 20
         if (!isset($algo) || ($algo == 'default') || ($algo == 'bcrypt')) {
@@ -53,6 +56,9 @@  discard block
 block discarded – undo
53 56
         return false;
54 57
     }
55 58
 
59
+    /**
60
+     * @param string $plain
61
+     */
56 62
     public static function verify($plain, $hash)
57 63
     {
58 64
         $result = false;
@@ -128,6 +134,10 @@  discard block
 block discarded – undo
128 134
         return '';
129 135
     }
130 136
 
137
+    /**
138
+     * @param integer $min
139
+     * @param integer $max
140
+     */
131 141
     public static function getRandomInt($min = null, $max = null, $secure = true)
132 142
     {
133 143
         if (!isset($min)) {
@@ -151,6 +161,9 @@  discard block
 block discarded – undo
151 161
         return $result;
152 162
     }
153 163
 
164
+    /**
165
+     * @param integer $length
166
+     */
154 167
     public static function getRandomString($length, $type = 'mixed')
155 168
     {
156 169
         if (!in_array($type, [
Please login to merge, or discard this patch.
catalog/includes/third_party/PasswordHash.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -35,6 +35,10 @@  discard block
 block discarded – undo
35 35
 	var $portable_hashes;
36 36
 	var $random_state;
37 37
 
38
+	/**
39
+	 * @param integer $iteration_count_log2
40
+	 * @param boolean $portable_hashes
41
+	 */
38 42
 	function __construct($iteration_count_log2, $portable_hashes)
39 43
 	{
40 44
 		$this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
@@ -50,6 +54,9 @@  discard block
 block discarded – undo
50 54
 			$this->random_state .= getmypid();
51 55
 	}
52 56
 
57
+	/**
58
+	 * @param integer $count
59
+	 */
53 60
 	function get_random_bytes($count)
54 61
 	{
55 62
 		$output = '';
@@ -84,6 +91,9 @@  discard block
 block discarded – undo
84 91
 		return $output;
85 92
 	}
86 93
 
94
+	/**
95
+	 * @param integer $count
96
+	 */
87 97
 	function encode64($input, $count)
88 98
 	{
89 99
 		$output = '';
@@ -107,6 +117,9 @@  discard block
 block discarded – undo
107 117
 		return $output;
108 118
 	}
109 119
 
120
+	/**
121
+	 * @param string $input
122
+	 */
110 123
 	function gensalt_private($input)
111 124
 	{
112 125
 		$output = '$P$';
@@ -155,6 +168,9 @@  discard block
 block discarded – undo
155 168
 		return $output;
156 169
 	}
157 170
 
171
+	/**
172
+	 * @param string $input
173
+	 */
158 174
 	function gensalt_extended($input)
159 175
 	{
160 176
 		$count_log2 = min($this->iteration_count_log2 + 8, 24);
@@ -173,6 +189,9 @@  discard block
 block discarded – undo
173 189
 		return $output;
174 190
 	}
175 191
 
192
+	/**
193
+	 * @param string $input
194
+	 */
176 195
 	function gensalt_blowfish($input)
177 196
 	{
178 197
 		# This one needs to use a different order of characters and a
Please login to merge, or discard this patch.