original_string: private function createThumbnails(UploadedFile $uploadedFile)
      {
          if (empty($this->dimensions)) {
              return $this;
          }
  
          foreach ($this->dimensions as $key => $dimension) {
              if (empty($dimension) || ! is_array($dimension)) {
                  continue;
              }
  
              list($width, $height, $squared) = $dimension;
  
              $targetFilepath = $this->getThumbnailsTargetUploadFilepath($key);
  
              $image = $this->resizeCropImage($uploadedFile, $targetFilepath, $width, $height, $squared);
  
              if (! $image) {
                  continue;
              }
  
              $this->results['dimensions'][$key] = $image;
          }
  
          return $this;
      }
code: private function createThumbnails(UploadedFile $uploadedFile)
      {
          if (empty($this->dimensions)) {
              return $this;
          }
  
          foreach ($this->dimensions as $key => $dimension) {
              if (empty($dimension) || ! is_array($dimension)) {
                  continue;
              }
  
              list($width, $height, $squared) = $dimension;
  
              $targetFilepath = $this->getThumbnailsTargetUploadFilepath($key);
  
              $image = $this->resizeCropImage($uploadedFile, $targetFilepath, $width, $height, $squared);
  
              if (! $image) {
                  continue;
              }
  
              $this->results['dimensions'][$key] = $image;
          }
  
          return $this;
      }
code_tokens: private function createThumbnails ( UploadedFile $ uploadedFile ) { if ( empty ( $ this -> dimensions ) ) { return $ this ; } foreach ( $ this -> dimensions as $ key => $ dimension ) { if ( empty ( $ dimension ) || ! is_array ( $ dimension ) ) { continue ; } list ( $ width , $ height , $ squared ) = $ dimension ; $ targetFilepath = $ this -> getThumbnailsTargetUploadFilepath ( $ key ) ; $ image = $ this -> resizeCropImage ( $ uploadedFile , $ targetFilepath , $ width , $ height , $ squared ) ; if ( ! $ image ) { continue ; } $ this -> results [ 'dimensions' ] [ $ key ] = $ image ; } return $ this ; }
docstring: Create thumbnails.
  
  @access private
  @param UploadedFile $uploadedFile
docstring_tokens: Create thumbnails .