@@ -106,14 +106,14 @@ discard block |
||
| 106 | 106 | * @return \GV\GF_Entry|null An instance of this entry or null if not found. |
| 107 | 107 | */ |
| 108 | 108 | public static function from_entry( $entry ) { |
| 109 | - if ( empty( $entry['id'] ) ) { |
|
| 109 | + if ( empty( $entry[ 'id' ] ) ) { |
|
| 110 | 110 | return null; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | $self = new self(); |
| 114 | 114 | $self->entry = $entry; |
| 115 | 115 | |
| 116 | - $self->ID = $self->entry['id']; |
|
| 116 | + $self->ID = $self->entry[ 'id' ]; |
|
| 117 | 117 | $self->slug = $self->get_slug(); |
| 118 | 118 | |
| 119 | 119 | return $self; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * @return bool Whether the offset exists or not. |
| 129 | 129 | */ |
| 130 | 130 | public function offsetExists( $offset ) { |
| 131 | - return isset( $this->entry[$offset] ); |
|
| 131 | + return isset( $this->entry[ $offset ] ); |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * @return mixed The value of the requested entry data. |
| 144 | 144 | */ |
| 145 | 145 | public function offsetGet( $offset ) { |
| 146 | - return $this->entry[$offset]; |
|
| 146 | + return $this->entry[ $offset ]; |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |