@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | function __construct(\Core\Models\User\UserRepository $userRepository, Request $request) |
| 31 | 31 | {
|
| 32 | - $this->userRepository = $userRepository; |
|
| 33 | - $this->request = $request; |
|
| 32 | + $this->userRepository = $userRepository; |
|
| 33 | + $this->request = $request; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | public function process() |
@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | $this->add(); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - $Users = $this->userRepository->findMany([],$this->limit); |
|
| 43 | + $Users = $this->userRepository->findMany([], $this->limit); |
|
| 44 | 44 | |
| 45 | - $table = Table::create(); |
|
| 46 | - $table->addColNames([0, 1, 2,3]); |
|
| 45 | + $table = Table::create(); |
|
| 46 | + $table->addColNames([0, 1, 2, 3]); |
|
| 47 | 47 | $table->addClass('table table-striped');
|
| 48 | 48 | $table->thead() |
| 49 | 49 | ->addRowName('head row')
|
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | ->th('head row', 1, 'Регистрация')
|
| 52 | 52 | ->th('head row', 2, 'Имя')
|
| 53 | 53 | ->th('head row', 3, 'Email');
|
| 54 | - $i = 0; |
|
| 54 | + $i = 0; |
|
| 55 | 55 | foreach ($Users as $User) {
|
| 56 | 56 | $table->addRow($i)->tdMultiple([ |
| 57 | 57 | $User->getId(), |
@@ -79,14 +79,14 @@ discard block |
||
| 79 | 79 | } else {
|
| 80 | 80 | $this->logger->info("Пользователь успешно сохранен!");
|
| 81 | 81 | } |
| 82 | - } catch(\Frameworkless\Exceptions\ValidationException $ex) {
|
|
| 82 | + } catch (\Frameworkless\Exceptions\ValidationException $ex) {
|
|
| 83 | 83 | |
| 84 | 84 | foreach ($ex->getFailures() as $failure) {
|
| 85 | 85 | $this->logger->error("Property " . $failure->getPropertyPath() . ": " . $failure->getMessage() . "\n");
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | $this->logger->info("Произошла ошибка при сохранении пользователя");
|
| 89 | - } catch(\Exception $ex) {
|
|
| 89 | + } catch (\Exception $ex) {
|
|
| 90 | 90 | |
| 91 | 91 | $this->logger->error("system error:" . $ex->getMessage());
|
| 92 | 92 | |
@@ -23,13 +23,13 @@ |
||
| 23 | 23 | // which is used when using the --help option |
| 24 | 24 | $defaultCommands = parent::getDefaultCommands(); |
| 25 | 25 | |
| 26 | - $defaultCommands []= new Commands\InfoCommand(); |
|
| 27 | - $defaultCommands []= new Commands\InstallPackagesCommand; |
|
| 28 | - $defaultCommands []= new Commands\SeedBuildCommand; |
|
| 29 | - $defaultCommands []= new Commands\SeedResetCommand; |
|
| 30 | - $defaultCommands []= new Commands\InstallCommand; |
|
| 31 | - $defaultCommands []= new \Propel\Generator\Command\ConfigConvertCommand(); |
|
| 32 | - $defaultCommands []= new \Propel\Generator\Command\MigrationMigrateCommand(); |
|
| 26 | + $defaultCommands [] = new Commands\InfoCommand(); |
|
| 27 | + $defaultCommands [] = new Commands\InstallPackagesCommand; |
|
| 28 | + $defaultCommands [] = new Commands\SeedBuildCommand; |
|
| 29 | + $defaultCommands [] = new Commands\SeedResetCommand; |
|
| 30 | + $defaultCommands [] = new Commands\InstallCommand; |
|
| 31 | + $defaultCommands [] = new \Propel\Generator\Command\ConfigConvertCommand(); |
|
| 32 | + $defaultCommands [] = new \Propel\Generator\Command\MigrationMigrateCommand(); |
|
| 33 | 33 | |
| 34 | 34 | return $defaultCommands; |
| 35 | 35 | } |