Example #1
0
 /**
  * Check file syntax
  *
  * @param string $file Path
  *
  * @return boolean
  */
 public function checkSyntax($file)
 {
     $args = sprintf('-l %s', $file);
     $data = $this->bin->execute($args);
     $check = $data['code'] === 0;
     return $check;
 }