original_string: public function getMarkedPlaces($subject, $placesNameOnly = true, $name = null)
      {
          $places = $this->workflowRegistry->get($subject, $name)->getMarking($subject)->getPlaces();
  
          if ($placesNameOnly) {
              return array_keys($places);
          }
  
          return $places;
      }
code: public function getMarkedPlaces($subject, $placesNameOnly = true, $name = null)
      {
          $places = $this->workflowRegistry->get($subject, $name)->getMarking($subject)->getPlaces();
  
          if ($placesNameOnly) {
              return array_keys($places);
          }
  
          return $places;
      }
code_tokens: public function getMarkedPlaces ( $ subject , $ placesNameOnly = true , $ name = null ) { $ places = $ this -> workflowRegistry -> get ( $ subject , $ name ) -> getMarking ( $ subject ) -> getPlaces ( ) ; if ( $ placesNameOnly ) { return array_keys ( $ places ) ; } return $ places ; }
docstring: Returns marked places.
  
  @param object $subject        A subject
  @param bool   $placesNameOnly If true, returns only places name. If false returns the raw representation
  @param string $name           A workflow name
  
  @return string[]|int[]
docstring_tokens: Returns marked places .