@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @var array |
| 29 | 29 | */ |
| 30 | - public $after = array(); |
|
| 30 | + public $after = array(); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Initialize the category saving/deleting events. |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | |
| 38 | 38 | // Get values before saving |
| 39 | - craft()->on('categories.onBeforeSaveCategory', function (Event $event) { |
|
| 39 | + craft()->on('categories.onBeforeSaveCategory', function(Event $event) { |
|
| 40 | 40 | |
| 41 | 41 | // Get category id to save |
| 42 | 42 | $id = $event->params['category']->id; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | 59 | // Get values after saving |
| 60 | - craft()->on('categories.onSaveCategory', function (Event $event) { |
|
| 60 | + craft()->on('categories.onSaveCategory', function(Event $event) { |
|
| 61 | 61 | |
| 62 | 62 | // Get saved category |
| 63 | 63 | $category = $event->params['category']; |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | }); |
| 99 | 99 | |
| 100 | 100 | // Get values before deleting |
| 101 | - craft()->on('categories.onBeforeDeleteCategory', function (Event $event) { |
|
| 101 | + craft()->on('categories.onBeforeDeleteCategory', function(Event $event) { |
|
| 102 | 102 | |
| 103 | 103 | // Get deleted category |
| 104 | 104 | $category = $event->params['category']; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @var array |
| 29 | 29 | */ |
| 30 | - public $after = array(); |
|
| 30 | + public $after = array(); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Initialize the category saving/deleting events. |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | |
| 38 | 38 | // Get values before saving |
| 39 | - craft()->on('entries.onBeforeSaveEntry', function (Event $event) { |
|
| 39 | + craft()->on('entries.onBeforeSaveEntry', function(Event $event) { |
|
| 40 | 40 | |
| 41 | 41 | // Get entry id to save |
| 42 | 42 | $id = $event->params['entry']->id; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | 59 | // Get values after saving |
| 60 | - craft()->on('entries.onSaveEntry', function (Event $event) { |
|
| 60 | + craft()->on('entries.onSaveEntry', function(Event $event) { |
|
| 61 | 61 | |
| 62 | 62 | // Get saved entry |
| 63 | 63 | $entry = $event->params['entry']; |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | }); |
| 99 | 99 | |
| 100 | 100 | // Get values before deleting |
| 101 | - craft()->on('entries.onBeforeDeleteEntry', function (Event $event) { |
|
| 101 | + craft()->on('entries.onBeforeDeleteEntry', function(Event $event) { |
|
| 102 | 102 | |
| 103 | 103 | // Get deleted entry |
| 104 | 104 | $entry = $event->params['entry']; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @var array |
| 29 | 29 | */ |
| 30 | - public $after = array(); |
|
| 30 | + public $after = array(); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Initialize the category saving/deleting events. |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | |
| 38 | 38 | // Get values before saving |
| 39 | - craft()->on('users.onBeforeSaveUser', function (Event $event) { |
|
| 39 | + craft()->on('users.onBeforeSaveUser', function(Event $event) { |
|
| 40 | 40 | |
| 41 | 41 | // Get user id to save |
| 42 | 42 | $id = $event->params['user']->id; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | 59 | // Get values after saving |
| 60 | - craft()->on('users.onSaveUser', function (Event $event) { |
|
| 60 | + craft()->on('users.onSaveUser', function(Event $event) { |
|
| 61 | 61 | |
| 62 | 62 | // Get saved user |
| 63 | 63 | $user = $event->params['user']; |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | }); |
| 96 | 96 | |
| 97 | 97 | // Get values before deleting |
| 98 | - craft()->on('users.onBeforeDeleteUser', function (Event $event) { |
|
| 98 | + craft()->on('users.onBeforeDeleteUser', function(Event $event) { |
|
| 99 | 99 | |
| 100 | 100 | // Get deleted user |
| 101 | 101 | $user = $event->params['user']; |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * |
| 83 | 83 | * @param string $source |
| 84 | 84 | * |
| 85 | - * @return array |
|
| 85 | + * @return string[] |
|
| 86 | 86 | */ |
| 87 | 87 | public function getDefaultTableAttributes($source = null) |
| 88 | 88 | { |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | * @param DbCommand $query |
| 168 | 168 | * @param ElementCriteriaModel $criteria |
| 169 | 169 | * |
| 170 | - * @return bool |
|
| 170 | + * @return boolean|null |
|
| 171 | 171 | */ |
| 172 | 172 | public function modifyElementsQuery(DbCommand $query, ElementCriteriaModel $criteria) |
| 173 | 173 | { |