Skip to content
Snippets Groups Projects
Commit 7596dd72 authored by potreb's avatar potreb
Browse files

fix: reformat

parent 85ebe6b4
No related branches found
No related tags found
3 merge requests!28release: 3.0.0,!23Feature/strong typing pp,!19Add strong typing for 3.0 version
Pipeline #6094 passed
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace WPDesk\Forms; namespace WPDesk\Forms;
use Psr\Container\ContainerInterface;
use WPDesk\Persistence\PersistentContainer; use WPDesk\Persistence\PersistentContainer;
/** /**
...@@ -11,7 +12,7 @@ use WPDesk\Persistence\PersistentContainer; ...@@ -11,7 +12,7 @@ use WPDesk\Persistence\PersistentContainer;
*/ */
interface ContainerForm { interface ContainerForm {
/** /**
* @param \Psr\Container\ContainerInterface $data * @param ContainerInterface $data
* *
* @return void * @return void
*/ */
......
...@@ -124,7 +124,7 @@ abstract class BasicField implements Field { ...@@ -124,7 +124,7 @@ abstract class BasicField implements Field {
} }
public function get_possible_values() { public function get_possible_values() {
return isset( $this->meta['possible_values'] ) ? $this->meta['possible_values'] : []; return $this->meta['possible_values'] ?? [];
} }
public function get_id(): string { public function get_id(): string {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment