Completed
Push — develop ( 36492c...3d5a51 )
by Aleksey
03:25
created
src/SpeckCatalog/Controller/CatalogManagerController.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -141,6 +141,9 @@  discard block
 block discarded – undo
141 141
         return $this->getResponse()->setContent($html);
142 142
     }
143 143
 
144
+    /**
145
+     * @param string $helperName
146
+     */
144 147
     public function getViewHelper($helperName)
145 148
     {
146 149
         return $this->getServiceLocator()->get('viewhelpermanager')->get($helperName);
@@ -282,6 +285,9 @@  discard block
 block discarded – undo
282 285
         return $dash->__invoke($name);
283 286
     }
284 287
 
288
+    /**
289
+     * @return string
290
+     */
285 291
     protected function camel($name)
286 292
     {
287 293
         $camel = new \Zend\Filter\Word\UnderscoreToCamelCase;
Please login to merge, or discard this patch.
src/SpeckCatalog/Mapper/Product.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function find(array $data)
47 47
     {
48
-        $table  = $this->getTableName();
49
-        if(isset($data['product_id'])) {
50
-            $where  = array('product_id' => $data['product_id']);
48
+        $table = $this->getTableName();
49
+        if (isset($data['product_id'])) {
50
+            $where = array('product_id' => $data['product_id']);
51 51
         } else {
52 52
             $where = array('item_number' => $data['item_number']);
53 53
         }
@@ -152,10 +152,10 @@  discard block
 block discarded – undo
152 152
 
153 153
         $select = $this->getSelect($c_b_p)
154 154
             ->columns(array('product_id', 'choice_id', 'option_id'))
155
-            ->join($c_p_o, $c_p_o.'.option_id='.$c_b_p.'.option_id', array())
155
+            ->join($c_p_o, $c_p_o . '.option_id=' . $c_b_p . '.option_id', array())
156 156
             ->where(array(
157
-                $c_b_p.'.product_id' => $builderProductId,
158
-                $c_p_o.'.product_id' => $productId,
157
+                $c_b_p . '.product_id' => $builderProductId,
158
+                $c_p_o . '.product_id' => $productId,
159 159
             ));
160 160
         $rows = $this->selectMany($select);
161 161
 
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/Option/Relational.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
 
205 205
     public function getListType()
206 206
     {
207
-        switch($this->optionTypeId) {
207
+        switch ($this->optionTypeId) {
208 208
             case 1:
209 209
                 return 'dropdown';
210 210
             case 2:
Please login to merge, or discard this patch.