| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 39 | public function getProductReviewByTitle($productReviewTitle)  | 
            ||
| 40 |     { | 
            ||
| 41 | $productReview = $this->productReviewRepository->findOneBy(['title' => $productReviewTitle]);  | 
            ||
| 42 | |||
| 43 | Assert::notNull(  | 
            ||
| 44 | $productReview,  | 
            ||
| 45 |             sprintf('Product review with title "%s" does not exist', $productReviewTitle) | 
            ||
| 46 | );  | 
            ||
| 47 | |||
| 48 | return $productReview;  | 
            ||
| 49 | }  | 
            ||
| 50 | }  | 
            ||
| 51 | 
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.