original_string: public function actionImages(): Response
      {
          $result = [];
  
          foreach (AttachmentModel::find()->each() as $attachment) {
              $result[] = [
                  'id' => $attachment->id,
                  'url' => $attachment->getFileUrl('origin'),
                  'thumb' => $attachment->getFileUrl('thumbnail'),
              ];
          }
  
          return $this->asJson($result);
      }
code: public function actionImages(): Response
      {
          $result = [];
  
          foreach (AttachmentModel::find()->each() as $attachment) {
              $result[] = [
                  'id' => $attachment->id,
                  'url' => $attachment->getFileUrl('origin'),
                  'thumb' => $attachment->getFileUrl('thumbnail'),
              ];
          }
  
          return $this->asJson($result);
      }
code_tokens: public function actionImages ( ) : Response { $ result = [ ] ; foreach ( AttachmentModel :: find ( ) -> each ( ) as $ attachment ) { $ result [ ] = [ 'id' => $ attachment -> id , 'url' => $ attachment -> getFileUrl ( 'origin' ) , 'thumb' => $ attachment -> getFileUrl ( 'thumbnail' ) , ] ; } return $ this -> asJson ( $ result ) ; }
docstring: Return list of all images
  
  @return Response
docstring_tokens: Return list of all images