Completed
Pull Request — developer (#8881)
by Sławomir
178:12 queued 163:40
created
app/Zip.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 	 *
44 44
 	 * @throws Exceptions\AppException
45 45
 	 *
46
-	 * @return Zip|bool
46
+	 * @return Zip
47 47
 	 */
48 48
 	public static function openFile($fileName = false, $options = [])
49 49
 	{
Please login to merge, or discard this patch.
app/Fields/Owner.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 		}
79 79
 		if (!empty($this->searchValue)) {
80 80
 			$this->searchValue = strtolower($this->searchValue);
81
-			$accessibleGroups = array_filter($accessibleGroups, function ($name) {
81
+			$accessibleGroups = array_filter($accessibleGroups, function($name) {
82 82
 				return strstr(strtolower($name), $this->searchValue);
83 83
 			});
84 84
 		}
Please login to merge, or discard this patch.
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 * Function to get all the accessible users.
89 89
 	 *
90 90
 	 * @param string $private
91
-	 * @param mixed  $fieldType
91
+	 * @param boolean|string  $fieldType
92 92
 	 *
93 93
 	 * @return array
94 94
 	 */
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 	 * @param string $status
181 181
 	 * @param mixed  $assignedUser
182 182
 	 * @param string $private
183
-	 * @param mixed  $roles
183
+	 * @param boolean  $roles
184 184
 	 *
185 185
 	 * @return array
186 186
 	 */
@@ -222,8 +222,8 @@  discard block
 block discarded – undo
222 222
 	/**
223 223
 	 * Function gets sql query.
224 224
 	 *
225
-	 * @param mixed $private
226
-	 * @param mixed $status
225
+	 * @param string $private
226
+	 * @param string $status
227 227
 	 * @param mixed $roles
228 228
 	 *
229 229
 	 * @return \App\Db\Query
@@ -411,7 +411,6 @@  discard block
 block discarded – undo
411 411
 	/**
412 412
 	 * Function returns list of accessible users for a module.
413 413
 	 *
414
-	 * @param string $module
415 414
 	 *
416 415
 	 * @return <Array of Users_Record_Model>
417 416
 	 */
@@ -800,8 +799,8 @@  discard block
 block discarded – undo
800 799
 	/**
801 800
 	 * Transfer ownership workflow tasks.
802 801
 	 *
803
-	 * @param type $oldId
804
-	 * @param type $newId
802
+	 * @param integer $oldId
803
+	 * @param integer $newId
805 804
 	 */
806 805
 	private static function transferOwnershipForWorkflow($oldId, $newId)
807 806
 	{
Please login to merge, or discard this patch.
app/Cache.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
 		if (static::$clearOpcache) {
180 180
 			return false;
181 181
 		}
182
-		register_shutdown_function(function () {
182
+		register_shutdown_function(function() {
183 183
 			static::resetOpcache();
184 184
 		});
185 185
 		static::$clearOpcache = true;
Please login to merge, or discard this patch.
Doc Comments   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,6 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * Returns a Cache Item representing the specified key.
44 44
 	 *
45 45
 	 * @param string $key Cache ID
46
+	 * @param string $nameSpace
46 47
 	 *
47 48
 	 * @return mixed
48 49
 	 */
@@ -70,6 +71,7 @@  discard block
 block discarded – undo
70 71
 	 * @param string $key      Cache ID
71 72
 	 * @param mixed  $value    Data to store, supports string, array, objects
72 73
 	 * @param int    $duration Cache TTL (in seconds)
74
+	 * @param string $nameSpace
73 75
 	 *
74 76
 	 * @return bool
75 77
 	 */
@@ -85,8 +87,9 @@  discard block
 block discarded – undo
85 87
 	 * Removes the item from the cache.
86 88
 	 *
87 89
 	 * @param string $key Cache ID
90
+	 * @param string $nameSpace
88 91
 	 *
89
-	 * @return bool
92
+	 * @return boolean|null
90 93
 	 */
91 94
 	public static function delete($nameSpace, $key)
92 95
 	{
@@ -96,7 +99,7 @@  discard block
 block discarded – undo
96 99
 	/**
97 100
 	 * Deletes all items in the cache.
98 101
 	 *
99
-	 * @return bool
102
+	 * @return boolean|null
100 103
 	 */
101 104
 	public static function clear()
102 105
 	{
@@ -109,7 +112,7 @@  discard block
 block discarded – undo
109 112
 	 * @param string $nameSpace
110 113
 	 * @param string $key       Cache ID
111 114
 	 *
112
-	 * @return mixed
115
+	 * @return string[]
113 116
 	 */
114 117
 	public static function staticGet($nameSpace, $key)
115 118
 	{
@@ -135,7 +138,6 @@  discard block
 block discarded – undo
135 138
 	 * @param string $nameSpace
136 139
 	 * @param string $key       Cache ID
137 140
 	 * @param mixed  $value     Data to store
138
-	 * @param int    $duration  Cache TTL (in seconds)
139 141
 	 *
140 142
 	 * @return bool
141 143
 	 */
@@ -150,7 +152,7 @@  discard block
 block discarded – undo
150 152
 	 * @param string $nameSpace
151 153
 	 * @param string $key       Cache ID
152 154
 	 *
153
-	 * @return bool
155
+	 * @return boolean|null
154 156
 	 */
155 157
 	public static function staticDelete($nameSpace, $key)
156 158
 	{
@@ -160,7 +162,7 @@  discard block
 block discarded – undo
160 162
 	/**
161 163
 	 * Deletes all items in the static cache.
162 164
 	 *
163
-	 * @return bool
165
+	 * @return boolean|null
164 166
 	 */
165 167
 	public static function staticClear()
166 168
 	{
@@ -170,7 +172,7 @@  discard block
 block discarded – undo
170 172
 	/**
171 173
 	 * Clear the opcache after the script finishes.
172 174
 	 *
173
-	 * @return bool
175
+	 * @return false|null
174 176
 	 */
175 177
 	public static function clearOpcache()
176 178
 	{
Please login to merge, or discard this patch.
app/Config.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	/**
71 71
 	 * Get all js configuratin in json.
72 72
 	 *
73
-	 * @return type
73
+	 * @return string
74 74
 	 */
75 75
 	public static function getJsEnv()
76 76
 	{
Please login to merge, or discard this patch.
app/Debuger.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	/**
29 29
 	 * Initiating debugging console.
30 30
 	 *
31
-	 * @return \App\DebugBar\Debuger
31
+	 * @return DebugBar\DebugBar
32 32
 	 */
33 33
 	public static function initConsole()
34 34
 	{
@@ -75,6 +75,10 @@  discard block
 block discarded – undo
75 75
 		return isset(static::$debugBar);
76 76
 	}
77 77
 
78
+	/**
79
+	 * @param string $level
80
+	 * @param string $traces
81
+	 */
78 82
 	public static function addLogs($message, $level, $traces)
79 83
 	{
80 84
 		if (isset(static::$debugBar['logs'])) {
Please login to merge, or discard this patch.
app/Layout.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	 *
99 99
 	 * @param string $imageName
100 100
 	 *
101
-	 * @return array
101
+	 * @return string|false
102 102
 	 */
103 103
 	public static function getImagePath($imageName)
104 104
 	{
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	 * @param string $templateName
112 112
 	 * @param string $moduleName
113 113
 	 *
114
-	 * @return array
114
+	 * @return string
115 115
 	 */
116 116
 	public static function getTemplatePath($templateName, $moduleName = '')
117 117
 	{
Please login to merge, or discard this patch.
app/Log/Profiling.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 		$timings = [];
37 37
 		$stack = [];
38 38
 		foreach ($this->messages as $i => $log) {
39
-			list($token, $level, , $timestamp) = $log;
39
+			list($token, $level,, $timestamp) = $log;
40 40
 			$log[5] = $i;
41 41
 			if ($level == Logger::LEVEL_PROFILE_BEGIN) {
42 42
 				$stack[] = $log;
Please login to merge, or discard this patch.
modules/Settings/SharingAccess/models/Rule.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 	/**
264 264
 	 * Function to get the detailViewUrl for the rule member in Sharing Access Custom Rules.
265 265
 	 *
266
-	 * @return DetailViewUrl
266
+	 * @return string|null
267 267
 	 */
268 268
 	public function getSourceDetailViewUrl()
269 269
 	{
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 	/**
282 282
 	 * Function to get the detailViewUrl for the rule member in Sharing Access Custom Rules.
283 283
 	 *
284
-	 * @return DetailViewUrl
284
+	 * @return string|null
285 285
 	 */
286 286
 	public function getTargetDetailViewUrl()
287 287
 	{
@@ -420,6 +420,7 @@  discard block
 block discarded – undo
420 420
 	/**
421 421
 	 * Function to get all the rules.
422 422
 	 *
423
+	 * @param integer $ruleId
423 424
 	 * @return array - Array of Settings_Groups_Record_Model instances
424 425
 	 */
425 426
 	public static function getInstance($moduleModel, $ruleId)
Please login to merge, or discard this patch.
modules/Settings/LangManagement/models/Module.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	 *
216 216
 	 * @param string $dir
217 217
 	 *
218
-	 * @return bool
218
+	 * @return false|null
219 219
 	 */
220 220
 	public static function deleteDir($dir)
221 221
 	{
@@ -297,6 +297,9 @@  discard block
 block discarded – undo
297 297
 		return $data;
298 298
 	}
299 299
 
300
+	/**
301
+	 * @param boolean $byModule
302
+	 */
300 303
 	public function getStats($data, $langBase, $byModule)
301 304
 	{
302 305
 		$differences = [];
Please login to merge, or discard this patch.