original_string: protected function seedMetrics()
      {
          $defaultMetrics = [
              [
                  'name'          => 'Cups of coffee',
                  'suffix'        => 'Cups',
                  'description'   => 'How many cups of coffee we\'ve drank.',
                  'default_value' => 0,
                  'calc_type'     => 1,
                  'display_chart' => 1,
              ],
          ];
  
          Metric::truncate();
  
          foreach ($defaultMetrics as $metric) {
              Metric::create($metric);
          }
      }
code: protected function seedMetrics()
      {
          $defaultMetrics = [
              [
                  'name'          => 'Cups of coffee',
                  'suffix'        => 'Cups',
                  'description'   => 'How many cups of coffee we\'ve drank.',
                  'default_value' => 0,
                  'calc_type'     => 1,
                  'display_chart' => 1,
              ],
          ];
  
          Metric::truncate();
  
          foreach ($defaultMetrics as $metric) {
              Metric::create($metric);
          }
      }
code_tokens: protected function seedMetrics ( ) { $ defaultMetrics = [ [ 'name' => 'Cups of coffee' , 'suffix' => 'Cups' , 'description' => 'How many cups of coffee we\'ve drank.' , 'default_value' => 0 , 'calc_type' => 1 , 'display_chart' => 1 , ] , ] ; Metric :: truncate ( ) ; foreach ( $ defaultMetrics as $ metric ) { Metric :: create ( $ metric ) ; } }
docstring: Seed the metrics table.
  
  @return void
docstring_tokens: Seed the metrics table .