| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 48 | public function isThereShippingMethodNamed($name) |
||
| 49 | { |
||
| 50 | if (null === $table = $this->getDocument()->find('css', 'table')) { |
||
| 51 | return false; |
||
| 52 | } |
||
| 53 | |||
| 54 | try { |
||
| 55 | $row = $this->tableManipulator->getRowWithFields($table, ['name' => $name]); |
||
| 56 | } catch (\InvalidArgumentException $exception) { |
||
| 57 | return false; |
||
| 58 | } |
||
| 59 | |||
| 60 | return 1 === $row; |
||
| 61 | } |
||
| 62 | |||
| 71 |