Passed
Push — develop ( b110c4...57b4ac )
by Ben
03:48
created
src/Autocomplete.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function registerEventHandlers()
113 113
     {
114
-        Event::on(Plugins::class,Plugins::EVENT_AFTER_INSTALL_PLUGIN, [$this, 'regenerateAutocompleteTemplates']);
115
-        Event::on(Plugins::class,Plugins::EVENT_AFTER_UNINSTALL_PLUGIN, [$this, 'regenerateAutocompleteTemplates']);
116
-        Event::on(Plugins::class,Plugins::EVENT_AFTER_LOAD_PLUGINS, [$this, 'generateAutocompleteTemplates']);
117
-        Craft::info('Event Handlers installed',__METHOD__);
114
+        Event::on(Plugins::class, Plugins::EVENT_AFTER_INSTALL_PLUGIN, [$this, 'regenerateAutocompleteTemplates']);
115
+        Event::on(Plugins::class, Plugins::EVENT_AFTER_UNINSTALL_PLUGIN, [$this, 'regenerateAutocompleteTemplates']);
116
+        Event::on(Plugins::class, Plugins::EVENT_AFTER_LOAD_PLUGINS, [$this, 'generateAutocompleteTemplates']);
117
+        Craft::info('Event Handlers installed', __METHOD__);
118 118
     }
119 119
 
120 120
     /**
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
     public function generateAutocompleteTemplates()
124 124
     {
125 125
         $autocompleteGenerators = $this->getAllAutocompleteGenerators();
126
-        foreach($autocompleteGenerators as $generatorClass) {
126
+        foreach ($autocompleteGenerators as $generatorClass) {
127 127
             /** @var Generator $generatorClass */
128 128
             $generatorClass::generate();
129 129
         }
130
-        Craft::info('Autocomplete templates generated',__METHOD__);
130
+        Craft::info('Autocomplete templates generated', __METHOD__);
131 131
     }
132 132
 
133 133
     /**
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
     public function regenerateAutocompleteTemplates()
137 137
     {
138 138
         $autocompleteGenerators = $this->getAllAutocompleteGenerators();
139
-        foreach($autocompleteGenerators as $generatorClass) {
139
+        foreach ($autocompleteGenerators as $generatorClass) {
140 140
             /** @var Generator $generatorClass */
141 141
             $generatorClass::regenerate();
142 142
         }
143
-        Craft::info('Autocomplete templates regenerated',__METHOD__);
143
+        Craft::info('Autocomplete templates regenerated', __METHOD__);
144 144
     }
145 145
 
146 146
     // Protected Methods
Please login to merge, or discard this patch.
src/console/controllers/AutocompleteController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $this->stdout('Generating autocomplete classes ... ', Console::FG_YELLOW);
31 31
         Autocomplete::getInstance()->generateAutocompleteTemplates();
32
-        $this->stdout('done' . PHP_EOL, Console::FG_GREEN);
32
+        $this->stdout('done'.PHP_EOL, Console::FG_GREEN);
33 33
 
34 34
         return ExitCode::OK;
35 35
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $this->stdout('Regenerating autocomplete classes ... ', Console::FG_YELLOW);
43 43
         Autocomplete::getInstance()->regenerateAutocompleteTemplates();
44
-        $this->stdout('done' . PHP_EOL, Console::FG_GREEN);
44
+        $this->stdout('done'.PHP_EOL, Console::FG_GREEN);
45 45
 
46 46
         return ExitCode::OK;
47 47
     }
Please login to merge, or discard this patch.
src/base/GeneratorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     const TEMPLATE_EXTENSION = '.php';
27 27
     const STUBS_EXTENSION = '.php.stub';
28
-    const STUBS_DIR = DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR;
28
+    const STUBS_DIR = DIRECTORY_SEPARATOR.'stubs'.DIRECTORY_SEPARATOR;
29 29
 
30 30
     // Public Static Methods
31 31
     // =========================================================================
Please login to merge, or discard this patch.
src/base/Generator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     protected static function getGeneratedFilePath(): string
95 95
     {
96
-        return Craft::$app->getPath()->getCompiledClassesPath() . DIRECTORY_SEPARATOR . static::getGeneratorName() . self::TEMPLATE_EXTENSION;
96
+        return Craft::$app->getPath()->getCompiledClassesPath().DIRECTORY_SEPARATOR.static::getGeneratorName().self::TEMPLATE_EXTENSION;
97 97
     }
98 98
 
99 99
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     protected static function getStubFilePath(): string
105 105
     {
106
-        return Autocomplete::getInstance()->basePath . self::STUBS_DIR . static::getGeneratorName() . self::STUBS_EXTENSION;
106
+        return Autocomplete::getInstance()->basePath.self::STUBS_DIR.static::getGeneratorName().self::STUBS_EXTENSION;
107 107
     }
108 108
 
109 109
 }
Please login to merge, or discard this patch.