original_string: protected function getFolderItemCount($path)
      {
          $folderItems = array_merge(
              $this->getStorageDisk()->files($path),
              $this->getStorageDisk()->directories($path)
          );
  
          $size = 0;
          foreach ($folderItems as $folderItem) {
              if ($this->isVisible($folderItem)) {
                  $size++;
              }
          }
  
          return $size;
      }
code: protected function getFolderItemCount($path)
      {
          $folderItems = array_merge(
              $this->getStorageDisk()->files($path),
              $this->getStorageDisk()->directories($path)
          );
  
          $size = 0;
          foreach ($folderItems as $folderItem) {
              if ($this->isVisible($folderItem)) {
                  $size++;
              }
          }
  
          return $size;
      }
code_tokens: protected function getFolderItemCount ( $ path ) { $ folderItems = array_merge ( $ this -> getStorageDisk ( ) -> files ( $ path ) , $ this -> getStorageDisk ( ) -> directories ( $ path ) ) ; $ size = 0 ; foreach ( $ folderItems as $ folderItem ) { if ( $ this -> isVisible ( $ folderItem ) ) { $ size ++ ; } } return $ size ; }
docstring: Returns a number of items on a folder.
  @param string $path Specifies the folder path relative to the storage disk root.
  @return integer Returns the number of items in the folder.
docstring_tokens: Returns a number of items on a folder .