@@ -32,14 +32,14 @@ |
||
32 | 32 | |
33 | 33 | private function deleteRoles(Position $position) |
34 | 34 | { |
35 | - foreach($this->roleRepository->allThroughPosition($position) as $role) { |
|
35 | + foreach ($this->roleRepository->allThroughPosition($position) as $role) { |
|
36 | 36 | $this->roleRepository->delete($role->id()); |
37 | 37 | } |
38 | 38 | } |
39 | 39 | |
40 | 40 | private function removeTags(Position $position) |
41 | 41 | { |
42 | - foreach($this->positionPositionTag->getTagsThroughPosition($position) as $tag) { |
|
42 | + foreach ($this->positionPositionTag->getTagsThroughPosition($position) as $tag) { |
|
43 | 43 | $this->positionPositionTag->removeTagFromPosition($tag, $position); |
44 | 44 | } |
45 | 45 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function update(DataUser $oldDataUser, DataUser $newDataUser) |
23 | 23 | { |
24 | - $this->cache->forget(DataUserCache::class . '@getById:' . $newDataUser->id()); |
|
24 | + $this->cache->forget(DataUserCache::class.'@getById:'.$newDataUser->id()); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | } |
28 | 28 | \ No newline at end of file |
@@ -44,16 +44,16 @@ |
||
44 | 44 | */ |
45 | 45 | public function handle() |
46 | 46 | { |
47 | - $time=-hrtime(true); |
|
47 | + $time = -hrtime(true); |
|
48 | 48 | Exporter::driver($this->option('exporter'))->export($this->exportData()); |
49 | 49 | $this->info('Export complete'); |
50 | - $time+=hrtime(true); |
|
50 | + $time += hrtime(true); |
|
51 | 51 | $this->info(sprintf('Export took %.2f s to run', $time / 1e+9)); |
52 | 52 | } |
53 | 53 | |
54 | 54 | private function exportData() |
55 | 55 | { |
56 | - switch($this->argument('type')) { |
|
56 | + switch ($this->argument('type')) { |
|
57 | 57 | case 'user': |
58 | 58 | return app(User::class)->all(); |
59 | 59 | break; |