Changeset View
Changeset View
Standalone View
Standalone View
core/units/reviews/reviews_event_handler.php
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | |||||
* @param kEvent $event | * @param kEvent $event | ||||
* @return int | * @return int | ||||
*/ | */ | ||||
function _getReviewCategory($event) | function _getReviewCategory($event) | ||||
{ | { | ||||
$items_info = $this->Application->GetVar($event->getPrefixSpecial()); | $items_info = $this->Application->GetVar($event->getPrefixSpecial()); | ||||
if ($items_info) { | if ($items_info) { | ||||
// rev:PresetFormFields is used to initialize new review creation | // rev:PresetFormFields is used to initialize new review creation | ||||
Lint: CodingStandard.Commenting.InlineComment.InvalidEndChar: Inline comments must end in full-stops, exclamation marks, or question marks | |||||
Inline comments must start with a capital letter Lint: CodingStandard.Commenting.InlineComment.NotCapital: Inline comments must start with a capital letter | |||||
list ($review_id, ) = each($items_info); | $review_id = key($items_info); | ||||
} | } | ||||
else { | else { | ||||
// when adding new review in admin | // when adding new review in admin | ||||
$review_id = false; | $review_id = false; | ||||
} | } | ||||
if (!$review_id) { | if (!$review_id) { | ||||
▲ Show 20 Lines • Show All 495 Lines • ▼ Show 20 Line(s) | |||||
*/ | */ | ||||
protected function OnSetPerPage(kEvent $event) | protected function OnSetPerPage(kEvent $event) | ||||
{ | { | ||||
parent::OnSetPerPage($event); | parent::OnSetPerPage($event); | ||||
$parent_prefix = $event->Application->getUnitOption($event->Prefix, 'ParentPrefix'); | $parent_prefix = $event->Application->getUnitOption($event->Prefix, 'ParentPrefix'); | ||||
$event->SetRedirectParam('pass', 'm,' . $event->getPrefixSpecial() . ',' . $parent_prefix); | $event->SetRedirectParam('pass', 'm,' . $event->getPrefixSpecial() . ',' . $parent_prefix); | ||||
} | } | ||||
} | } | ||||
Expected 0 spaces before closing brace; 4 found Lint: CodingStandard.Classes.ClassDeclaration.SpaceBeforeCloseBrace: Expected 0 spaces before closing brace; 4 found | |||||
No newline at end of file |
Inline comments must end in full-stops, exclamation marks, or question marks