コード例 #1
0
ファイル: ReFormat.php プロジェクト: graze/data-file
 /**
  * Can this file be modified by this modifier
  *
  * @param FileNodeInterface $file
  *
  * @return bool
  */
 public function canModify(FileNodeInterface $file)
 {
     return $file->exists() && $file instanceof FormatAwareInterface && $file->getFormat() !== null && $this->parserFactory->getParser($file->getFormat()) !== null;
 }
コード例 #2
0
ファイル: Head.php プロジェクト: graze/data-file
 /**
  * Can this file be modified by this modifier
  *
  * @param FileNodeInterface $file
  *
  * @return bool
  */
 public function canModify(FileNodeInterface $file)
 {
     return $file instanceof LocalFile && $file->exists();
 }