original_string: public function actionView($id)
      {
  
          $photos = GalleryPhoto::find()->where(['gallery_id' => $id])->orderBy('name')->all();
  
          return $this->render('view', [
              'model' => $this->findModel($id),
              'photos' => $photos,
          ]);
      }
code: public function actionView($id)
      {
  
          $photos = GalleryPhoto::find()->where(['gallery_id' => $id])->orderBy('name')->all();
  
          return $this->render('view', [
              'model' => $this->findModel($id),
              'photos' => $photos,
          ]);
      }
code_tokens: public function actionView ( $ id ) { $ photos = GalleryPhoto :: find ( ) -> where ( [ 'gallery_id' => $ id ] ) -> orderBy ( 'name' ) -> all ( ) ; return $ this -> render ( 'view' , [ 'model' => $ this -> findModel ( $ id ) , 'photos' => $ photos , ] ) ; }
docstring: Displays a single Gallery model.
  @param string $id
  @return mixed
docstring_tokens: Displays a single Gallery model .