Completed
Pull Request — master (#16)
by Steve
05:57
created
src/FieldsBuilder.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -18,6 +18,10 @@  discard block
 block discarded – undo
18 18
         $this->config = array_merge($this->config, $groupConfig);
19 19
     }
20 20
 
21
+    /**
22
+     * @param string $key
23
+     * @param string $value
24
+     */
21 25
     public function setGroupConfig($key, $value)
22 26
     {
23 27
         $this->config[$key] = $value;
@@ -135,6 +139,9 @@  discard block
 block discarded – undo
135 139
         return $this;
136 140
     }
137 141
 
142
+    /**
143
+     * @param string $type
144
+     */
138 145
     protected function addFieldType($name, $type, $args = [])
139 146
     {
140 147
         return $this->addField($name, array_merge([
@@ -366,6 +373,9 @@  discard block
 block discarded – undo
366 373
         return $this->setConfig('instructions', $value);
367 374
     }
368 375
 
376
+    /**
377
+     * @param string $key
378
+     */
369 379
     public function setConfig($key, $value)
370 380
     {
371 381
         $field = $this->popLastField();
Please login to merge, or discard this patch.
src/ModifyFieldReturnTypeException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 class ModifyFieldReturnTypeException extends \UnexpectedValueException
6 6
 {
7
-    public function __construct ($returnedType, $code = 0 , $previous = NULL) {
8
-        $message = 'Function "modifyField" closure argument is expected to return a StoutLogic\AcfBuilder\FieldsBuilder, ' . $returnedType . ' returned instead.';
7
+    public function __construct($returnedType, $code = 0, $previous = NULL) {
8
+        $message = 'Function "modifyField" closure argument is expected to return a StoutLogic\AcfBuilder\FieldsBuilder, '.$returnedType.' returned instead.';
9 9
 
10 10
         parent::__construct(trim($message), $code, $previous);
11 11
     }
Please login to merge, or discard this patch.