original_string: protected function handleOrderable($id, array $input = [])
      {
          if (array_key_exists('_orderable', $input)) {
              $model = $this->model->find($id);
  
              if ($model instanceof Sortable) {
                  1 === $input['_orderable'] ? $model->moveOrderUp() : $model->moveOrderDown();
  
                  return true;
              }
          }
  
          return false;
      }
code: protected function handleOrderable($id, array $input = [])
      {
          if (array_key_exists('_orderable', $input)) {
              $model = $this->model->find($id);
  
              if ($model instanceof Sortable) {
                  1 === $input['_orderable'] ? $model->moveOrderUp() : $model->moveOrderDown();
  
                  return true;
              }
          }
  
          return false;
      }
code_tokens: protected function handleOrderable ( $ id , array $ input = [ ] ) { if ( array_key_exists ( '_orderable' , $ input ) ) { $ model = $ this -> model -> find ( $ id ) ; if ( $ model instanceof Sortable ) { 1 === $ input [ '_orderable' ] ? $ model -> moveOrderUp ( ) : $ model -> moveOrderDown ( ) ; return true ; } } return false ; }
docstring: Handle orderable update.
  
  @param int   $id
  @param array $input
  
  @return bool
docstring_tokens: Handle orderable update .