original_string: protected function migrateLocation($srcLocation) {
          $location = ScoolLocation::firstOrNew([
              'name' => $srcLocation->name,
          ]);
          $location->save();
          $location->shortname = $srcLocation->shortName;
          $location->description = $srcLocation->description;
          $location->code = $srcLocation->external_code;
      }
code: protected function migrateLocation($srcLocation) {
          $location = ScoolLocation::firstOrNew([
              'name' => $srcLocation->name,
          ]);
          $location->save();
          $location->shortname = $srcLocation->shortName;
          $location->description = $srcLocation->description;
          $location->code = $srcLocation->external_code;
      }
code_tokens: protected function migrateLocation ( $ srcLocation ) { $ location = ScoolLocation :: firstOrNew ( [ 'name' => $ srcLocation -> name , ] ) ; $ location -> save ( ) ; $ location -> shortname = $ srcLocation -> shortName ; $ location -> description = $ srcLocation -> description ; $ location -> code = $ srcLocation -> external_code ; }
docstring: Migrate location.
  
  @param $srcLocation
docstring_tokens: Migrate location .