original_string: protected function seedDays()
      {
          $this->output->info('### Seeding days###');
          //%u	ISO-8601 numeric representation of the day of the week	1 (for Monday) through 7 (for Sunday)
          $timestamp = strtotime('next Monday');
          $days = array();
          for ($i = 1; $i < 8; $i++) {
              $days[$i] = strftime('%A', $timestamp);
              $timestamp = strtotime('+1 day', $timestamp);
          }
  
          foreach ($days as $dayNumber => $day) {
              $this->output->info('### Seeding day: ' . $day . ' ###');
              $dayModel = Day::firstOrNew([
                  'code' => $dayNumber,
                  ]
              );
              $dayModel->name = $day;
              $dayModel->code = $dayNumber;
              $dayModel->lective = true;
              if ($dayNumber == 6 || $dayNumber == 7) {
                  $dayModel->lective = false;
              }
              $dayModel->save();
          }
          $this->output->info('### END Seeding days###');
      }
code: protected function seedDays()
      {
          $this->output->info('### Seeding days###');
          //%u	ISO-8601 numeric representation of the day of the week	1 (for Monday) through 7 (for Sunday)
          $timestamp = strtotime('next Monday');
          $days = array();
          for ($i = 1; $i < 8; $i++) {
              $days[$i] = strftime('%A', $timestamp);
              $timestamp = strtotime('+1 day', $timestamp);
          }
  
          foreach ($days as $dayNumber => $day) {
              $this->output->info('### Seeding day: ' . $day . ' ###');
              $dayModel = Day::firstOrNew([
                  'code' => $dayNumber,
                  ]
              );
              $dayModel->name = $day;
              $dayModel->code = $dayNumber;
              $dayModel->lective = true;
              if ($dayNumber == 6 || $dayNumber == 7) {
                  $dayModel->lective = false;
              }
              $dayModel->save();
          }
          $this->output->info('### END Seeding days###');
      }
code_tokens: protected function seedDays ( ) { $ this -> output -> info ( '### Seeding days###' ) ; //%u	ISO-8601 numeric representation of the day of the week	1 (for Monday) through 7 (for Sunday) $ timestamp = strtotime ( 'next Monday' ) ; $ days = array ( ) ; for ( $ i = 1 ; $ i < 8 ; $ i ++ ) { $ days [ $ i ] = strftime ( '%A' , $ timestamp ) ; $ timestamp = strtotime ( '+1 day' , $ timestamp ) ; } foreach ( $ days as $ dayNumber => $ day ) { $ this -> output -> info ( '### Seeding day: ' . $ day . ' ###' ) ; $ dayModel = Day :: firstOrNew ( [ 'code' => $ dayNumber , ] ) ; $ dayModel -> name = $ day ; $ dayModel -> code = $ dayNumber ; $ dayModel -> lective = true ; if ( $ dayNumber == 6 || $ dayNumber == 7 ) { $ dayModel -> lective = false ; } $ dayModel -> save ( ) ; } $ this -> output -> info ( '### END Seeding days###' ) ; }
docstring: Seed days of the week with ISO-8601 numeric code.
docstring_tokens: Seed days of the week with ISO - 8601 numeric code .