Conditions | 5 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function checkParity(ProductVariantInterface $variant, ProductInterface $product) |
||
27 | { |
||
28 | foreach ($product->getVariants() as $existingVariant) { |
||
29 | // This check is require, because this function has to look for any other different variant with same option values set |
||
30 | if ($variant === $existingVariant || count($variant->getOptionValues()) !== count($product->getOptions())) { |
||
31 | continue; |
||
32 | } |
||
33 | |||
34 | if ($this->matchOptions($variant, $existingVariant)) { |
||
35 | return true; |
||
36 | } |
||
37 | } |
||
38 | |||
39 | return false; |
||
40 | } |
||
41 | |||
59 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.