original_string: protected function createImageCanvas($image)
      {
          $this->type = $this->mime->type($image, 1);
              
          $this->imageSize = ! isset($this->width) ? getimagesize($image) : [$this->width ?? 0, $this->height ?? 0];
  
          $this->canvas = $this->createFrom($image,
          [
              # For type gd2p
              'x'      => $this->x      ?? 0,
              'y'      => $this->y      ?? 0,
              'width'  => $this->width  ?? $this->imageSize[0],
              'height' => $this->height ?? $this->imageSize[1]
          ]);
      }
code: protected function createImageCanvas($image)
      {
          $this->type = $this->mime->type($image, 1);
              
          $this->imageSize = ! isset($this->width) ? getimagesize($image) : [$this->width ?? 0, $this->height ?? 0];
  
          $this->canvas = $this->createFrom($image,
          [
              # For type gd2p
              'x'      => $this->x      ?? 0,
              'y'      => $this->y      ?? 0,
              'width'  => $this->width  ?? $this->imageSize[0],
              'height' => $this->height ?? $this->imageSize[1]
          ]);
      }
code_tokens: protected function createImageCanvas ( $ image ) { $ this -> type = $ this -> mime -> type ( $ image , 1 ) ; $ this -> imageSize = ! isset ( $ this -> width ) ? getimagesize ( $ image ) : [ $ this -> width ?? 0 , $ this -> height ?? 0 ] ; $ this -> canvas = $ this -> createFrom ( $ image , [ # For type gd2p 'x' => $ this -> x ?? 0 , 'y' => $ this -> y ?? 0 , 'width' => $ this -> width ?? $ this -> imageSize [ 0 ] , 'height' => $ this -> height ?? $ this -> imageSize [ 1 ] ] ) ; }
docstring: Protected create image canvas
docstring_tokens: Protected create image canvas