@@ -18,22 +18,22 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | class WordPressPageEditor extends MatchAnyRouteSpecification |
| 20 | 20 | { |
| 21 | - /** |
|
| 22 | - * WordPressPostsEditor constructor. |
|
| 23 | - * |
|
| 24 | - * @param WordPressPostsEditorEdit $edit_page_route_match |
|
| 25 | - * @param WordPressPostsEditorAddNew $create_page_route_match |
|
| 26 | - * @param RequestInterface $request |
|
| 27 | - * @throws \EventEspresso\core\exceptions\InvalidEntityException |
|
| 28 | - */ |
|
| 29 | - public function __construct( |
|
| 30 | - WordPressPageEditorEdit $edit_page_route_match, |
|
| 31 | - WordPressPageEditorAddNew $create_page_route_match, |
|
| 32 | - RequestInterface $request |
|
| 33 | - ) { |
|
| 34 | - parent::__construct( |
|
| 35 | - array($edit_page_route_match, $create_page_route_match), |
|
| 36 | - $request |
|
| 37 | - ); |
|
| 38 | - } |
|
| 21 | + /** |
|
| 22 | + * WordPressPostsEditor constructor. |
|
| 23 | + * |
|
| 24 | + * @param WordPressPostsEditorEdit $edit_page_route_match |
|
| 25 | + * @param WordPressPostsEditorAddNew $create_page_route_match |
|
| 26 | + * @param RequestInterface $request |
|
| 27 | + * @throws \EventEspresso\core\exceptions\InvalidEntityException |
|
| 28 | + */ |
|
| 29 | + public function __construct( |
|
| 30 | + WordPressPageEditorEdit $edit_page_route_match, |
|
| 31 | + WordPressPageEditorAddNew $create_page_route_match, |
|
| 32 | + RequestInterface $request |
|
| 33 | + ) { |
|
| 34 | + parent::__construct( |
|
| 35 | + array($edit_page_route_match, $create_page_route_match), |
|
| 36 | + $request |
|
| 37 | + ); |
|
| 38 | + } |
|
| 39 | 39 | } |
| 40 | 40 | \ No newline at end of file |
@@ -14,15 +14,15 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | class WordPressPageEditorAddNew extends RouteMatchSpecification |
| 16 | 16 | { |
| 17 | - /** |
|
| 18 | - * returns true if current request matches specification |
|
| 19 | - * |
|
| 20 | - * @since $VID:$ |
|
| 21 | - * @return boolean |
|
| 22 | - */ |
|
| 23 | - public function isMatchingRoute() |
|
| 24 | - { |
|
| 25 | - return strpos($this->request->requestUri(), 'wp-admin/post-new.php') !== false |
|
| 26 | - && $this->request->getRequestParam('post_type', 'post') === 'page'; |
|
| 27 | - } |
|
| 17 | + /** |
|
| 18 | + * returns true if current request matches specification |
|
| 19 | + * |
|
| 20 | + * @since $VID:$ |
|
| 21 | + * @return boolean |
|
| 22 | + */ |
|
| 23 | + public function isMatchingRoute() |
|
| 24 | + { |
|
| 25 | + return strpos($this->request->requestUri(), 'wp-admin/post-new.php') !== false |
|
| 26 | + && $this->request->getRequestParam('post_type', 'post') === 'page'; |
|
| 27 | + } |
|
| 28 | 28 | } |
| 29 | 29 | \ No newline at end of file |
@@ -14,15 +14,15 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | class EspressoVenueEditorEdit extends RouteMatchSpecification |
| 16 | 16 | { |
| 17 | - /** |
|
| 18 | - * returns true if current request matches specification |
|
| 19 | - * |
|
| 20 | - * @since $VID:$ |
|
| 21 | - * @return boolean |
|
| 22 | - */ |
|
| 23 | - public function isMatchingRoute() |
|
| 24 | - { |
|
| 25 | - return $this->request->getRequestParam('page') === 'espresso_venues' |
|
| 26 | - && $this->request->getRequestParam('action') === 'edit'; |
|
| 27 | - } |
|
| 17 | + /** |
|
| 18 | + * returns true if current request matches specification |
|
| 19 | + * |
|
| 20 | + * @since $VID:$ |
|
| 21 | + * @return boolean |
|
| 22 | + */ |
|
| 23 | + public function isMatchingRoute() |
|
| 24 | + { |
|
| 25 | + return $this->request->getRequestParam('page') === 'espresso_venues' |
|
| 26 | + && $this->request->getRequestParam('action') === 'edit'; |
|
| 27 | + } |
|
| 28 | 28 | } |
@@ -19,22 +19,22 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | class EspressoEventEditor extends MatchAnyRouteSpecification |
| 21 | 21 | { |
| 22 | - /** |
|
| 23 | - * EspressoEventEditor constructor. |
|
| 24 | - * |
|
| 25 | - * @param EspressoEventEditorEdit $edit_event_route_match |
|
| 26 | - * @param EspressoEventEditorAddNew $create_event_route_match |
|
| 27 | - * @param RequestInterface $request |
|
| 28 | - * @throws InvalidEntityException |
|
| 29 | - */ |
|
| 30 | - public function __construct( |
|
| 31 | - EspressoEventEditorEdit $edit_event_route_match, |
|
| 32 | - EspressoEventEditorAddNew $create_event_route_match, |
|
| 33 | - RequestInterface $request |
|
| 34 | - ) { |
|
| 35 | - parent::__construct( |
|
| 36 | - array($edit_event_route_match, $create_event_route_match), |
|
| 37 | - $request |
|
| 38 | - ); |
|
| 39 | - } |
|
| 22 | + /** |
|
| 23 | + * EspressoEventEditor constructor. |
|
| 24 | + * |
|
| 25 | + * @param EspressoEventEditorEdit $edit_event_route_match |
|
| 26 | + * @param EspressoEventEditorAddNew $create_event_route_match |
|
| 27 | + * @param RequestInterface $request |
|
| 28 | + * @throws InvalidEntityException |
|
| 29 | + */ |
|
| 30 | + public function __construct( |
|
| 31 | + EspressoEventEditorEdit $edit_event_route_match, |
|
| 32 | + EspressoEventEditorAddNew $create_event_route_match, |
|
| 33 | + RequestInterface $request |
|
| 34 | + ) { |
|
| 35 | + parent::__construct( |
|
| 36 | + array($edit_event_route_match, $create_event_route_match), |
|
| 37 | + $request |
|
| 38 | + ); |
|
| 39 | + } |
|
| 40 | 40 | } |
@@ -19,22 +19,22 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | class EspressoVenueEditor extends MatchAnyRouteSpecification |
| 21 | 21 | { |
| 22 | - /** |
|
| 23 | - * EspressoVenueEditor constructor. |
|
| 24 | - * |
|
| 25 | - * @param EspressoVenueEditorEdit $edit_venue_route_match |
|
| 26 | - * @param EspressoVenueEditorAddNew $create_venue_route_match |
|
| 27 | - * @param RequestInterface $request |
|
| 28 | - * @throws InvalidEntityException |
|
| 29 | - */ |
|
| 30 | - public function __construct( |
|
| 31 | - EspressoVenueEditorEdit $edit_venue_route_match, |
|
| 32 | - EspressoVenueEditorAddNew $create_venue_route_match, |
|
| 33 | - RequestInterface $request |
|
| 34 | - ) { |
|
| 35 | - parent::__construct( |
|
| 36 | - array($edit_venue_route_match, $create_venue_route_match), |
|
| 37 | - $request |
|
| 38 | - ); |
|
| 39 | - } |
|
| 22 | + /** |
|
| 23 | + * EspressoVenueEditor constructor. |
|
| 24 | + * |
|
| 25 | + * @param EspressoVenueEditorEdit $edit_venue_route_match |
|
| 26 | + * @param EspressoVenueEditorAddNew $create_venue_route_match |
|
| 27 | + * @param RequestInterface $request |
|
| 28 | + * @throws InvalidEntityException |
|
| 29 | + */ |
|
| 30 | + public function __construct( |
|
| 31 | + EspressoVenueEditorEdit $edit_venue_route_match, |
|
| 32 | + EspressoVenueEditorAddNew $create_venue_route_match, |
|
| 33 | + RequestInterface $request |
|
| 34 | + ) { |
|
| 35 | + parent::__construct( |
|
| 36 | + array($edit_venue_route_match, $create_venue_route_match), |
|
| 37 | + $request |
|
| 38 | + ); |
|
| 39 | + } |
|
| 40 | 40 | } |