lib/GitHub/Receiver/GitData/Blobs.php
public function createBlob(string $content, string $encoding = 'utf-8'): array
    {
        return $this->getApi()->request($this->getApi()
                                             ->sprintf('/repos/:owner/:repo/git/blobs', $this->getGitData()->getOwner(),
                                                 $this->getGitData()->getRepo()), Request::METHOD_POST, [
                'content'  => $content,
                'encoding' => $encoding
            ]);
    }
public function createBlob(string $content, string $encoding = 'utf-8'): array
    {
        return $this->getApi()->request($this->getApi()
                                             ->sprintf('/repos/:owner/:repo/git/blobs', $this->getGitData()->getOwner(),
                                                 $this->getGitData()->getRepo()), Request::METHOD_POST, [
                'content'  => $content,
                'encoding' => $encoding
            ]);
    }
public function createBlob ( string $ content , string $ encoding = 'utf-8' ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/git/blobs' , $ this -> getGitData ( ) -> getOwner ( ) , $ this -> getGitData ( ) -> getRepo ( ) ) , Request :: METHOD_POST , [ 'content' => $ content , 'encoding' => $ encoding ] ) ; }
Create a Blob

@link https://developer.github.com/v3/git/blobs/#create-a-blob

@param string $content
@param string $encoding

@return array
Create a Blob