Completed
Push — master ( a44c5f...daff92 )
by Tim
11s
created
src/Observers/EeCategoryAttributeObserverTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     /**
83 83
      * Return's the PK to create the category => attribute relation.
84 84
      *
85
-     * @return integer The PK to create the relation with
85
+     * @return string The PK to create the relation with
86 86
      */
87 87
     protected function getPrimaryKey()
88 88
     {
Please login to merge, or discard this patch.
src/Subjects/EeBunchSubject.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
RoboFile.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
     {
61 61
         // optimize autoloader with custom path
62 62
         $this->taskComposerInstall()
63
-             ->preferDist()
64
-             ->optimizeAutoloader()
65
-             ->run();
63
+                ->preferDist()
64
+                ->optimizeAutoloader()
65
+                ->run();
66 66
     }
67 67
 
68 68
     /**
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
     {
75 75
         // optimize autoloader with custom path
76 76
         $this->taskComposerUpdate()
77
-             ->preferDist()
78
-             ->optimizeAutoloader()
79
-             ->run();
77
+                ->preferDist()
78
+                ->optimizeAutoloader()
79
+                ->run();
80 80
     }
81 81
 
82 82
     /**
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
     public function prepare()
98 98
     {
99 99
         $this->taskFileSystemStack()
100
-             ->mkdir($this->properties['dist.dir'])
101
-             ->mkdir($this->properties['target.dir'])
102
-             ->mkdir(sprintf('%s/reports', $this->properties['target.dir']))
103
-             ->run();
100
+                ->mkdir($this->properties['dist.dir'])
101
+                ->mkdir($this->properties['target.dir'])
102
+                ->mkdir(sprintf('%s/reports', $this->properties['target.dir']))
103
+                ->run();
104 104
     }
105 105
 
106 106
     /**
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
 
171 171
         // run PHPUnit
172 172
         $this->taskPHPUnit(sprintf('%s/bin/phpunit', $this->properties['vendor.dir']))
173
-             ->configFile('phpunit.xml')
174
-             ->run();
173
+                ->configFile('phpunit.xml')
174
+                ->run();
175 175
     }
176 176
 
177 177
     /**
Please login to merge, or discard this patch.
src/Services/EeCategoryBunchProcessor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @param \TechDivision\Import\Category\Ee\Repositories\CategoryIntRepository         $categoryIntRepository             The category integer repository to use
71 71
      * @param \TechDivision\Import\Category\Ee\Repositories\CategoryTextRepository        $categoryTextRepository            The category text repository to use
72 72
      * @param \TechDivision\Import\Category\Ee\Repositories\CategoryVarcharRepository     $categoryVarcharRepository         The category varchar repository to use
73
-     * @param \TechDivision\Import\Product\Repositories\EavAttributeOptionValueRepository $eavAttributeOptionValueRepository The EAV attribute option value repository to use
73
+     * @param EavAttributeOptionValueRepository $eavAttributeOptionValueRepository The EAV attribute option value repository to use
74 74
      * @param \TechDivision\Import\Repositories\EavAttributeRepository                    $eavAttributeRepository            The EAV attribute repository to use
75 75
      * @param \TechDivision\Import\Repositories\UrlRewriteRepository                      $urlRewriteRepository              The URL rewrite repository to use
76 76
      * @param \TechDivision\Import\Category\Actions\CategoryDatetimeAction                $categoryDatetimeAction            The category datetime action to use
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @param \TechDivision\Import\Category\Actions\CategoryAction                        $categoryAction                    The category action to use
80 80
      * @param \TechDivision\Import\Category\Actions\CategoryTextAction                    $categoryTextAction                The category text action to use
81 81
      * @param \TechDivision\Import\Category\Actions\CategoryVarcharAction                 $categoryVarcharAction             The category varchar action to use
82
-     * @param \TechDivision\Import\Product\Actions\UrlRewriteAction                       $urlRewriteAction                  The URL rewrite action to use
82
+     * @param UrlRewriteAction                       $urlRewriteAction                  The URL rewrite action to use
83 83
      * @param \TechDivision\Import\Assembler\CategoryAssembler                            $categoryAssembler                 The category assembler to use
84 84
      */
85 85
     public function __construct(
Please login to merge, or discard this patch.
tests/Subjects/EeBunchSubjectTest.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -51,18 +51,18 @@  discard block
 block discarded – undo
51 51
 
52 52
         // create a mock registry processor
53 53
         $mockRegistryProcessor = $this->getMockBuilder('TechDivision\Import\Services\RegistryProcessorInterface')
54
-                                      ->setMethods(get_class_methods('TechDivision\Import\Services\RegistryProcessorInterface'))
55
-                                      ->getMock();
54
+                                        ->setMethods(get_class_methods('TechDivision\Import\Services\RegistryProcessorInterface'))
55
+                                        ->getMock();
56 56
 
57 57
         // create a mock category processor
58 58
         $mockCategoryProcessor = $this->getMockBuilder('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface')
59
-                                      ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface'))
60
-                                      ->getMock();
59
+                                        ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface'))
60
+                                        ->getMock();
61 61
 
62 62
         // create a generator
63 63
         $mockGenerator = $this->getMockBuilder('TechDivision\Import\Utils\Generators\GeneratorInterface')
64
-                              ->setMethods(get_class_methods('TechDivision\Import\Utils\Generators\GeneratorInterface'))
65
-                              ->getMock();
64
+                                ->setMethods(get_class_methods('TechDivision\Import\Utils\Generators\GeneratorInterface'))
65
+                                ->getMock();
66 66
 
67 67
         // create the subject to be tested
68 68
         $this->subject = new EeBunchSubject(
@@ -83,17 +83,17 @@  discard block
 block discarded – undo
83 83
 
84 84
         // create a mock category processor
85 85
         $mockProcessor = $this->getMockBuilder('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface')
86
-                              ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface'))
87
-                              ->getMock();
86
+                                ->setMethods(get_class_methods('TechDivision\Import\Category\Ee\Services\EeCategoryBunchProcessorInterface'))
87
+                                ->getMock();
88 88
         $mockProcessor->expects($this->once())
89
-                      ->method('persistCategory')
90
-                      ->with($category = array('path' => '2/3/4'))
91
-                      ->willReturn(null);
89
+                        ->method('persistCategory')
90
+                        ->with($category = array('path' => '2/3/4'))
91
+                        ->willReturn(null);
92 92
 
93 93
         // create a mock subject configuration
94 94
         $mockSubjectConfiguration = $this->getMockBuilder('TechDivision\Import\Configuration\SubjectConfigurationInterface')
95
-                                         ->setMethods(get_class_methods('TechDivision\Import\Configuration\SubjectConfigurationInterface'))
96
-                                         ->getMock();
95
+                                            ->setMethods(get_class_methods('TechDivision\Import\Configuration\SubjectConfigurationInterface'))
96
+                                            ->getMock();
97 97
 
98 98
         // inject the processor + configuration
99 99
         $this->subject->setCategoryProcessor($mockProcessor);
Please login to merge, or discard this patch.