2
2
3
3
namespace PhpSchool \CliMenu ;
4
4
5
- use PhpSchool \CliMenu \Exception \InvalidInstantiationException ;
6
5
use PhpSchool \CliMenu \Terminal \TerminalFactory ;
7
6
use PhpSchool \CliMenu \Util \ColourUtil ;
8
7
use PhpSchool \Terminal \Terminal ;
@@ -219,25 +218,25 @@ public function __construct(Terminal $terminal = null)
219
218
{
220
219
$ this ->terminal = $ terminal ?: TerminalFactory::fromSystem ();
221
220
222
- $ this ->fg = static ::$ defaultStyleValues ['fg ' ];
223
- $ this ->bg = static ::$ defaultStyleValues ['bg ' ];
221
+ $ this ->fg = self ::$ defaultStyleValues ['fg ' ];
222
+ $ this ->bg = self ::$ defaultStyleValues ['bg ' ];
224
223
225
224
$ this ->generateColoursSetCode ();
226
225
227
- $ this ->setWidth (static ::$ defaultStyleValues ['width ' ]);
228
- $ this ->setPaddingTopBottom (static ::$ defaultStyleValues ['paddingTopBottom ' ]);
229
- $ this ->setPaddingLeftRight (static ::$ defaultStyleValues ['paddingLeftRight ' ]);
230
- $ this ->setMargin (static ::$ defaultStyleValues ['margin ' ]);
231
- $ this ->setSelectedMarker (static ::$ defaultStyleValues ['selectedMarker ' ]);
232
- $ this ->setUnselectedMarker (static ::$ defaultStyleValues ['unselectedMarker ' ]);
233
- $ this ->setItemExtra (static ::$ defaultStyleValues ['itemExtra ' ]);
234
- $ this ->setDisplaysExtra (static ::$ defaultStyleValues ['displaysExtra ' ]);
235
- $ this ->setTitleSeparator (static ::$ defaultStyleValues ['titleSeparator ' ]);
236
- $ this ->setBorderTopWidth (static ::$ defaultStyleValues ['borderTopWidth ' ]);
237
- $ this ->setBorderRightWidth (static ::$ defaultStyleValues ['borderRightWidth ' ]);
238
- $ this ->setBorderBottomWidth (static ::$ defaultStyleValues ['borderBottomWidth ' ]);
239
- $ this ->setBorderLeftWidth (static ::$ defaultStyleValues ['borderLeftWidth ' ]);
240
- $ this ->setBorderColour (static ::$ defaultStyleValues ['borderColour ' ]);
226
+ $ this ->setWidth (self ::$ defaultStyleValues ['width ' ]);
227
+ $ this ->setPaddingTopBottom (self ::$ defaultStyleValues ['paddingTopBottom ' ]);
228
+ $ this ->setPaddingLeftRight (self ::$ defaultStyleValues ['paddingLeftRight ' ]);
229
+ $ this ->setMargin (self ::$ defaultStyleValues ['margin ' ]);
230
+ $ this ->setSelectedMarker (self ::$ defaultStyleValues ['selectedMarker ' ]);
231
+ $ this ->setUnselectedMarker (self ::$ defaultStyleValues ['unselectedMarker ' ]);
232
+ $ this ->setItemExtra (self ::$ defaultStyleValues ['itemExtra ' ]);
233
+ $ this ->setDisplaysExtra (self ::$ defaultStyleValues ['displaysExtra ' ]);
234
+ $ this ->setTitleSeparator (self ::$ defaultStyleValues ['titleSeparator ' ]);
235
+ $ this ->setBorderTopWidth (self ::$ defaultStyleValues ['borderTopWidth ' ]);
236
+ $ this ->setBorderRightWidth (self ::$ defaultStyleValues ['borderRightWidth ' ]);
237
+ $ this ->setBorderBottomWidth (self ::$ defaultStyleValues ['borderBottomWidth ' ]);
238
+ $ this ->setBorderLeftWidth (self ::$ defaultStyleValues ['borderLeftWidth ' ]);
239
+ $ this ->setBorderColour (self ::$ defaultStyleValues ['borderColour ' ]);
241
240
}
242
241
243
242
public function hasChangedFromDefaults () : bool
@@ -262,7 +261,7 @@ public function hasChangedFromDefaults() : bool
262
261
$ this ->marginAuto ,
263
262
];
264
263
265
- return $ currentValues !== array_values (static ::$ defaultStyleValues );
264
+ return $ currentValues !== array_values (self ::$ defaultStyleValues );
266
265
}
267
266
268
267
public function getDisabledItemText (string $ text ) : string
0 commit comments