GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 11-11 lines in 2 locations

src/BoletoSimples/Resources/BaseResource.php 2 locations

@@ 141-151 (lines=11) @@
138
    return $object;
139
  }
140
141
  public static function update(array $attributes)
142
  {
143
      if (!isset($attributes['id'])) {
144
          throw new \InvalidArgumentException('Id is required for this action');
145
      }
146
147
      $class = get_called_class();
148
      $object = new $class($attributes);
149
      $object->save('patch');
150
      return $obj;
151
  }
152
153
  public static function replace(array $attributes)
154
  {
@@ 153-163 (lines=11) @@
150
      return $obj;
151
  }
152
153
  public static function replace(array $attributes)
154
  {
155
      if (!isset($attributes['id'])) {
156
          throw new \InvalidArgumentException('Id is required for this action');
157
      }
158
159
      $class = get_called_class();
160
      $object = new $class($attributes);
161
      $object->save('update');
162
      return $obj;
163
  }
164
165
  private static function _all($params = array()) {
166
    $class = get_called_class();