original_string: public function blur($intensity) {
          $image = $this->owner->getImageResource();
          
          switch($intensity){
              case 'light':
                  for ($x=1; $x<=10; $x++)
                      imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
              break;
              
              case 'strong':
                  for ($x=1; $x<=40; $x++)
                      imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
              break;
              
              case 'normal':
              default:
                  for ($x=1; $x<=25; $x++)
                      imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
              break;
          }
          
          $output = clone $this->owner;
  		$output->setImageResource($image);
  		return $output;
      }
code: public function blur($intensity) {
          $image = $this->owner->getImageResource();
          
          switch($intensity){
              case 'light':
                  for ($x=1; $x<=10; $x++)
                      imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
              break;
              
              case 'strong':
                  for ($x=1; $x<=40; $x++)
                      imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
              break;
              
              case 'normal':
              default:
                  for ($x=1; $x<=25; $x++)
                      imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
              break;
          }
          
          $output = clone $this->owner;
  		$output->setImageResource($image);
  		return $output;
      }
code_tokens: public function blur ( $ intensity ) { $ image = $ this -> owner -> getImageResource ( ) ; switch ( $ intensity ) { case 'light' : for ( $ x = 1 ; $ x <= 10 ; $ x ++ ) imagefilter ( $ image , IMG_FILTER_GAUSSIAN_BLUR ) ; break ; case 'strong' : for ( $ x = 1 ; $ x <= 40 ; $ x ++ ) imagefilter ( $ image , IMG_FILTER_GAUSSIAN_BLUR ) ; break ; case 'normal' : default : for ( $ x = 1 ; $ x <= 25 ; $ x ++ ) imagefilter ( $ image , IMG_FILTER_GAUSSIAN_BLUR ) ; break ; } $ output = clone $ this -> owner ; $ output -> setImageResource ( $ image ) ; return $ output ; }
docstring: blur the image
docstring_tokens: blur the image