@@ -64,14 +64,14 @@ discard block |
||
| 64 | 64 | $container = $this->getContainer(); |
| 65 | 65 | |
| 66 | 66 | // mapper |
| 67 | - $container->registerService('FileOperationMapper', function ($c) { |
|
| 67 | + $container->registerService('FileOperationMapper', function($c) { |
|
| 68 | 68 | return new FileOperationMapper( |
| 69 | 69 | $c->query('ServerContainer')->getDb() |
| 70 | 70 | ); |
| 71 | 71 | }); |
| 72 | 72 | |
| 73 | 73 | // services |
| 74 | - $container->registerService('FileOperationService', function ($c) { |
|
| 74 | + $container->registerService('FileOperationService', function($c) { |
|
| 75 | 75 | return new FileOperationService( |
| 76 | 76 | $c->query(FileOperationMapper::class), |
| 77 | 77 | $c->query('ServerContainer')->getUserSession()->getUser()->getUID() |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | }); |
| 80 | 80 | |
| 81 | 81 | // classifier |
| 82 | - $container->registerService('Classifier', function ($c) { |
|
| 82 | + $container->registerService('Classifier', function($c) { |
|
| 83 | 83 | return new Classifier( |
| 84 | 84 | $c->query(ILogger::class), |
| 85 | 85 | $c->query(FileOperationMapper::class), |
@@ -88,28 +88,28 @@ discard block |
||
| 88 | 88 | }); |
| 89 | 89 | |
| 90 | 90 | // entropy |
| 91 | - $container->registerService('Entropy', function ($c) { |
|
| 91 | + $container->registerService('Entropy', function($c) { |
|
| 92 | 92 | return new Entropy( |
| 93 | 93 | $c->query(ILogger::class) |
| 94 | 94 | ); |
| 95 | 95 | }); |
| 96 | 96 | |
| 97 | 97 | // analyzer |
| 98 | - $container->registerService('SequenceSizeAnalyzer', function ($c) { |
|
| 98 | + $container->registerService('SequenceSizeAnalyzer', function($c) { |
|
| 99 | 99 | return new SequenceSizeAnalyzer(); |
| 100 | 100 | }); |
| 101 | 101 | |
| 102 | - $container->registerService('FileTypeFunnellingAnalyzer', function ($c) { |
|
| 102 | + $container->registerService('FileTypeFunnellingAnalyzer', function($c) { |
|
| 103 | 103 | return new FileTypeFunnellingAnalyzer(); |
| 104 | 104 | }); |
| 105 | 105 | |
| 106 | - $container->registerService('EntropyFunnellingAnalyzer', function ($c) { |
|
| 106 | + $container->registerService('EntropyFunnellingAnalyzer', function($c) { |
|
| 107 | 107 | return new EntropyFunnellingAnalyzer( |
| 108 | 108 | $c->query(ILogger::class) |
| 109 | 109 | ); |
| 110 | 110 | }); |
| 111 | 111 | |
| 112 | - $container->registerService('FileExtensionAnalyzer', function ($c) { |
|
| 112 | + $container->registerService('FileExtensionAnalyzer', function($c) { |
|
| 113 | 113 | return new FileExtensionAnalyzer( |
| 114 | 114 | $c->query(ILogger::class), |
| 115 | 115 | $c->query(Entropy::class) |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | ); |
| 118 | 118 | }); |
| 119 | 119 | |
| 120 | - $container->registerService('SequenceAnalyzer', function ($c) { |
|
| 120 | + $container->registerService('SequenceAnalyzer', function($c) { |
|
| 121 | 121 | return new SequenceAnalyzer( |
| 122 | 122 | $c->query(SequenceSizeAnalyzer::class), |
| 123 | 123 | $c->query(FileTypeFunnellingAnalyzer::class), |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | ); |
| 126 | 126 | }); |
| 127 | 127 | |
| 128 | - $container->registerService('EntropyAnalyzer', function ($c) { |
|
| 128 | + $container->registerService('EntropyAnalyzer', function($c) { |
|
| 129 | 129 | return new EntropyAnalyzer( |
| 130 | 130 | $c->query(ILogger::class), |
| 131 | 131 | $c->query(IRootFolder::class), |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | ); |
| 135 | 135 | }); |
| 136 | 136 | |
| 137 | - $container->registerService('FileCorruptionAnalyzer', function ($c) { |
|
| 137 | + $container->registerService('FileCorruptionAnalyzer', function($c) { |
|
| 138 | 138 | return new FileCorruptionAnalyzer( |
| 139 | 139 | $c->query(ILogger::class), |
| 140 | 140 | $c->query(IRootFolder::class), |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | ); |
| 143 | 143 | }); |
| 144 | 144 | |
| 145 | - $container->registerService('Monitor', function ($c) { |
|
| 145 | + $container->registerService('Monitor', function($c) { |
|
| 146 | 146 | return new Monitor( |
| 147 | 147 | $c->query(IRequest::class), |
| 148 | 148 | $c->query(IConfig::class), |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | ); |
| 159 | 159 | }); |
| 160 | 160 | |
| 161 | - $container->registerService('FilesEvents', function ($c) { |
|
| 161 | + $container->registerService('FilesEvents', function($c) { |
|
| 162 | 162 | return new FilesEvents( |
| 163 | 163 | $c->query(ILogger::class), |
| 164 | 164 | $c->query(Monitor::class), |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | { |
| 175 | 175 | // register sabre plugin to catch the profind requests |
| 176 | 176 | $eventDispatcher = $this->getContainer()->getServer()->getEventDispatcher(); |
| 177 | - $eventDispatcher->addListener('OCA\DAV\Connector\Sabre::addPlugin', function (SabrePluginEvent $event) { |
|
| 177 | + $eventDispatcher->addListener('OCA\DAV\Connector\Sabre::addPlugin', function(SabrePluginEvent $event) { |
|
| 178 | 178 | $logger = $this->getContainer()->query(ILogger::class); |
| 179 | 179 | $config = $this->getContainer()->query(IConfig::class); |
| 180 | 180 | $userSession = $this->getContainer()->query(IUserSession::class); |