Exemplo n.º 1
0
 /**
  * Sets the status on the Gist array based on
  * the commit's status
  *
  * @param  array  $gist   Array of Gist API data
  * @param  Meta   $commit Commit object
  * @return array modified array of Gist API data
  * @since  0.5.0
  */
 protected function set_status($gist, $commit)
 {
     if ('publish' === $commit->get_status()) {
         $gist['public'] = true;
     } else {
         $gist['public'] = false;
     }
     return $gist;
 }