@@ -95,7 +95,7 @@ |
||
95 | 95 | /** |
96 | 96 | * Return's the row ID of the product that has been created recently. |
97 | 97 | * |
98 | - * @return string The row Id |
|
98 | + * @return integer The row Id |
|
99 | 99 | */ |
100 | 100 | public function getLastRowId() |
101 | 101 | { |
@@ -53,18 +53,18 @@ |
||
53 | 53 | |
54 | 54 | // create a mock registry processor |
55 | 55 | $mockRegistryProcessor = $this->getMockBuilder('TechDivision\Import\Services\RegistryProcessorInterface') |
56 | - ->setMethods(get_class_methods('TechDivision\Import\Services\RegistryProcessorInterface')) |
|
57 | - ->getMock(); |
|
56 | + ->setMethods(get_class_methods('TechDivision\Import\Services\RegistryProcessorInterface')) |
|
57 | + ->getMock(); |
|
58 | 58 | |
59 | 59 | // create a generator |
60 | 60 | $mockGenerator = $this->getMockBuilder('TechDivision\Import\Utils\Generators\GeneratorInterface') |
61 | - ->setMethods(get_class_methods('TechDivision\Import\Utils\Generators\GeneratorInterface')) |
|
62 | - ->getMock(); |
|
61 | + ->setMethods(get_class_methods('TechDivision\Import\Utils\Generators\GeneratorInterface')) |
|
62 | + ->getMock(); |
|
63 | 63 | |
64 | 64 | // create a mock category processor |
65 | 65 | $mockCategoryProcessor = $this->getMockBuilder('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface') |
66 | - ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface')) |
|
67 | - ->getMock(); |
|
66 | + ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface')) |
|
67 | + ->getMock(); |
|
68 | 68 | |
69 | 69 | // mock the event emitter |
70 | 70 | $mockEmitter = $this->getMockBuilder('League\Event\EmitterInterface') |
@@ -18,10 +18,6 @@ |
||
18 | 18 | * @link http://www.techdivision.com |
19 | 19 | */ |
20 | 20 | |
21 | -use Lurker\Event\FilesystemEvent; |
|
22 | - |
|
23 | -use Symfony\Component\Finder\Finder; |
|
24 | - |
|
25 | 21 | /** |
26 | 22 | * Defines the available build tasks. |
27 | 23 | * |
@@ -58,9 +58,9 @@ discard block |
||
58 | 58 | { |
59 | 59 | // optimize autoloader with custom path |
60 | 60 | return $this->taskComposerInstall() |
61 | - ->preferDist() |
|
62 | - ->optimizeAutoloader() |
|
63 | - ->run(); |
|
61 | + ->preferDist() |
|
62 | + ->optimizeAutoloader() |
|
63 | + ->run(); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -72,9 +72,9 @@ discard block |
||
72 | 72 | { |
73 | 73 | // optimize autoloader with custom path |
74 | 74 | return $this->taskComposerUpdate() |
75 | - ->preferDist() |
|
76 | - ->optimizeAutoloader() |
|
77 | - ->run(); |
|
75 | + ->preferDist() |
|
76 | + ->optimizeAutoloader() |
|
77 | + ->run(); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -95,10 +95,10 @@ discard block |
||
95 | 95 | public function prepare() |
96 | 96 | { |
97 | 97 | return $this->taskFileSystemStack() |
98 | - ->mkdir($this->properties['dist.dir']) |
|
99 | - ->mkdir($this->properties['target.dir']) |
|
100 | - ->mkdir(sprintf('%s/reports', $this->properties['target.dir'])) |
|
101 | - ->run(); |
|
98 | + ->mkdir($this->properties['dist.dir']) |
|
99 | + ->mkdir($this->properties['target.dir']) |
|
100 | + ->mkdir(sprintf('%s/reports', $this->properties['target.dir'])) |
|
101 | + ->run(); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
@@ -168,8 +168,8 @@ discard block |
||
168 | 168 | |
169 | 169 | // run PHPUnit |
170 | 170 | return $this->taskPHPUnit(sprintf('%s/bin/phpunit', $this->properties['vendor.dir'])) |
171 | - ->configFile('phpunit.xml') |
|
172 | - ->run(); |
|
171 | + ->configFile('phpunit.xml') |
|
172 | + ->run(); |
|
173 | 173 | } |
174 | 174 | |
175 | 175 | /** |