Completed
Push — master ( 100486...45110c )
by Basil
11:58 queued 05:54
created
envs/dev/elements.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	'button' => function($href, $name) {
5
-		return '<a class="btn btn-primary" href="'.$href.'">'.$name.'</a>';
6
-	},
7
-	'teaserbox' => function($title, $description, $buttonHref, $buttonName) {
8
-		return '<div class="teaser-box"><h1>'.$title.'</h1><p>'.$description.'</p>'.$this->button($buttonHref, $buttonName).'</div>';
9
-	},
4
+    'button' => function($href, $name) {
5
+        return '<a class="btn btn-primary" href="'.$href.'">'.$name.'</a>';
6
+    },
7
+    'teaserbox' => function($title, $description, $buttonHref, $buttonName) {
8
+        return '<div class="teaser-box"><h1>'.$title.'</h1><p>'.$description.'</p>'.$this->button($buttonHref, $buttonName).'</div>';
9
+    },
10 10
 ];
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
envs/dev/views/crawler/default/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 <h2><?php echo count($results); ?> Resultate</h2>
5 5
 <ul>
6
-<?php foreach($results as $item): ?>
6
+<?php foreach ($results as $item): ?>
7 7
     <li><a href="<?php echo $item->url; ?>"><?php echo $item->title; ?></a>
8 8
     
9 9
         <p style="background-color:red;"><?php echo $item->preview($query); ?></p>
Please login to merge, or discard this patch.
envs/dev/views/layouts/main.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         <div class="container" id="content">
24 24
             <div class="row">
25 25
                 <ol class="breadcrumb">
26
-                    <?php foreach(Yii::$app->menu->current->teardown as $item): ?>
26
+                    <?php foreach (Yii::$app->menu->current->teardown as $item): ?>
27 27
                     <li><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>
28 28
                     <?php endforeach; ?>
29 29
                 </ol>
@@ -34,16 +34,16 @@  discard block
 block discarded – undo
34 34
                     <ul>
35 35
                     <?php foreach (Yii::$app->menu->find()->where(['parent_nav_id' => 0, 'container' => 'default'])->all() as $item): ?>
36 36
                         <li>
37
-                            <a<?php if($item->isActive): ?> class="active"<?php endif;?> href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>
38
-                            <?php if($item->hasChildren()): ?>
37
+                            <a<?php if ($item->isActive): ?> class="active"<?php endif; ?> href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>
38
+                            <?php if ($item->hasChildren()): ?>
39 39
                             <ul>
40
-                                <?php foreach($item->children as $child): ?>
41
-                                    <li><a<?php if($child->isActive): ?> class="active"<?php endif;?> href="<?php echo $child->link; ?>">&raquo; <?php echo $child->title; ?></a></li>
40
+                                <?php foreach ($item->children as $child): ?>
41
+                                    <li><a<?php if ($child->isActive): ?> class="active"<?php endif; ?> href="<?php echo $child->link; ?>">&raquo; <?php echo $child->title; ?></a></li>
42 42
                                     
43
-                                    <?php if($child->hasChildren()): ?>
43
+                                    <?php if ($child->hasChildren()): ?>
44 44
                                     <ul>
45
-                                        <?php foreach($child->children as $grandChild): ?>
46
-                                            <li><a<?php if($grandChild->isActive): ?> class="active"<?php endif;?> href="<?php echo $grandChild->link; ?>">&raquo; <?php echo $grandChild->title; ?></a>
45
+                                        <?php foreach ($child->children as $grandChild): ?>
46
+                                            <li><a<?php if ($grandChild->isActive): ?> class="active"<?php endif; ?> href="<?php echo $grandChild->link; ?>">&raquo; <?php echo $grandChild->title; ?></a>
47 47
                                         <?php endforeach; ?>
48 48
                                     </ul>
49 49
                                     <?php endif; ?>
Please login to merge, or discard this patch.
envs/dev/views/news/default/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <h1>News Index Overview</h1>
2 2
 <pre>
3
-<?php foreach($model::getAvailableNews() as $n): ?>
3
+<?php foreach ($model::getAvailableNews() as $n): ?>
4 4
     <p><?php echo $n->title; ?></p>
5 5
     <a href="<?php echo $n->detailUrl; ?>"><?php echo $n->detailUrl; ?></a>
6 6
 <?php endforeach; ?>
Please login to merge, or discard this patch.
core/helpers/Url.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     /**
21 21
      * This helper method will not concern any context informations
22
-     * @param array $routeParams Example array to route `['/module/controller/action']`.
22
+     * @param string[] $routeParams Example array to route `['/module/controller/action']`.
23 23
      * @param boolean $scheme Whether to return the absolute url or not
24 24
      */
25 25
     public static function toInternal(array $routeParams, $scheme = false)
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @param string $route
39 39
      * @param array  $params
40
-     * @param boolean $sheme Whether to return static url or not
40
+     * @param boolean $scheme Whether to return static url or not
41 41
      * @todo we have to remove this method as it provides no additinal functions to the yii\helpers\url to method
42 42
      */
43 43
     public static function toManager($route, array $params = [], $scheme = false)
Please login to merge, or discard this patch.
modules/admin/src/apis/StorageController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Yii;
6 6
 use Exception;
7 7
 use admin\helpers\Storage;
8
-use admin\models\StorageImage;
9 8
 use admin\models\StorageFile;
10 9
 use admin\models\StorageFolder;
11 10
 use admin\Module;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * Callculate to number of items when using count() function against the QueryIterator object.
24 24
      *
25 25
      * @return int The number of elements in the object.
26
-    */
26
+     */
27 27
     public function count()
28 28
     {
29 29
         return count($this->data);
Please login to merge, or discard this patch.
modules/admin/src/base/Filter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
     /**
143 143
      * Get an array with all the effect param options, based on the effect params defintion.
144 144
      *
145
-     * @param array $effectParamsDefintion
145
+     * @param array $effectParams
146 146
      *
147 147
      * @throws Exception When the vars key does not exists in the effect definition.
148 148
      *
Please login to merge, or discard this patch.
modules/admin/src/base/RestVerbController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
         $this->throwException(__METHOD__);
49 49
     }
50 50
 
51
+    /**
52
+     * @param string $method
53
+     */
51 54
     private function throwException($method)
52 55
     {
53 56
         throw new \Exception('The action '.$method.' is not yet supported.');
Please login to merge, or discard this patch.
modules/admin/src/components/Auth.php 1 patch
Doc Comments   +15 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@  discard block
 block discarded – undo
25 25
         return ($create + $update + $delete);
26 26
     }
27 27
 
28
+    /**
29
+     * @param integer $permissionWeight
30
+     */
28 31
     public function permissionVerify($type, $permissionWeight)
29 32
     {
30 33
         $numbers = [];
@@ -76,10 +79,9 @@  discard block
 block discarded – undo
76 79
     /**
77 80
      * see if the user id matches against the moduleName, controllerName, actionName inside of the rights database.
78 81
      *
79
-     * @param string $moduleName     Module Name
80
-     * @param string $controllerName The name of the controller without suffix "Controller"
81
-     * @param string $actionName     The name of the action without prefix "action";
82 82
      *
83
+     * @param integer $userId
84
+     * @param string $route
83 85
      * @return bool
84 86
      */
85 87
     public function matchRoute($userId, $route)
@@ -97,6 +99,11 @@  discard block
 block discarded – undo
97 99
         return false;
98 100
     }
99 101
 
102
+    /**
103
+     * @param string $moduleName
104
+     * @param string $route
105
+     * @param string $name
106
+     */
100 107
     public function addRoute($moduleName, $route, $name)
101 108
     {
102 109
         $handler = (new Query())->select('COUNT(*) AS count')->from('admin_auth')->where(['route' => $route])->one();
@@ -118,6 +125,11 @@  discard block
 block discarded – undo
118 125
         }
119 126
     }
120 127
 
128
+    /**
129
+     * @param string $moduleName
130
+     * @param string $apiEndpoint
131
+     * @param string $name
132
+     */
121 133
     public function addApi($moduleName, $apiEndpoint, $name)
122 134
     {
123 135
         $handler = (new Query())->select('COUNT(*) AS count')->from('admin_auth')->where(['api' => $apiEndpoint])->one();
Please login to merge, or discard this patch.