src/Command/Project/Branch.php
public function projectBranch($opts = ['format' => 'table', 'fields' => ''])
    {
        $result = $this->taskProjectBranch()
            ->run();

        if (!$result->wasSuccessful()) {
            $this->exitError("Failed to run command");
        }

        $data = $result->getData();
        return new PropertyList(['branch' => $data['data'][0]['message']]);
    }
public function projectBranch($opts = ['format' => 'table', 'fields' => ''])
    {
        $result = $this->taskProjectBranch()
            ->run();

        if (!$result->wasSuccessful()) {
            $this->exitError("Failed to run command");
        }

        $data = $result->getData();
        return new PropertyList(['branch' => $data['data'][0]['message']]);
    }
public function projectBranch ( $ opts = [ 'format' => 'table' , 'fields' => '' ] ) { $ result = $ this -> taskProjectBranch ( ) -> run ( ) ; if ( ! $ result -> wasSuccessful ( ) ) { $ this -> exitError ( "Failed to run command" ) ; } $ data = $ result -> getData ( ) ; return new PropertyList ( [ 'branch' => $ data [ 'data' ] [ 0 ] [ 'message' ] ] ) ; }
Get current project branch

@return \Qobo\Robo\Formatter\PropertyList
Get current project branch