| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 25 | public function initialize() | ||
| 26 |     { | ||
| 27 |         $this->format = $this->jQuery("data('drupalDateFormat')"); | ||
| 28 | |||
| 29 |         if (empty($this->format)) { | ||
| 30 |             throw new \RuntimeException('Unknown date format.'); | ||
| 31 | } | ||
| 32 | |||
| 33 | $this->time = strtotime($this->date); | ||
|  | |||
| 34 | $this->formatted = date($this->format, $this->time); | ||
| 35 | } | ||
| 36 | |||
| 83 | 
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.