Completed
Branch develop (740555)
by Tobias
03:44
created
src/components/User.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param array     $params
26 26
      * @param bool|true $allowCaching
27 27
      *
28
-     * @return bool
28
+     * @return boolean|null
29 29
      */
30 30
     public function can($permissionName, $params = [], $allowCaching = true)
31 31
     {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * Checks permissions from guest role, when no user is logged in.
47 47
      *
48
-     * @param $permissionName
48
+     * @param string $permissionName
49 49
      * @param $params
50 50
      * @param $allowCaching
51 51
      *
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * Splits `permissionName` by underscore and match parts against more global rule
65 65
      * eg. a permission `app_site` will match, `app_site_foo`
66 66
      *
67
-     * @param $permissionName
67
+     * @param string $permissionName
68 68
      * @param $params
69 69
      * @param $allowCaching
70 70
      *
Please login to merge, or discard this patch.
src/config/giiant.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use schmunk42\giiant\generators\crud\callbacks\yii\Db;
6 6
 use schmunk42\giiant\generators\crud\callbacks\yii\Html;
7 7
 
8
-$aceEditorField = function ($attribute, $model, $generator) {
8
+$aceEditorField = function($attribute, $model, $generator) {
9 9
     return "\$form->field(\$model, '{$attribute}')->widget(\\trntv\\aceeditor\\AceEditor::className())";
10 10
 };
11 11
 
Please login to merge, or discard this patch.
src/modules/backend/controllers/DefaultController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
                     ],
29 29
                     [
30 30
                         'allow' => true,
31
-                        'matchCallback' => function ($rule, $action) {
31
+                        'matchCallback' => function($rule, $action) {
32 32
                             return \Yii::$app->user->can(
33 33
                                 $this->module->id.'_'.$this->id.'_'.$action->id,
34 34
                                 ['route' => true]
Please login to merge, or discard this patch.
src/widgets/Alert.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         foreach ($flashes as $type => $data) {
59 59
             if (isset($this->alertTypes[$type])) {
60
-                $data = (array) $data;
60
+                $data = (array)$data;
61 61
                 foreach ($data as $message) {
62 62
                     /* initialize css class for each alert box */
63 63
                     $this->options['class'] = $this->alertTypes[$type].$appendCss;
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.yiiframework.com/
4
- *
5
- * @copyright Copyright (c) 2008 Yii Software LLC
6
- * @license http://www.yiiframework.com/license/
7
- */
3
+     * @link http://www.yiiframework.com/
4
+     *
5
+     * @copyright Copyright (c) 2008 Yii Software LLC
6
+     * @license http://www.yiiframework.com/license/
7
+     */
8 8
 namespace app\modules\backend\assets;
9 9
 
10 10
 use yii\helpers\FileHelper;
Please login to merge, or discard this patch.
src/modules/backend/views/layouts/box.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link http://www.diemeisterei.de/
4
- *
5
- * @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
6
- *
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
3
+     * @link http://www.diemeisterei.de/
4
+     *
5
+     * @copyright Copyright (c) 2015 diemeisterei GmbH, Stuttgart
6
+     *
7
+     * For the full copyright and license information, please view the LICENSE
8
+     * file that was distributed with this source code.
9
+     */
10 10
 namespace app\modules\prototype\widgets;
11 11
 
12 12
 use yii\base\Widget;
Please login to merge, or discard this patch.
src/controllers/SiteController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
                     ],
29 29
                     [
30 30
                         'allow' => true,
31
-                        'matchCallback' => function ($rule, $action) {
31
+                        'matchCallback' => function($rule, $action) {
32 32
                             return \Yii::$app->user->can(
33 33
                                 $this->module->id.'_'.$this->id.'_'.$action->id,
34 34
                                 ['route' => true]
Please login to merge, or discard this patch.
src/config/main.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
             // Note: For using mounted volumes or shared folders
24 24
             'dirMode' => YII_ENV_PROD ? 0777 : null,
25 25
             'bundles' => getenv('APP_ASSET_USE_BUNDLED') ?
26
-                require(__DIR__.'/assets-gen/prod.php') :
27
-                [
26
+                require(__DIR__.'/assets-gen/prod.php') : [
28 27
                     // Note: if your asset bundle includes bootstrap, you can disable the default asset
29 28
                     #'yii\bootstrap\BootstrapAsset' => false,
30 29
                 ],
Please login to merge, or discard this patch.