Passed
Push — develop ( 6525fe...ca2fc9 )
by Andrew
04:00
created
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';
28
+    const STUBS_DIR = DIRECTORY_SEPARATOR.'stubs';
29 29
 
30 30
     // Public Static Methods
31 31
     // =========================================================================
Please login to merge, or discard this patch.
src/base/Generator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public static function getGeneratorStubsPath(): string
46 46
     {
47
-        return Autocomplete::getInstance()->basePath . self::STUBS_DIR;
47
+        return Autocomplete::getInstance()->basePath.self::STUBS_DIR;
48 48
     }
49 49
 
50 50
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     protected static function getGeneratedFilePath(): string
103 103
     {
104
-        return Craft::$app->getPath()->getCompiledClassesPath() . DIRECTORY_SEPARATOR . static::getGeneratorName() . self::TEMPLATE_EXTENSION;
104
+        return Craft::$app->getPath()->getCompiledClassesPath().DIRECTORY_SEPARATOR.static::getGeneratorName().self::TEMPLATE_EXTENSION;
105 105
     }
106 106
 
107 107
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     protected static function getStubFilePath(): string
113 113
     {
114
-        return static::getGeneratorStubsPath() . DIRECTORY_SEPARATOR . static::getGeneratorName() . self::STUBS_EXTENSION;
114
+        return static::getGeneratorStubsPath().DIRECTORY_SEPARATOR.static::getGeneratorName().self::STUBS_EXTENSION;
115 115
     }
116 116
 
117 117
 }
Please login to merge, or discard this patch.
src/Autocomplete.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -112,10 +112,10 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function registerEventHandlers()
114 114
     {
115
-        Event::on(Plugins::class,Plugins::EVENT_AFTER_INSTALL_PLUGIN, [$this, 'regenerateAutocompleteTemplates']);
116
-        Event::on(Plugins::class,Plugins::EVENT_AFTER_UNINSTALL_PLUGIN, [$this, 'regenerateAutocompleteTemplates']);
117
-        Event::on(View::class,View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE, [$this, 'generateAutocompleteTemplates']);
118
-        Craft::info('Event Handlers installed',__METHOD__);
115
+        Event::on(Plugins::class, Plugins::EVENT_AFTER_INSTALL_PLUGIN, [$this, 'regenerateAutocompleteTemplates']);
116
+        Event::on(Plugins::class, Plugins::EVENT_AFTER_UNINSTALL_PLUGIN, [$this, 'regenerateAutocompleteTemplates']);
117
+        Event::on(View::class, View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE, [$this, 'generateAutocompleteTemplates']);
118
+        Craft::info('Event Handlers installed', __METHOD__);
119 119
     }
120 120
 
121 121
     /**
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
     public function generateAutocompleteTemplates()
125 125
     {
126 126
         $autocompleteGenerators = $this->getAllAutocompleteGenerators();
127
-        foreach($autocompleteGenerators as $generatorClass) {
127
+        foreach ($autocompleteGenerators as $generatorClass) {
128 128
             /** @var Generator $generatorClass */
129 129
             $generatorClass::generate();
130 130
         }
131
-        Craft::info('Autocomplete templates generated',__METHOD__);
131
+        Craft::info('Autocomplete templates generated', __METHOD__);
132 132
     }
133 133
 
134 134
     /**
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
     public function regenerateAutocompleteTemplates()
138 138
     {
139 139
         $autocompleteGenerators = $this->getAllAutocompleteGenerators();
140
-        foreach($autocompleteGenerators as $generatorClass) {
140
+        foreach ($autocompleteGenerators as $generatorClass) {
141 141
             /** @var Generator $generatorClass */
142 142
             $generatorClass::regenerate();
143 143
         }
144
-        Craft::info('Autocomplete templates regenerated',__METHOD__);
144
+        Craft::info('Autocomplete templates regenerated', __METHOD__);
145 145
     }
146 146
 
147 147
     // Protected Methods
Please login to merge, or discard this patch.