private function executeFollowDetection(array $logItem, array &$fileHistory, GitRepository $git)
    {
        $currentCommit = $this->commitCollection[$logItem['commit']];

        if (($logItem['index'] <= 70) && \in_array($logItem['criteria'], ['R', 'C'])) {
            if (isset($currentCommit['information'][\md5($logItem['to'])])) {
                $pathInformation = $currentCommit['information'][\md5($logItem['to'])];

                if (isset($pathInformation['status']) && ($pathInformation['status'] === 'A')) {
                    return;
                }
            }
        }

        $this->renamingDetection($logItem, $currentCommit, $fileHistory, $git);
        $this->copyDetection($logItem, $fileHistory, $git);
    }
private function executeFollowDetection(array $logItem, array &$fileHistory, GitRepository $git)
    {
        $currentCommit = $this->commitCollection[$logItem['commit']];

        if (($logItem['index'] <= 70) && \in_array($logItem['criteria'], ['R', 'C'])) {
            if (isset($currentCommit['information'][\md5($logItem['to'])])) {
                $pathInformation = $currentCommit['information'][\md5($logItem['to'])];

                if (isset($pathInformation['status']) && ($pathInformation['status'] === 'A')) {
                    return;
                }
            }
        }

        $this->renamingDetection($logItem, $currentCommit, $fileHistory, $git);
        $this->copyDetection($logItem, $fileHistory, $git);
    }
private function executeFollowDetection ( array $ logItem , array & $ fileHistory , GitRepository $ git ) { $ currentCommit = $ this -> commitCollection [ $ logItem [ 'commit' ] ] ; if ( ( $ logItem [ 'index' ] <= 70 ) && \ in_array ( $ logItem [ 'criteria' ] , [ 'R' , 'C' ] ) ) { if ( isset ( $ currentCommit [ 'information' ] [ \ md5 ( $ logItem [ 'to' ] ) ] ) ) { $ pathInformation = $ currentCommit [ 'information' ] [ \ md5 ( $ logItem [ 'to' ] ) ] ; if ( isset ( $ pathInformation [ 'status' ] ) && ( $ pathInformation [ 'status' ] === 'A' ) ) { return ; } } } $ this -> renamingDetection ( $ logItem , $ currentCommit , $ fileHistory , $ git ) ; $ this -> copyDetection ( $ logItem , $ fileHistory , $ git ) ; }
Execute the file follow detection.

@param array         $logItem     The git log item.
@param array         $fileHistory The file history.
@param GitRepository $git         The git repository.

@return void
Execute the file follow detection .