| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 59 | public function handle(CommandInterface $command)  | 
            ||
| 60 |     { | 
            ||
| 61 | /** @var ClassifyFlight $command */  | 
            ||
| 62 | |||
| 63 | $projectId = 'NULL';  | 
            ||
| 64 |         if (!empty($command->getProjectId())) { | 
            ||
| 65 | $projectId = $command->getProjectId();  | 
            ||
| 66 | }  | 
            ||
| 67 | |||
| 68 |         $result = $this->db->query(sprintf('UPDATE %s%s SET fk_project=%s WHERE rowid=%s', MAIN_DB_PREFIX, | 
            ||
| 69 | Bbcvols::$table, $projectId, $command->getFlightId()));  | 
            ||
| 70 |         if (!$result) { | 
            ||
| 71 | throw new \Exception($this->db->error());  | 
            ||
| 72 | }  | 
            ||
| 73 | }  | 
            ||
| 74 | }  |