original_string: public function scopeProtectAdmins(Builder $query)
      {
          /** @var  self  $user */
          $user = auth()->user();
  
          return ($user && $user->is_admin)
              ? $query
              : $query->where('is_admin', false);
      }
code: public function scopeProtectAdmins(Builder $query)
      {
          /** @var  self  $user */
          $user = auth()->user();
  
          return ($user && $user->is_admin)
              ? $query
              : $query->where('is_admin', false);
      }
code_tokens: public function scopeProtectAdmins ( Builder $ query ) { /** @var  self  $user */ $ user = auth ( ) -> user ( ) ; return ( $ user && $ user -> is_admin ) ? $ query : $ query -> where ( 'is_admin' , false ) ; }
docstring: Protect admins.
  
  @param  \Illuminate\Database\Eloquent\Builder  $query
  
  @return \Illuminate\Database\Eloquent\Builder
docstring_tokens: Protect admins .