@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @access private |
| 109 | 109 | * |
| 110 | 110 | * @param array $array |
| 111 | - * @param string|array $callback |
|
| 111 | + * @param callable $callback |
|
| 112 | 112 | * @return array |
| 113 | 113 | */ |
| 114 | 114 | protected function transform_array_leafs( array $array, $callback ) { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @since 0.10.0 |
| 125 | 125 | * @access private |
| 126 | 126 | * |
| 127 | - * @param string|array $callback |
|
| 127 | + * @param callable $callback |
|
| 128 | 128 | * @param string (optional) $input The input string |
| 129 | 129 | * @return |
| 130 | 130 | */ |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param string (optional) $identity |
| 48 | 48 | */ |
| 49 | 49 | public function __construct( $identity = null ) { |
| 50 | - $this->entity = $identity; |
|
| 50 | + $this->entity = $identity; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -60,8 +60,8 @@ discard block |
||
| 60 | 60 | * @return self |
| 61 | 61 | */ |
| 62 | 62 | public function describe( $attribute, $characteristic ) { |
| 63 | - $this->scribe[ $attribute ] = $characteristic; |
|
| 64 | - return $this; |
|
| 63 | + $this->scribe[ $attribute ] = $characteristic; |
|
| 64 | + return $this; |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -73,10 +73,10 @@ discard block |
||
| 73 | 73 | * @return Composite |
| 74 | 74 | */ |
| 75 | 75 | public function compose( ArtisanInterface $artisan ) { |
| 76 | - $this->orchestrate( $this->aspect, $artisan ); |
|
| 77 | - return $artisan |
|
| 78 | - ->create( $this->entity ) |
|
| 79 | - ->actualize(); |
|
| 76 | + $this->orchestrate( $this->aspect, $artisan ); |
|
| 77 | + return $artisan |
|
| 78 | + ->create( $this->entity ) |
|
| 79 | + ->actualize(); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -89,8 +89,8 @@ discard block |
||
| 89 | 89 | * @return self |
| 90 | 90 | */ |
| 91 | 91 | public function with( $quality, $attributes = null ) { |
| 92 | - $this->aspect[ $quality ] = $attributes; |
|
| 93 | - return $this; |
|
| 92 | + $this->aspect[ $quality ] = $attributes; |
|
| 93 | + return $this; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -103,8 +103,8 @@ discard block |
||
| 103 | 103 | * @param ArtisanInterface $artisan |
| 104 | 104 | */ |
| 105 | 105 | private function orchestrate( array $aspect, ArtisanInterface &$artisan ) { |
| 106 | - foreach( $aspect as $component => $params ) { |
|
| 107 | - $artisan->$component( $params ); |
|
| 108 | - } |
|
| 106 | + foreach( $aspect as $component => $params ) { |
|
| 107 | + $artisan->$component( $params ); |
|
| 108 | + } |
|
| 109 | 109 | } |
| 110 | 110 | } |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | * @access protected |
| 144 | 144 | * |
| 145 | 145 | * @param string $rule |
| 146 | - * @return bool |
|
| 146 | + * @return integer |
|
| 147 | 147 | */ |
| 148 | 148 | protected function string_has_params( $rule ) { |
| 149 | 149 | return strpos( $rule, ':' ); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @since 0.10.0 |
| 48 | 48 | * |
| 49 | - * @param ArtisanInterface $builder |
|
| 49 | + * @param FormArtisan $builder |
|
| 50 | 50 | * @param string $action |
| 51 | 51 | */ |
| 52 | 52 | public function __construct( FormArtisan $builder, $action ) { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * @since 0.11.0 |
| 80 | 80 | * |
| 81 | 81 | * @param ValidatorFactory $factory |
| 82 | - * @return self |
|
| 82 | + * @return boolean |
|
| 83 | 83 | */ |
| 84 | 84 | protected function validate( ValidatorFactory $factory ) { |
| 85 | 85 | $rule_collection = $this->utilize('rules'); |
@@ -124,6 +124,8 @@ discard block |
||
| 124 | 124 | * @param string $response |
| 125 | 125 | * @param string (optional) $field |
| 126 | 126 | * @param string (optional) $value |
| 127 | + * @param string $field |
|
| 128 | + * @param string $value |
|
| 127 | 129 | * @return string|null |
| 128 | 130 | */ |
| 129 | 131 | protected function string_or_null( $response, $field = null, $value = null ) { |