Completed
Branch master (0e9f9c)
by Kyle
04:09
created
src/Pagination/Component.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -137,6 +137,9 @@
 block discarded – undo
137 137
         }
138 138
     }
139 139
 
140
+    /**
141
+     * @param string $type
142
+     */
140 143
     public function html($type, array $options)
141 144
     {
142 145
         if ($type == 'links') {
Please login to merge, or discard this patch.
src/Sitemap/Component.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -426,7 +426,7 @@
 block discarded – undo
426 426
      * @param string        $table  The table to take $action on..
427 427
      * @param string|array  $values The appropriate values for a given query.
428 428
      * 
429
-     * @return array|false|int
429
+     * @return string
430 430
      */
431 431
     
432 432
     private function exec($action, $table, $values)
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace BootPress\Sitemap;
4 4
 
5
-use BootPress\Page\Component as Page;
6 5
 use BootPress\Asset\Component as Asset;
7
-use BootPress\SQLite\Component as SQLite;
8 6
 use BootPress\Hierarchy\Component as Hierarchy;
7
+use BootPress\Page\Component as Page;
8
+use BootPress\SQLite\Component as SQLite;
9 9
 use Symfony\Component\HttpFoundation\Response;
10 10
 
11 11
 class Component
Please login to merge, or discard this patch.
src/SQLite/Component.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@  discard block
 block discarded – undo
51 51
         }
52 52
     }
53 53
 
54
+    /**
55
+     * @param string $table
56
+     */
54 57
     public function create($table, array $fields, $index = array(), array $changes = array())
55 58
     {
56 59
         $columns = array();
@@ -107,6 +110,10 @@  discard block
 block discarded – undo
107 110
     }
108 111
 
109 112
     // http://stackoverflow.com/questions/396748/ordering-by-the-order-of-values-in-a-sql-in-clause
113
+
114
+    /**
115
+     * @param string $field
116
+     */
110 117
     public function orderIn($field, array $ids)
111 118
     {
112 119
         if (empty($ids)) {
@@ -170,6 +177,9 @@  discard block
 block discarded – undo
170 177
         $db->connection()->close();
171 178
     }
172 179
 
180
+    /**
181
+     * @param string $columns
182
+     */
173 183
     private function alter($table, array $fields, array $changes, $columns)
174 184
     {
175 185
         $map = array();
@@ -238,6 +248,9 @@  discard block
 block discarded – undo
238 248
         }
239 249
     }
240 250
 
251
+    /**
252
+     * @param string $master
253
+     */
241 254
     public function info($master) // only make public so that $this->fts can call it
242 255
     {
243 256
         if ($master == 'settings') {
Please login to merge, or discard this patch.
src/Table/Component.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@  discard block
 block discarded – undo
79 79
         return $html.'</table>';
80 80
     }
81 81
 
82
+    /**
83
+     * @param string $vars
84
+     */
82 85
     protected function values($vars)
83 86
     {
84 87
         if (is_array($vars)) {
@@ -95,6 +98,9 @@  discard block
 block discarded – undo
95 98
         return $attributes;
96 99
     }
97 100
 
101
+    /**
102
+     * @param string $section
103
+     */
98 104
     private function wrapUp($section)
99 105
     {
100 106
         $html = $this->cell;
Please login to merge, or discard this patch.
src/Theme/Component.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@  discard block
 block discarded – undo
91 91
         return $this->fetchSmarty($index['file'], $vars);
92 92
     }
93 93
 
94
+    /**
95
+     * @param string $name
96
+     */
94 97
     public function globalVars($name, $value = null)
95 98
     {
96 99
         $vars = (is_array($name)) ? $name : array($name => $value);
@@ -103,6 +106,9 @@  discard block
 block discarded – undo
103 106
         }
104 107
     }
105 108
 
109
+    /**
110
+     * @param string $name
111
+     */
106 112
     public function addPageMethod($name, $function)
107 113
     {
108 114
         if (!is_callable($function, false, $method)) {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace BootPress\Theme;
4 4
 
5
-use BootPress\Page\Component as Page;
6 5
 use BootPress\Bootstrap\Component as Bootstrap;
7
-use Symfony\Component\Yaml\Yaml;
6
+use BootPress\Page\Component as Page;
8 7
 use Smarty;
8
+use Symfony\Component\Yaml\Yaml;
9 9
 
10 10
 class Component
11 11
 {
Please login to merge, or discard this patch.
src/Validator/Component.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
      * 
120 120
      * Your $field names can be an array by adding brackets to the end ie. 'name[]'.  They can also be multi-dimensional arrays such as 'name[first]', or 'name[players][]', or 'name[parent][child]', etc.  The important thing to remember is that you must always use the exact name given here when referencing them in other methods.
121 121
      * 
122
-     * @param string|array $rules A pipe delimited set (or an array) of rules to validate and filter the $field with.  You can also specify custom messages by making this an ``array($rule => $message, ...)``.  Parameters are comma-delimited, and placed within '**[]**' two brackets.  The available options are:
122
+     * @param string $rules A pipe delimited set (or an array) of rules to validate and filter the $field with.  You can also specify custom messages by making this an ``array($rule => $message, ...)``.  Parameters are comma-delimited, and placed within '**[]**' two brackets.  The available options are:
123 123
      *
124 124
      * - '**remote[rule]**' - Set ``$form->rules['rule'] = function($value){}`` to determine the validity of a submitted value.  The function should return a boolean true or false.
125 125
      * - '**default**' - A default value if the field is empty, or not even set.
Please login to merge, or discard this patch.
src/Blog/Component.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace BootPress\Blog;
4 4
 
5
-use BootPress\Page\Component as Page;
6 5
 use BootPress\Asset\Component as Asset;
7
-use BootPress\Sitemap\Component as Sitemap;
8 6
 use BootPress\Hierarchy\Component as Hierarchy;
7
+use BootPress\Page\Component as Page;
8
+use BootPress\Sitemap\Component as Sitemap;
9 9
 
10 10
 class Component extends Blog
11 11
 {
Please login to merge, or discard this patch.