@@ -189,7 +189,7 @@ |
||
| 189 | 189 | * |
| 190 | 190 | * @param array $attribute The attribute to persist |
| 191 | 191 | * |
| 192 | - * @return void |
|
| 192 | + * @return string |
|
| 193 | 193 | */ |
| 194 | 194 | protected function persistAttribute(array $attribute) |
| 195 | 195 | { |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | * |
| 165 | 165 | * @param array $attributeOption The attribute option to persist |
| 166 | 166 | * |
| 167 | - * @return void |
|
| 167 | + * @return string |
|
| 168 | 168 | */ |
| 169 | 169 | protected function persistAttributeOption(array $attributeOption) |
| 170 | 170 | { |
@@ -203,7 +203,7 @@ |
||
| 203 | 203 | */ |
| 204 | 204 | public function preLoadAttributeId(array $attribute) |
| 205 | 205 | { |
| 206 | - $this->preLoadedAttributeIds[$attribute[MemberNames::ATTRIBUTE_CODE]]= $attribute[MemberNames::ATTRIBUTE_ID]; |
|
| 206 | + $this->preLoadedAttributeIds[$attribute[MemberNames::ATTRIBUTE_CODE]] = $attribute[MemberNames::ATTRIBUTE_ID]; |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | /** |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | unset($keys[array_search(EntityStatus::MEMBER_NAME, $keys, true)]); |
| 77 | 77 | |
| 78 | 78 | // prepare the SET part of the SQL statement |
| 79 | - array_walk($keys, function (&$value, $key) { |
|
| 79 | + array_walk($keys, function(&$value, $key) { |
|
| 80 | 80 | $value = sprintf('%s=:%s', $value, $value); |
| 81 | 81 | }); |
| 82 | 82 | |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | /** |
| 91 | 91 | * Returns the swatch type loader instance. |
| 92 | 92 | * |
| 93 | - * @return \\TechDivision\Import\Attribute\Callbacks\SwatchTypeLoaderInterface The swatch type loader instance |
|
| 93 | + * @return SwatchTypeLoaderInterface The swatch type loader instance |
|
| 94 | 94 | */ |
| 95 | 95 | protected function getSwatchTypeLoader() |
| 96 | 96 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | $artefacts = array(); |
| 62 | 62 | |
| 63 | 63 | // load the attribute option values for the custom store views |
| 64 | - $attributeOptionValues = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_VALUES, array(), function ($value) { |
|
| 64 | + $attributeOptionValues = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_VALUES, array(), function($value) { |
|
| 65 | 65 | return $this->explode($value, $this->getMultipleFieldDelimiter()); |
| 66 | 66 | }); |
| 67 | 67 | |
@@ -58,13 +58,13 @@ |
||
| 58 | 58 | $artefacts = array(); |
| 59 | 59 | |
| 60 | 60 | // load the attribute option values/positions |
| 61 | - $attributeOptionValues = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_VALUES, array(), function ($value) { |
|
| 61 | + $attributeOptionValues = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_VALUES, array(), function($value) { |
|
| 62 | 62 | return $this->explode($value, $this->getMultipleFieldDelimiter()); |
| 63 | 63 | }); |
| 64 | - $attributeOptionSortOrder = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_SORT_ORDER, array(), function ($value) { |
|
| 64 | + $attributeOptionSortOrder = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_SORT_ORDER, array(), function($value) { |
|
| 65 | 65 | return $this->explode($value, $this->getMultipleFieldDelimiter()); |
| 66 | 66 | }); |
| 67 | - $attributeOptionSwatch = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_SWATCH, array(), function ($value) { |
|
| 67 | + $attributeOptionSwatch = $this->getValue(ColumnKeys::ATTRIBUTE_OPTION_SWATCH, array(), function($value) { |
|
| 68 | 68 | return $this->explode($value, $this->getMultipleValueDelimiter()); |
| 69 | 69 | }); |
| 70 | 70 | |
@@ -18,9 +18,6 @@ |
||
| 18 | 18 | * @link http://www.techdivision.com |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | -use Lurker\Event\FilesystemEvent; |
|
| 22 | -use Symfony\Component\Finder\Finder; |
|
| 23 | - |
|
| 24 | 21 | /** |
| 25 | 22 | * Defines the available build tasks. |
| 26 | 23 | * |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | { |
| 58 | 58 | // optimize autoloader with custom path |
| 59 | 59 | return $this->taskComposerInstall() |
| 60 | - ->preferDist() |
|
| 61 | - ->optimizeAutoloader() |
|
| 62 | - ->run(); |
|
| 60 | + ->preferDist() |
|
| 61 | + ->optimizeAutoloader() |
|
| 62 | + ->run(); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -71,9 +71,9 @@ discard block |
||
| 71 | 71 | { |
| 72 | 72 | // optimize autoloader with custom path |
| 73 | 73 | return $this->taskComposerUpdate() |
| 74 | - ->preferDist() |
|
| 75 | - ->optimizeAutoloader() |
|
| 76 | - ->run(); |
|
| 74 | + ->preferDist() |
|
| 75 | + ->optimizeAutoloader() |
|
| 76 | + ->run(); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -94,10 +94,10 @@ discard block |
||
| 94 | 94 | public function prepare() |
| 95 | 95 | { |
| 96 | 96 | return $this->taskFileSystemStack() |
| 97 | - ->mkdir($this->properties['dist.dir']) |
|
| 98 | - ->mkdir($this->properties['target.dir']) |
|
| 99 | - ->mkdir(sprintf('%s/reports', $this->properties['target.dir'])) |
|
| 100 | - ->run(); |
|
| 97 | + ->mkdir($this->properties['dist.dir']) |
|
| 98 | + ->mkdir($this->properties['target.dir']) |
|
| 99 | + ->mkdir(sprintf('%s/reports', $this->properties['target.dir'])) |
|
| 100 | + ->run(); |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
@@ -167,8 +167,8 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | // run PHPUnit |
| 169 | 169 | return $this->taskPHPUnit(sprintf('%s/bin/phpunit', $this->properties['vendor.dir'])) |
| 170 | - ->configFile('phpunit.xml') |
|
| 171 | - ->run(); |
|
| 170 | + ->configFile('phpunit.xml') |
|
| 171 | + ->run(); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /** |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | * Commits a transaction, returning the database connection to autocommit mode until the next call to |
| 285 | 285 | * ProductProcessor::beginTransaction() starts a new transaction. |
| 286 | 286 | * |
| 287 | - * @return boolean Returns TRUE on success or FALSE on failure |
|
| 287 | + * @return boolean|null Returns TRUE on success or FALSE on failure |
|
| 288 | 288 | * @link http://php.net/manual/en/pdo.commit.php |
| 289 | 289 | */ |
| 290 | 290 | public function commit() |
@@ -646,7 +646,7 @@ discard block |
||
| 646 | 646 | * @param string $entityTypeCode The entity type code to return the raw entity for |
| 647 | 647 | * @param array $data An array with data that will be used to initialize the raw entity with |
| 648 | 648 | * |
| 649 | - * @return array The initialized entity |
|
| 649 | + * @return \ArrayAccess The initialized entity |
|
| 650 | 650 | */ |
| 651 | 651 | public function loadRawEntity($entityTypeCode, array $data = array()) |
| 652 | 652 | { |