@@ -36,14 +36,12 @@ |
||
36 | 36 | if ('get' == $match[1]) |
37 | 37 | { |
38 | 38 | return $this->$attribute; |
39 | - } |
|
40 | - else |
|
39 | + } else |
|
41 | 40 | { |
42 | 41 | $this->$attribute = $this->_validate_attribute($match[2], $args[0]); |
43 | 42 | return $this; |
44 | 43 | } |
45 | - } |
|
46 | - else |
|
44 | + } else |
|
47 | 45 | { |
48 | 46 | throw new \blitze\sitemaker\exception\unexpected_value(array($name, 'UNDEFINED_METHOD')); |
49 | 47 | } |
@@ -97,8 +97,7 @@ |
||
97 | 97 | if (is_null($entity->$accessor())) |
98 | 98 | { |
99 | 99 | $entity = $this->_insert($entity); |
100 | - } |
|
101 | - else |
|
100 | + } else |
|
102 | 101 | { |
103 | 102 | $this->_update($entity); |
104 | 103 | } |
@@ -86,8 +86,7 @@ |
||
86 | 86 | if ($entity->get_item_id()) |
87 | 87 | { |
88 | 88 | return $this->tree->update_item($entity->get_item_id(), $sql_data); |
89 | - } |
|
90 | - else |
|
89 | + } else |
|
91 | 90 | { |
92 | 91 | return $this->tree->insert($sql_data); |
93 | 92 | } |
@@ -41,8 +41,7 @@ |
||
41 | 41 | if (is_array($message)) |
42 | 42 | { |
43 | 43 | $this->message = (string) $message[0]; |
44 | - } |
|
45 | - else |
|
44 | + } else |
|
46 | 45 | { |
47 | 46 | $this->message = $message; |
48 | 47 | } |