Completed
Push — master ( eddda8...73e25a )
by Marc
02:41
created
core/console/commands/MigrateController.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -42,6 +42,11 @@
 block discarded – undo
42 42
         }
43 43
     }
44 44
 
45
+    /**
46
+     * @param string|boolean $module
47
+     *
48
+     * @return string
49
+     */
45 50
     private function getModuleMigrationDirectorie($module)
46 51
     {
47 52
         if (!array_key_exists($module, $this->moduleMigrationDirectories)) {
Please login to merge, or discard this patch.
core/console/commands/CrudController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@
 block discarded – undo
279 279
                 $this->getModelNameCamlized(),
280 280
                 $this->apiEndpoint,
281 281
                 $this->getDbTableShema()
282
-             ),
282
+                ),
283 283
         ];
284 284
         
285 285
         foreach ($files as $file) {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * Get the $moduleName without admin suffix (if any).
47 47
      *
48
-     * @return mixed Return the module name without admin suffix.
48
+     * @return string Return the module name without admin suffix.
49 49
      */
50 50
     public function getModuleNameWithoutAdminSuffix()
51 51
     {
Please login to merge, or discard this patch.
core/helpers/StringHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      * @param string $search Search string to look for.
48 48
      * @param string $replace Replacement value for the first found occurrence.
49 49
      * @param string $subject The string you want to look up to replace the first element.
50
-     * @return mixed Replaced string
50
+     * @return string Replaced string
51 51
      * @since 1.0.0-rc1
52 52
      */
53 53
     public static function replaceFirst($search, $replace, $subject)
Please login to merge, or discard this patch.
core/web/Composition.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -397,7 +397,7 @@
 block discarded – undo
397 397
      * 
398 398
      * @see ArrayAccess::offsetGet()
399 399
      * @param string $offset The key to get from the array.
400
-     * @return mixed The value for the offset key from the array.
400
+     * @return string|boolean The value for the offset key from the array.
401 401
      */
402 402
     public function offsetGet($offset)
403 403
     {
Please login to merge, or discard this patch.
core/validators/FloatValidator.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class FloatValidator extends Validator
16 16
 {
17
-	/**
18
-	 * @var string The messaged to send when an error appears. 
19
-	 */
17
+    /**
18
+     * @var string The messaged to send when an error appears. 
19
+     */
20 20
     public $message = '{attribute} must be a float or numeric value.';
21 21
     
22 22
     /**
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $value = $model->$attribute;
30 30
         if (!is_numeric($value) && !is_float($value)) {
31
-        	return $model->addError($attribute, Yii::t('yii', $this->message, ['attribute' => $model->getAttributeLabel($attribute)]));
31
+            return $model->addError($attribute, Yii::t('yii', $this->message, ['attribute' => $model->getAttributeLabel($attribute)]));
32 32
         }
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
core/web/UrlManager.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
  */
19 19
 class UrlManager extends \yii\web\UrlManager
20 20
 {
21
-	/**
22
-	 * @var boolean Pretty urls are enabled by default and can not be turned off in luya cms context.
23
-	 */
21
+    /**
22
+     * @var boolean Pretty urls are enabled by default and can not be turned off in luya cms context.
23
+     */
24 24
     public $enablePrettyUrl = true;
25 25
 
26 26
     /**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      * @param string $from
44 44
      * @param string $to
45 45
      * @param string $subject
46
-     * @return mixed
46
+     * @return string
47 47
      * @since 1.0.0-rc1
48 48
      */
49 49
     public static function replaceFirst($from, $to, $subject)
Please login to merge, or discard this patch.
core/console/commands/BlockController.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -146,6 +146,11 @@  discard block
 block discarded – undo
146 146
         ];
147 147
     }
148 148
     
149
+    /**
150
+     * @param string $type
151
+     * @param string $varName
152
+     * @param string $func
153
+     */
149 154
     private function getExtraVarDef($type, $varName, $func)
150 155
     {
151 156
         $info = [
@@ -173,6 +178,9 @@  discard block
 block discarded – undo
173 178
         return false;
174 179
     }
175 180
 
181
+    /**
182
+     * @param string $type
183
+     */
176 184
     private function getVariableTypeOption($type)
177 185
     {
178 186
         $types = $this->getVariableTypesOptions();
@@ -180,11 +188,17 @@  discard block
 block discarded – undo
180 188
         return $types[$type];
181 189
     }
182 190
 
191
+    /**
192
+     * @param string $type
193
+     */
183 194
     private function hasVariableTypeOption($type)
184 195
     {
185 196
         return array_key_exists($type, $this->getVariableTypesOptions());
186 197
     }
187 198
 
199
+    /**
200
+     * @param string $prefix
201
+     */
188 202
     private function placeholderCreator($prefix)
189 203
     {
190 204
         $this->output(PHP_EOL.'-> Create new '.$prefix, Console::FG_YELLOW);
Please login to merge, or discard this patch.