Completed
Push — master ( dcdcb3...4c21a1 )
by Chauncey
13:40
created
src/Charcoal/Ui/FormGroup/FormGroupTrait.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     /**
76 76
      * @param FormInputBuilder $builder The builder, to create customized form input objects.
77
-     * @return FormGroupInterface Chainable
77
+     * @return FormGroupTrait Chainable
78 78
      */
79 79
     protected function setFormInputBuilder(FormInputBuilder $builder)
80 80
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     /**
86 86
      * @param callable $cb The input callback.
87
-     * @return FormGroupInterface Chainable
87
+     * @return FormGroupTrait Chainable
88 88
      */
89 89
     public function setInputCallback(callable $cb)
90 90
     {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * @param FormInterface $form The parent form object.
97
-     * @return FormGroupInterface Chainable
97
+     * @return FormGroupTrait Chainable
98 98
      */
99 99
     public function setForm(FormInterface $form)
100 100
     {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     /**
114 114
      * @param string $mode The l10n mode.
115
-     * @return FormGroupInterface Chainable
115
+     * @return FormGroupTrait Chainable
116 116
      */
117 117
     public function setL10nMode($mode)
118 118
     {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     /**
132 132
      * @param array $inputs The group inputs.
133
-     * @return FormGroupInterface Chainable
133
+     * @return FormGroupTrait Chainable
134 134
      */
135 135
     public function setInputs(array $inputs)
136 136
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * @param string                   $inputIdent The input identifier.
146 146
      * @param array|FormInputInterface $input      The input object or structure.
147 147
      * @throws InvalidArgumentException If the ident argument is not a string or if the input is not valid.
148
-     * @return FormGroupInterface Chainable
148
+     * @return FormGroupTrait Chainable
149 149
      */
150 150
     public function addInput($inputIdent, $input)
151 151
     {
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      * Form Input generator.
176 176
      *
177 177
      * @param callable $inputCallback Optional. Input callback.
178
-     * @return FormGroupInterface[]|Generator
178
+     * @return \Generator
179 179
      */
180 180
     public function inputs(callable $inputCallback = null)
181 181
     {
Please login to merge, or discard this patch.
src/Charcoal/Ui/MenuItem/AbstractMenuItem.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * @param string $ident The menu item identifier.
95 95
      * @throws InvalidArgumentException If the identifier argument is not a string.
96
-     * @return MenuItem Chainable
96
+     * @return AbstractMenuItem Chainable
97 97
      */
98 98
     public function setIdent($ident)
99 99
     {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     /**
118 118
      * @param mixed $label The menu item label.
119
-     * @return MenuItem Chainable
119
+     * @return AbstractMenuItem Chainable
120 120
      */
121 121
     public function setLabel($label)
122 122
     {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     }
126 126
 
127 127
     /**
128
-     * @return string
128
+     * @return \Charcoal\Translator\Translation|null
129 129
      */
130 130
     public function label()
131 131
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
     /**
136 136
      * @param string $url The menu item URL.
137
-     * @return MenuItem Chainable
137
+     * @return AbstractMenuItem Chainable
138 138
      */
139 139
     public function setUrl($url)
140 140
     {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
     /**
162 162
      * @param array $children The menu item children items structure.
163
-     * @return MenuItem Chainable
163
+     * @return AbstractMenuItem Chainable
164 164
      */
165 165
     public function setChildren(array $children)
166 166
     {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     /**
175 175
      * @param array|MenuItem $child The child menu structure or object.
176 176
      * @throws InvalidArgumentException If the child is not a menu object or structure.
177
-     * @return MenuItem Chainable
177
+     * @return AbstractMenuItem Chainable
178 178
      */
179 179
     public function addChild($child)
180 180
     {
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      * Children (menu item) generator
197 197
      *
198 198
      * @param callable $childCallback Optional callback.
199
-     * @return MenuItemInterface[]
199
+     * @return \Generator
200 200
      */
201 201
     public function children(callable $childCallback = null)
202 202
     {
Please login to merge, or discard this patch.
src/Charcoal/Ui/ServiceProvider/DashboardServiceProvider.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Pimple\Container;
6 6
 use Pimple\ServiceProviderInterface;
7
-
8 7
 use Charcoal\Factory\GenericFactory as Factory;
9
-
10 8
 use Charcoal\Ui\Dashboard\DashboardBuilder;
11 9
 use Charcoal\Ui\Dashboard\DashboardInterface;
12 10
 use Charcoal\Ui\Dashboard\GenericDashboard;
Please login to merge, or discard this patch.
src/Charcoal/Ui/ServiceProvider/FormServiceProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use Charcoal\Ui\Form\FormBuilder;
14 14
 use Charcoal\Ui\Form\FormInterface;
15 15
 use Charcoal\Ui\Form\GenericForm;
16
-use Charcoal\Ui\FormGroup\FormGroupBuilder;
17 16
 use Charcoal\Ui\FormGroup\FormGroupInterface;
18 17
 use Charcoal\Ui\FormGroup\GenericFormGroup;
19 18
 use Charcoal\Ui\FormInput\FormInputBuilder;
Please login to merge, or discard this patch.
src/Charcoal/Ui/ConditionalizableTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     /**
73 73
      * Resolve the conditional logic.
74 74
      *
75
-     * @param  mixed $condition The condition.
75
+     * @param  boolean|string $condition The condition.
76 76
      * @return boolean|null
77 77
      */
78 78
     final protected function parseConditionalLogic($condition)
Please login to merge, or discard this patch.
src/Charcoal/Ui/Dashboard/AbstractDashboard.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Charcoal\Ui\Dashboard;
4 4
 
5
-use InvalidArgumentException;
6
-
7 5
 // From 'charcoal-ui'
8 6
 use Charcoal\Ui\AbstractUiItem;
9 7
 use Charcoal\Ui\Dashboard\DashboardInterface;
Please login to merge, or discard this patch.
src/Charcoal/Ui/Form/FormTrait.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
     /**
113 113
      * @param FactoryInterface $factory A factory, to create customized form gorup objects.
114
-     * @return FormInterface Chainable
114
+     * @return FormTrait Chainable
115 115
      */
116 116
     public function setFormGroupFactory(FactoryInterface $factory)
117 117
     {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
     /**
139 139
      * @param callable $cb The group callback.
140
-     * @return FormInterface Chainable
140
+     * @return FormTrait Chainable
141 141
      */
142 142
     public function setGroupCallback(callable $cb)
143 143
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     /**
150 150
      * @param string $action The "action" value, typically a URL.
151 151
      * @throws InvalidArgumentException If the action argument is not a string.
152
-     * @return FormInterface Chainable
152
+     * @return FormTrait Chainable
153 153
      */
154 154
     public function setAction($action)
155 155
     {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      *
177 177
      * @param string $method Either "post" or "get".
178 178
      * @throws InvalidArgumentException If the method is not post or get.
179
-     * @return FormInterface Chainable
179
+     * @return FormTrait Chainable
180 180
      */
181 181
     public function setMethod($method)
182 182
     {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
     /**
203 203
      * @param string $mode The l10n mode.
204
-     * @return FormInterface Chainable
204
+     * @return FormTrait Chainable
205 205
      */
206 206
     public function setL10nMode($mode)
207 207
     {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      * Set the object's form groups.
223 223
      *
224 224
      * @param array $groups A collection of group structures.
225
-     * @return FormInterface Chainable
225
+     * @return FormTrait Chainable
226 226
      */
227 227
     public function setGroups(array $groups)
228 228
     {
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      * @param  string                   $groupIdent The group identifier.
280 280
      * @param  array|FormGroupInterface $group      The group object or structure.
281 281
      * @throws InvalidArgumentException If the identifier is not a string or the group is invalid.
282
-     * @return FormInterface Chainable
282
+     * @return FormTrait Chainable
283 283
      */
284 284
     public function addGroup($groupIdent, $group)
285 285
     {
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
      * Retrieve the form groups.
400 400
      *
401 401
      * @param callable $groupCallback Optional callback applied to each form group.
402
-     * @return FormGroupInterface[]|Generator
402
+     * @return \Generator
403 403
      */
404 404
     public function groups(callable $groupCallback = null)
405 405
     {
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
      *
521 521
      * @param string $mode Group display mode.
522 522
      * @throws InvalidArgumentException If the display mode is not a string.
523
-     * @return ObjectFormWidget Chainable.
523
+     * @return FormTrait Chainable.
524 524
      */
525 525
     public function setGroupDisplayMode($mode)
526 526
     {
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
 
562 562
     /**
563 563
      * @param array $formData The (pre-populated) form data, as [$key=>$val] array.
564
-     * @return FormInterface Chainable
564
+     * @return FormTrait Chainable
565 565
      */
566 566
     public function setFormData(array $formData)
567 567
     {
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
      * @param string $key The form data key, or poperty identifier.
575 575
      * @param mixed  $val The form data value, for a given key.
576 576
      * @throws InvalidArgumentException If the key argument is not a string.
577
-     * @return FormInterface Chainable
577
+     * @return FormTrait Chainable
578 578
      */
579 579
     public function addFormData($key, $val)
580 580
     {
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
     }
598 598
 
599 599
     /**
600
-     * @return FormWidget
600
+     * @return FormTrait
601 601
      */
602 602
     protected function formWidget()
603 603
     {
Please login to merge, or discard this patch.
src/Charcoal/Ui/Dashboard/DashboardTrait.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      *
55 55
      * @param  object $builder The builder to create customized widget objects.
56 56
      * @throws InvalidArgumentException If the argument is not a widget builder.
57
-     * @return DashboardInterface Chainable
57
+     * @return DashboardTrait Chainable
58 58
      */
59 59
     protected function setWidgetBuilder($builder)
60 60
     {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param  callable|null $callable A callback to be applied to each widget
79 79
      *     or NULL to disable the callback.
80 80
      * @throws InvalidArgumentException If the argument is not callable or NULL.
81
-     * @return DashboardInterface Chainable
81
+     * @return DashboardTrait Chainable
82 82
      */
83 83
     public function setWidgetCallback($callable)
84 84
     {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * Set the dashboard's widgets.
107 107
      *
108 108
      * @param array $widgets A collection of widgets.
109
-     * @return DashboardInterface Chainable
109
+     * @return DashboardTrait Chainable
110 110
      */
111 111
     public function setWidgets(array $widgets)
112 112
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param  string                $widgetIdent The widget identifier.
128 128
      * @param  UiItemInterface|array $widget      The widget object or structure.
129 129
      * @throws InvalidArgumentException If the widget is invalid.
130
-     * @return DashboardInterface Chainable
130
+     * @return DashboardTrait Chainable
131 131
      */
132 132
     public function addWidget($widgetIdent, $widget)
133 133
     {
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * Retrieve the dashboard's widgets.
161 161
      *
162 162
      * @param callable $widgetCallback A callback applied to each widget.
163
-     * @return UiItemInterface[]|Generator
163
+     * @return \Generator
164 164
      */
165 165
     public function widgets(callable $widgetCallback = null)
166 166
     {
Please login to merge, or discard this patch.
src/Charcoal/Ui/Menu/AbstractMenu.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     /**
59 59
      * @param MenuItemBuilder $menuItemBuilder The Menu Item Builder that will be used to create new items.
60
-     * @return AsbtractMenu Chainable
60
+     * @return AbstractMenu Chainable
61 61
      */
62 62
     public function setMenuItemBuilder(MenuItemBuilder $menuItemBuilder)
63 63
     {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      * @param array|MenuItemInterface $item  A menu item structure or object.
93 93
      * @param string                  $ident The menu item identifier, if any.
94 94
      * @throws InvalidArgumentException If the item argument is not a structure or object.
95
-     * @return MenuItem Chainable
95
+     * @return AbstractMenu Chainable
96 96
      */
97 97
     public function addItem($item, $ident = null)
98 98
     {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      * Menu Item generator.
126 126
      *
127 127
      * @param callable $itemCallback Optional. Item callback.
128
-     * @return MenuItemInterface[]
128
+     * @return \Generator
129 129
      */
130 130
     public function items(callable $itemCallback = null)
131 131
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Charcoal\Ui\Menu\MenuInterface;
10 10
 use Charcoal\Ui\MenuItem\MenuItemInterface;
11 11
 use Charcoal\Ui\MenuItem\MenuItemBuilder;
12
-use Charcoal\Ui\UiItemInterface;
13 12
 
14 13
 /**
15 14
  * A Basic Menu
Please login to merge, or discard this patch.