Changeset View
Changeset View
Standalone View
Standalone View
core/units/helpers/file_helper.php
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | |||||
* @param string $prefix | * @param string $prefix | ||||
* @param bool $is_image | * @param bool $is_image | ||||
* @return void | * @return void | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
public function createItemFiles($prefix, $is_image = false) | public function createItemFiles($prefix, $is_image = false) | ||||
{ | { | ||||
$items_info = $this->Application->GetVar($prefix); | $items_info = $this->Application->GetVar($prefix); | ||||
if ($items_info) { | if ($items_info) { | ||||
Lint: CodingStandard.WhiteSpace.ControlStructureSpacing.NoLineBeforeOpen: No blank line found before "if" control structure | |||||
Expected 1 spaces before "if" closing bracket; 0 found Lint: CodingStandard.WhiteSpace.ControlStructureSpacing.SpaceBeforeCloseBrace: Expected 1 spaces before "if" closing bracket; 0 found | |||||
Expected 1 spaces after "if" opening bracket; 0 found Lint: CodingStandard.WhiteSpace.ControlStructureSpacing.SpacingAfterOpenBrace: Expected 1 spaces after "if" opening bracket; 0 found | |||||
list (, $fields_values) = each($items_info); | $fields_values = current($items_info); | ||||
$this->createUploadFields($prefix, $fields_values, $is_image); | $this->createUploadFields($prefix, $fields_values, $is_image); | ||||
} | } | ||||
else { | else { | ||||
$this->createUploadFields($prefix, Array(), $is_image); | $this->createUploadFields($prefix, Array(), $is_image); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines |
No blank line found before "if" control structure