Completed
Push — developer ( f778f3...8830e0 )
by Błażej
51:25 queued 38:36
created
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
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 * Function to get all the accessible users.
91 91
 	 *
92 92
 	 * @param string $private
93
-	 * @param mixed  $fieldType
93
+	 * @param boolean  $fieldType
94 94
 	 *
95 95
 	 * @return array
96 96
 	 */
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 	 * @param string $status
185 185
 	 * @param mixed  $assignedUser
186 186
 	 * @param string $private
187
-	 * @param mixed  $roles
187
+	 * @param boolean  $roles
188 188
 	 *
189 189
 	 * @return array
190 190
 	 */
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
 	/**
222 222
 	 * Function gets sql query.
223 223
 	 *
224
-	 * @param mixed $private
225
-	 * @param mixed $status
224
+	 * @param string $private
225
+	 * @param string $status
226 226
 	 * @param mixed $roles
227 227
 	 *
228 228
 	 * @return \App\Db\Query
@@ -407,7 +407,6 @@  discard block
 block discarded – undo
407 407
 	/**
408 408
 	 * Function returns list of accessible users for a module.
409 409
 	 *
410
-	 * @param string $module
411 410
 	 *
412 411
 	 * @return <Array of Users_Record_Model>
413 412
 	 */
@@ -737,8 +736,8 @@  discard block
 block discarded – undo
737 736
 	/**
738 737
 	 * Transfer ownership workflow tasks.
739 738
 	 *
740
-	 * @param type $oldId
741
-	 * @param type $newId
739
+	 * @param integer $oldId
740
+	 * @param integer $newId
742 741
 	 */
743 742
 	private static function transferOwnershipForWorkflow($oldId, $newId)
744 743
 	{
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   +10 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,6 +45,7 @@  discard block
 block discarded – undo
45 45
 	 * Returns a Cache Item representing the specified key.
46 46
 	 *
47 47
 	 * @param string $key Cache ID
48
+	 * @param string $nameSpace
48 49
 	 *
49 50
 	 * @return string|array
50 51
 	 */
@@ -57,6 +58,7 @@  discard block
 block discarded – undo
57 58
 	 * Confirms if the cache contains specified cache item.
58 59
 	 *
59 60
 	 * @param string $key Cache ID
61
+	 * @param string $nameSpace
60 62
 	 *
61 63
 	 * @return bool
62 64
 	 */
@@ -71,6 +73,7 @@  discard block
 block discarded – undo
71 73
 	 * @param string $key      Cache ID
72 74
 	 * @param mixed  $value    Data to store, supports string, array, objects
73 75
 	 * @param int    $duration Cache TTL (in seconds)
76
+	 * @param string $nameSpace
74 77
 	 *
75 78
 	 * @return bool
76 79
 	 */
@@ -86,8 +89,9 @@  discard block
 block discarded – undo
86 89
 	 * Removes the item from the cache.
87 90
 	 *
88 91
 	 * @param string $key Cache ID
92
+	 * @param string $nameSpace
89 93
 	 *
90
-	 * @return bool
94
+	 * @return boolean|null
91 95
 	 */
92 96
 	public static function delete($nameSpace, $key)
93 97
 	{
@@ -97,7 +101,7 @@  discard block
 block discarded – undo
97 101
 	/**
98 102
 	 * Deletes all items in the cache.
99 103
 	 *
100
-	 * @return bool
104
+	 * @return boolean|null
101 105
 	 */
102 106
 	public static function clear()
103 107
 	{
@@ -110,7 +114,7 @@  discard block
 block discarded – undo
110 114
 	 * @param string $nameSpace
111 115
 	 * @param string $key       Cache ID
112 116
 	 *
113
-	 * @return string|array
117
+	 * @return string[]
114 118
 	 */
115 119
 	public static function staticGet($nameSpace, $key)
116 120
 	{
@@ -136,7 +140,6 @@  discard block
 block discarded – undo
136 140
 	 * @param string $nameSpace
137 141
 	 * @param string $key       Cache ID
138 142
 	 * @param string $value     Data to store
139
-	 * @param int    $duration  Cache TTL (in seconds)
140 143
 	 *
141 144
 	 * @return bool
142 145
 	 */
@@ -151,7 +154,7 @@  discard block
 block discarded – undo
151 154
 	 * @param string $nameSpace
152 155
 	 * @param string $key       Cache ID
153 156
 	 *
154
-	 * @return bool
157
+	 * @return boolean|null
155 158
 	 */
156 159
 	public static function staticDelete($nameSpace, $key)
157 160
 	{
@@ -161,7 +164,7 @@  discard block
 block discarded – undo
161 164
 	/**
162 165
 	 * Deletes all items in the static cache.
163 166
 	 *
164
-	 * @return bool
167
+	 * @return boolean|null
165 168
 	 */
166 169
 	public static function staticClear()
167 170
 	{
@@ -171,7 +174,7 @@  discard block
 block discarded – undo
171 174
 	/**
172 175
 	 * Clear the opcache after the script finishes.
173 176
 	 *
174
-	 * @return bool
177
+	 * @return false|null
175 178
 	 */
176 179
 	public static function clearOpcache()
177 180
 	{
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/Fields/File.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 *
102 102
 	 * @param array $fileInfo
103 103
 	 *
104
-	 * @return \self
104
+	 * @return File
105 105
 	 */
106 106
 	public static function loadFromInfo($fileInfo)
107 107
 	{
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 *
119 119
 	 * @param array $file
120 120
 	 *
121
-	 * @return \self
121
+	 * @return File
122 122
 	 */
123 123
 	public static function loadFromRequest($file)
124 124
 	{
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 	 *
137 137
 	 * @param array $path
138 138
 	 *
139
-	 * @return \self
139
+	 * @return File
140 140
 	 */
141 141
 	public static function loadFromPath($path)
142 142
 	{
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1030,7 +1030,7 @@
 block discarded – undo
1030 1030
 	 */
1031 1031
 	public static function parse(array $value)
1032 1032
 	{
1033
-		return array_reduce($value, function ($result, $item) {
1033
+		return array_reduce($value, function($result, $item) {
1034 1034
 			$result[$item['key']] = $item;
1035 1035
 			return $result;
1036 1036
 		}, []);
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/CustomView.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -472,7 +472,7 @@
 block discarded – undo
472 472
 	{
473 473
 		$comparator = $relCriteriaRow['comparator'];
474 474
 		$advFilterVal = html_entity_decode($relCriteriaRow['value'], ENT_QUOTES, \AppConfig::main('default_charset'));
475
-		list($tableName, $columnName, $fieldName, , $fieldType) = explode(':', $relCriteriaRow['columnname']);
475
+		list($tableName, $columnName, $fieldName,, $fieldType) = explode(':', $relCriteriaRow['columnname']);
476 476
 		if (strpos($advFilterVal, ',') !== false && in_array($this->module->getFieldByName($fieldName)->getFieldDataType(), ['picklist', 'multipicklist', 'sharedOwner', 'owner', 'userCreator', 'multiReferenceValue', 'tree', 'taxes', 'modules', 'country', 'companySelect', 'categoryMultipicklist'])) {
477 477
 			$advFilterVal = str_replace(',', '##', $advFilterVal);
478 478
 		}
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@
 block discarded – undo
275 275
 	 * Static Function to get the Instance of CustomView.
276 276
 	 *
277 277
 	 * @param string $moduleName
278
-	 * @param mixed  $userModelOrId
278
+	 * @param User  $userModelOrId
279 279
 	 *
280 280
 	 * @return \self
281 281
 	 */
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.