protected function normalizeFileEvent($event, $name)
    {
        if ('new' === $event) {
            return IN_CREATE;
        }

        $event = $this->normalizeEvent($event);
        if (isset($this->files[$name])) {
            return $this->isCreated($event) ? IN_MODIFY : $event;
        }
        if (!$this->isDeleted($event)) {
            $this->createFileResource($name);

            return IN_CREATE;
        }

        return null;
    }
protected function normalizeFileEvent($event, $name)
    {
        if ('new' === $event) {
            return IN_CREATE;
        }

        $event = $this->normalizeEvent($event);
        if (isset($this->files[$name])) {
            return $this->isCreated($event) ? IN_MODIFY : $event;
        }
        if (!$this->isDeleted($event)) {
            $this->createFileResource($name);

            return IN_CREATE;
        }

        return null;
    }
protected function normalizeFileEvent ( $ event , $ name ) { if ( 'new' === $ event ) { return IN_CREATE ; } $ event = $ this -> normalizeEvent ( $ event ) ; if ( isset ( $ this -> files [ $ name ] ) ) { return $ this -> isCreated ( $ event ) ? IN_MODIFY : $ event ; } if ( ! $ this -> isDeleted ( $ event ) ) { $ this -> createFileResource ( $ name ) ; return IN_CREATE ; } return null ; }
Normalizes file event

@param int    $event
@param string $name

@return null|int
Normalizes file event